实际上我正在尝试此链接上的示例 https://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variables
现在,当它在到达 HUMAN TASK 时调用 ftl 文件时,它会在 jsp 页面上显示这个
Model Number: MarshalledContentWrapper{content=B@1e0d7c5,
marshaller=org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy,
type=class java.lang.String}
Quantity: MarshalledContentWrapper{content=[B@75ffe5,
marshaller=org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy,
type=class java.lang.String}
Priority: MarshalledContentWrapper{content=[B@f31cdb,
marshaller=org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy,
type=class java.lang.String}
然后是文本框和提交按钮。
当我点击提交
我在我的控制台上得到这个输出。
Human Task Started....
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)
如何解决这个问题有没有人对此有想法。