Bug 1001229 - RegisterWorkItemHandlerCommand is unable to serialize a WorkItemHandler object.
Summary: RegisterWorkItemHandlerCommand is unable to serialize a WorkItemHandler object.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Core
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER4
: 6.0.0
Assignee: Marco Rietveld
QA Contact: Ivo Bek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-26 19:39 UTC by Marek Baluch
Modified: 2016-09-20 05:04 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Community CR2.
Last Closed: 2014-08-06 20:09:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
stack-trace (3.91 KB, text/plain)
2013-08-26 19:39 UTC, Marek Baluch
no flags Details

Description Marek Baluch 2013-08-26 19:39:20 UTC
Created attachment 790654 [details]
stack-trace

Description of problem:

When using a remote runtime engine (e.g. REST) then the call to getWorkItemManager().registerWorkItemHandler fails on WorkItemHandler serialization with:

"class XYZ nor any of its super class is known to this context."

(I used org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler).

See attached log for full stack.

Comment 1 Kris Verlaenen 2013-09-03 13:14:06 UTC
Not sure that this is a method that can easily be used remotely, as this will probably not have the expected result (if it would be successful, it would only register the listener for the duration of the life cycle of that ksession, not for all sessions, and also not persistent.  Configuring work item handlers is probably something that needs to be done by a system administrator, for example by dropping in a work item handler configuration file into the application server classpath.

Marco, could you exclude this one as one of the AcceptedCommands?

Kris

Comment 2 Marco Rietveld 2013-09-04 10:32:37 UTC
Fixed with this commit: 

https://github.com/droolsjbpm/droolsjbpm-integration/commit/117ec2b2926f5c9f932a2a412724e0c6cb6d7e9a

This commit makes sure that an error is thrown when the RegisterWorkItemHandlerCommand command is used. 

I added some client/api side checks as well - the checks on the server side already exist.

Comment 6 Ivo Bek 2013-10-16 12:21:37 UTC
Verified in BPMS 6.0.0.ER4

the registerRegisterWorkItemHandler() throws:

java.lang.UnsupportedOperationException: The .registerWorkItemHandler(..) method is not supported on the remote api.


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