Bug 993610 - Exception is thrown when inserting fact via REST API
Summary: Exception is thrown when inserting fact via REST API
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER3
: 6.0.0
Assignee: Marco Rietveld
QA Contact: Radovan Synek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-06 09:38 UTC by Radovan Synek
Modified: 2016-09-20 05:04 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:09:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
full stacktrace (7.41 KB, text/x-log)
2013-08-06 09:38 UTC, Radovan Synek
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.