Jiri Svitak [
https://community.jboss.org/people/jsvitak] created the discussion
"Re: java.lang.String cannot be cast to
org.jbpm.task.utils.MarshalledContentWrapper"
To view the discussion, visit:
https://community.jboss.org/message/744805#744805
--------------------------------------------------------------
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:
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
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/744805#744805]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]