[jboss-user] [jBPM] - completing human task - NoSuchFieldError: classLoader
wishmaster7
do-not-reply at jboss.com
Wed Mar 13 12:37:57 EDT 2013
wishmaster7 [https://community.jboss.org/people/wishmaster7] created the discussion
"completing human task - NoSuchFieldError: classLoader"
To view the discussion, visit: https://community.jboss.org/message/802416#802416
--------------------------------------------------------------
Hi all,
I have found something very strange when I complete a Human Task. Here is what I do:
Map<String, Object> result = new HashMap<String, Object>();
result.put("Result", action);
taskService.completeWithResults(taskId, userId, result);
and I have the following error:
java.lang.NoSuchFieldError: classLoader
at org.jbpm.task.utils.ContentMarshallerHelper.unmarshall(ContentMarshallerHelper.java:107)
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler.handleCompletedTask(GenericHTWorkItemHandler.java:260)
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler.execute(GenericHTWorkItemHandler.java:234)
at org.jbpm.task.service.local.LocalTaskService$SimpleEventTransport.trigger(LocalTaskService.java:329)
at org.jbpm.task.event.MessagingTaskEventListener.triggerPayload(MessagingTaskEventListener.java:76)
at org.jbpm.task.event.MessagingTaskEventListener.handleEvent(MessagingTaskEventListener.java:92)
at org.jbpm.task.event.MessagingTaskEventListener.taskCompleted(MessagingTaskEventListener.java:109)
at org.jbpm.task.event.TaskEventSupport.fireTaskCompleted(TaskEventSupport.java:49)
at org.jbpm.task.service.TaskServiceSession.postTaskCompleteOperation(TaskServiceSession.java:569)
at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:495)
at org.jbpm.task.service.local.LocalTaskService.complete(LocalTaskService.java:83)
at org.jbpm.task.service.local.LocalTaskService.completeWithResults(LocalTaskService.java:91)
So, I search in the code, and I find :
MarshallerReaderContext context = null;
context.classLoader = ContentMarshallerHelper.class.getClassLoader();
BUT... (something I can't explain), MarshallerReaderContext has no classLoader. This throws the error above.
Someone knows? Any help would be apreciated.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/802416#802416]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130313/4c172434/attachment.html
More information about the jboss-user
mailing list