<!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;">
    Cannot retrieve a result from human task in jBPM 5.3
</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/745525#745525">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,</p><p>I was unable to get working human tasks in jBPM 5.3, particularly retrieving a result from human task form to a process variable. At first I suffered the same problem as here:</p><p><a class="jive-link-thread-small" href="https://community.jboss.org/thread/200849">https://community.jboss.org/thread/200849</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The fix for that was applied only to master branch, so I switched from 5.3.0-SNAPSHOT to 5.4.0-SNAPSHOT in the pom file of my project.</p><p>However now I experience a new error in the server log (jBPM engine in my application hangs):</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">18:55:04,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) java.io.OptionalDataException
18:55:04,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1339)
18:55:04,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jbpm.integration.console.forms.TaskFormDispatcher.provideForm(TaskFormDispatcher.java:77)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jbpm.integration.console.forms.FormDispatcherComposite.provideForm(FormDispatcherComposite.java:50)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.bpm.console.server.FormProcessingFacade.provideForm(FormProcessingFacade.java:205)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.bpm.console.server.FormProcessingFacade.renderTaskUI(FormProcessingFacade.java:127)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
18:55:04,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
18:55:04,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
18:55:04,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-6)&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:662)
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have attached .bpmn2 file with my business process definition. I use HornetQHTWorkItemHandler.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I was recommended (M.Salatino) to try using a map variable to retrieve a value from the form, but that doesn't help. In the generated form was only one field named the same as the map variable, not the String variable contained in the map. After filling the badly generated form I experienced the same exception as above and the engine hung.</p></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/745525#745525">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>