Bug 993610

Summary: Exception is thrown when inserting fact via REST API
Product: [Retired] JBoss BPMS Platform 6 Reporter: Radovan Synek <rsynek>
Component: Business CentralAssignee: Marco Rietveld <mrietvel>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: lpetrovi, rzhang, smcgowan
Target Milestone: ER3   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:09:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
full stacktrace none

Description Radovan Synek 2013-08-06 09:38:35 UTC
Created attachment 783252 [details]
full stacktrace

Inserting a simple fact (just String instance) via REST /runtime/{id}/execute ended with an exception:
Unable to add result from InsertObjectCommand because of UnsupportedOperationException: java.lang.UnsupportedOperationException: Result type DefaultFactHandle from command InsertObjectCommand is an unsupported response type. 

It seems that the command itself can be processed, but the result - DefaultFactHandle cannot be serialized in JaxbCommandsResponse class.

Attaching full stacktrace.

version: community 6.0.0.CR1

Comment 3 Marco Rietveld 2013-08-29 07:09:26 UTC
Fixed, with these commits: 

https://github.com/droolsjbpm/droolsjbpm-integration/commit/3b417388eba873649ee10df28a3df961ebafa6b4
https://github.com/droolsjbpm/droolsjbpm-integration/commit/5ac8be32fd07aaf54389cbedaac25c7d9b2ee82c

Not sure which milestone this is, please set this bug to modified (and set the milestone).

Comment 4 Radovan Synek 2013-09-18 13:21:02 UTC
Verified on BPMS-6.0.0.ER3