0 Replies Latest reply on Aug 5, 2013 10:07 AM by mydevbox

    SyncTaskServiceWrapper timeout issue

    mydevbox

      I have been running into random timeout issues when using  SyncTaskServiceWrapper for Human task related services. My current setup has humantask service war and gwt-console-server deployed in same server, using the same configured datasource in JBoss 7. I noticed when i complete a human task with the SyncTaskServiceWrapper, it appears  when i access human task related services through the rest service,  I get stale task data. I will sometime have to wait about 2sconds to get updated human task info. My questions are -

       

      1. Any problem with current setup (i.e using rest service and humantask. No local service/direct jta setup)?

      2. If there are problems with q1, what are the possible solutions?

       

      I noticed SyncTaskServiceWrapper already provides for some wait/delay support. So ideally i do not think i should be suspending thread excution or  implementing wait/delay stuffs in my code.

       

      Some guidance will be greatly appreciated. Thanks

       

      Stack trace looks like this

       

      java.lang.RuntimeException: Task operation request timed out       at org.jbpm.task.service.SyncTaskServiceWrapper.start(SyncTaskServiceWrapper.java:701)       at      

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)       at java.lang.reflect.Method.invoke(Method.java:597)       at org.apache.el.parser.AstValue.invoke(AstValue.java:278)       at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)       at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)       at javax.faces.component.UICommand.broadcast(UICommand.java:315)       at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)       at org.apache.catalina.core.ApplicationFilterChain.doFilter(

       

       

      Koko