<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: java.lang.String cannot be cast to org.jbpm.task.utils.MarshalledContentWrapper
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/jsvitak">Jiri Svitak</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/744805#744805">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hello, I have experienced the same problem "java.lang.String cannot be cast to org.jbpm.task.utils.MarshalledContentWrapper" in jBPM version 5.3.0-SNAPSHOT. That happened in my application which uses jBPM, so it was on client side. I have switched to 5.4.0-SNAPSHOT, but now I experience a different exception. I use HornetQHTWorkItemHandler in my application. My business process contains just a simple human task in which I want to receive just one String value. In jbpm-console I can see my task waiting to be finished. I view it, fill my String value and after I confirm it, my application hangs (no exceptions) and I see the exception below in server.log: </p><pre>16:10:28,984 WARNING [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected: Did not receive data from /127.0.0.1:44514. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=3]
16:10:28,984 WARNING [org.hornetq.core.server.impl.ServerSessionImpl] (hornetq-failure-check-thread) Client connection failed, clearing up resources for session 08d8f96b-c12a-11e1-9037-f0def167dbd3
16:10:28,990 WARNING [org.hornetq.core.server.impl.ServerSessionImpl] (hornetq-failure-check-thread) Cleared up resources for session 08d8f96b-c12a-11e1-9037-f0def167dbd3
16:10:44,991 WARNING [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] (hornetq-failure-check-thread) Connection failure has been detected: Did not receive data from /127.0.0.1:44222. It is likely the client has exited or crashed without closing its connection, or the network between the server and client has failed. You also might have configured connection-ttl and client-failure-check-period incorrectly. Please check user manual for more information. The connection will now be closed. [code=3]
16:10:44,992 WARNING [org.hornetq.core.server.impl.ServerSessionImpl] (hornetq-failure-check-thread) Client connection failed, clearing up resources for session 4d2c6ab8-c126-11e1-9037-f0def167dbd3
16:10:44,992 WARNING [org.hornetq.core.server.impl.ServerSessionImpl] (hornetq-failure-check-thread) Cleared up resources for session 4d2c6ab8-c126-11e1-9037-f0def167dbd3
16:11:54,041 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) INFO  28-06 16:11:54,041 (DemoAuthenticator.java:authenticate:54)       Demo login for user (null) failed: unsupported username/credential.
16:11:54,042 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) WARN  28-06 16:11:54,041 (AuthorizationHeaderChecker.java:loginByHeader:65)       Unable to authenticate for rest api: null
16:11:54,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) INFO  28-06 16:11:54,047 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:11:54,048 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) INFO  28-06 16:11:54,047 (AuthorizationHeaderChecker.java:loginByHeader:68)       admin authenticated for rest api
16:11:54,054 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) INFO  28-06 16:11:54,054 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:11:54,055 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) INFO  28-06 16:11:54,055 (AuthorizationHeaderChecker.java:loginByHeader:68)       admin authenticated for rest api
16:12:08,650 ERROR [stderr] (http-localhost-127.0.0.1-8080-9) java.io.OptionalDataException
16:12:08,650 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1339)
16:12:08,650 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
16:12:08,650 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jbpm.integration.console.forms.TaskFormDispatcher.provideForm(TaskFormDispatcher.java:77)
16:12:08,651 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jbpm.integration.console.forms.FormDispatcherComposite.provideForm(FormDispatcherComposite.java:50)
16:12:08,651 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.bpm.console.server.FormProcessingFacade.provideForm(FormProcessingFacade.java:205)
16:12:08,651 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.bpm.console.server.FormProcessingFacade.renderTaskUI(FormProcessingFacade.java:127)
16:12:08,651 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:12:08,651 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
16:12:08,651 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
16:12:08,651 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at java.lang.reflect.Method.invoke(Method.java:597)
16:12:08,651 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
16:12:08,652 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
16:12:08,652 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
16:12:08,652 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
16:12:08,652 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
16:12:08,652 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
16:12:08,652 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
16:12:08,652 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
16:12:08,652 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
16:12:08,653 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
16:12:08,653 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
16:12:08,653 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
16:12:08,653 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
16:12:08,653 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
16:12:08,653 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
16:12:08,653 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
16:12:08,653 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
16:12:08,653 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
16:12:08,654 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
16:12:08,654 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
16:12:08,654 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
16:12:08,654 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
16:12:08,654 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
16:12:08,654 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
16:12:08,654 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
16:12:08,654 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
16:12:08,655 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
16:12:08,655 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
16:12:08,655 ERROR [stderr] (http-localhost-127.0.0.1-8080-9)      at java.lang.Thread.run(Thread.java:662)
16:12:08,659 INFO  [stdout] (http-localhost-127.0.0.1-8080-4) INFO  28-06 16:12:08,658 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:12:08,666 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) INFO  28-06 16:12:08,666 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:12:08,699 INFO  [stdout] (http-localhost-127.0.0.1-8080-3) INFO  28-06 16:12:08,699 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:12:08,704 INFO  [stdout] (http-localhost-127.0.0.1-8080-4) INFO  28-06 16:12:08,704 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:12:08,712 INFO  [stdout] (http-localhost-127.0.0.1-8080-4) INFO  28-06 16:12:08,712 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:12:08,731 INFO  [stdout] (http-localhost-127.0.0.1-8080-4) INFO  28-06 16:12:08,731 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:12:08,739 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) INFO  28-06 16:12:08,738 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:12:08,748 INFO  [stdout] (http-localhost-127.0.0.1-8080-13) INFO  28-06 16:12:08,748 (DemoAuthenticator.java:authenticate:65)       Demo login for user (admin) succeeded.
16:12:08,749 INFO  [stdout] (http-localhost-127.0.0.1-8080-13) INFO  28-06 16:12:08,749 (AuthorizationHeaderChecker.java:loginByHeader:68)       admin authenticated for rest api
16:12:08,750 INFO  [stdout] (http-localhost-127.0.0.1-8080-13) INFO  28-06 16:12:08,750 (PackageDeploymentServlet.java:execute:143)       PackageName: org.jenkinsci.plugins.jbpm
16:12:08,751 INFO  [stdout] (http-localhost-127.0.0.1-8080-13) INFO  28-06 16:12:08,750 (PackageDeploymentServlet.java:execute:144)       PackageVersion: LATEST
16:12:08,751 INFO  [stdout] (http-localhost-127.0.0.1-8080-13) INFO  28-06 16:12:08,751 (PackageDeploymentServlet.java:execute:145)       PackageIsLatest: true
16:12:08,751 INFO  [stdout] (http-localhost-127.0.0.1-8080-13) INFO  28-06 16:12:08,751 (PackageDeploymentServlet.java:execute:146)       PackageIsSource: true
</pre></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/744805#744805">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>