2 Replies Latest reply on Mar 13, 2013 5:35 AM by thomas.setiabudi

    How to resolve this issue "java.lang.String cannot be cast to org.jbpm.task.utils.MarshalledContentWrapper"

    shahdhaval2020

      Hi all,

       

       

      I am trying a human task example with variables , and i am using this link as a refrence https://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variables

       

      But now the thing is that when i am trying to run this i am getting following error.

      I am using JBPM5.4 .

       

      Exception in thread "Thread-2" java.lang.ClassCastException: java.lang.String cannot be cast to org.jbpm.task.utils.MarshalledContentWrapper

                at org.jbpm.task.utils.ContentMarshallerHelper.unmarshall(ContentMarshallerHelper.java:157)

                at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler.handleCompletedTask(GenericHTWorkItemHandler.java:208)

                at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler$TaskCompletedHandler$1.run(GenericHTWorkItemHandler.java:187)

                at java.lang.Thread.run(Thread.java:679)