3 Replies Latest reply on Sep 21, 2012 5:16 AM by Ville Itämaa

    Problems with jbpm demo

    Franck cdsosi Newbie

      Hi everyone,

       

      I am new to BPM world so I am starting to have interest with open source BPM solutions including jBPM of course

      Before dealing with complex business processes, I am starting playing with the Sample Demo but encounter some problems.

       

      I succeed in executing  the demo under eclipse till complete process completion (john + mary Start / Complete jobs) so no problem.

      I am playing now with the jBPM console to do the same :

      1- log in with krisv and start a new Evaluation process

      2- able to see in Personal Task the task just started and click on View to Complete

      3- log out

      4- log in as john but impossible to get any task displaying in john's Personal Task View even with clicking on Refresh button...

      5- log out

      6- log in as mary but same as step 4. In the Messages log area i always have a "[INFO ] Loaded 0 tasks"

      7- log out

      8- log in as krisv, delete the process instance running and start a new one and now no Personal Task displaying with krisv

      In the log area i have :

      2012-07-26 11:30:58,217 [DEBUG] GET: http://localhost:8080/gwt-console-server/rs/tasks/krisv

      2012-07-26 11:31:18,261 [DEBUG] parse {"tasks":[]}

      2012-07-26 11:31:18,277 [INFO ] Loaded 0 tasks

       

      or sometimes

       

      2012-07-26 11:18:33,597 [DEBUG] GET: http://localhost:8080/gwt-console-server/rs/tasks/krisv

      2012-07-26 11:18:46,536 [FATAL] Uncaught Exception:
      java.lang.IllegalArgumentException:
      must be positive

          at Unknown.$fillInStackTrace(StackTraceCreator.java:147)
          at Unknown.fillInStackTrace(StackTraceCreator.java:387)
          at Unknown.IllegalArgumentException_1(Throwable.java:46)
          at Unknown.$schedule(Timer.java:106)
          at Unknown.run_26(ClientMessageBusImpl.java:961)
          at Unknown.fire(Timer.java:141)
          at Unknown.anonymous(Timer.java:60)
          at Unknown.entry0(Impl.java:214)
          at Unknown.anonymous(Impl.java:57)

       

      2012-07-26 11:18:53,636 [DEBUG] parse {"tasks":[]}

      2012-07-26 11:18:53,649 [INFO ] Loaded 0 tasks

       

      Any idea on what's going wrong or what i am doing wrong actually?

       

      I am testing with the jbpm-5.3.0.Final-installer-full version.

       

      Regards

        • 1. Re: Problems with jbpm demo
          Maciej Swiderski Master

          It is difficult to help without seeing any kind of errors so a good practice is to always provide server log for analysis. Based on your description it looks like task server experienced some issues after completing first task and is not capable of working on the others. Check server log, you could try to clean up data base (if possible) and re-run the test once again.

           

           

          P.S.

          nice to hear that you looking into BPM and jBPM, I am sure it will get better as soon as you get through initial setup steps...

           

          HTH

          • 2. Re: Problems with jbpm demo
            Franck cdsosi Newbie

            Thanks for replying,

             

            It is difficult to help without seeing any kind of errors so a good practice is to always provide server log for analysis. Based on your description it looks like task server experienced some issues after completing first task and is not capable of working on the others. Check server log, you could try to clean up data base (if possible) and re-run the test once again.

             

             

            P.S.

            nice to hear that you looking into BPM and jBPM, I am sure it will get better as soon as you get through initial setup steps...

            =>I hope so , the initial steps are quite difficult !

            • 3. Re: Problems with jbpm demo
              Ville Itämaa Newbie

              I have the same problem here (I had the same exception as you Franck cdsosi). I am able to create new process instances and they are shown in the list.

              But when I go to the Task List, nothing shows up, even if I refresh.

               

              I have stopped the debugger, tried to terminate processes and created new ones but they just don't appear in krisv's task list.

               

              Here is a piece of the server.log

               

              10:14:28,040 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
              10:14:28,040 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
              10:14:28,041 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
              10:14:28,041 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
              10:14:28,041 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
              10:14:28,042 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
              10:14:28,042 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
              10:14:28,042 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              10:14:28,042 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              10:14:28,043 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
              10:14:28,043 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
              10:14:28,043 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
              10:14:28,044 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
              10:14:28,044 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at java.lang.Thread.run(Thread.java:722)

              10:14:31,851 ERROR [stderr] (Thread-19) javax.persistence.NonUniqueResultException: result returns more than one elements

              10:14:31,852 ERROR [stderr] (Thread-19) at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:109)
              10:14:31,852 ERROR [stderr] (Thread-19) at org.jbpm.task.service.TaskServiceSession.getTaskByWorkItemId(TaskServiceSession.java:644)
              10:14:31,852 ERROR [stderr] (Thread-19) at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:258)
              10:14:31,853 ERROR [stderr] (Thread-19) at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:44)
              10:14:31,853 ERROR [stderr] (Thread-19) at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:85)
              10:14:31,853 ERROR [stderr] (Thread-19) at java.lang.Thread.run(Thread.java:722)

              10:15:27,549 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) java.lang.RuntimeException: Timeout : unable to retrieve results

              10:15:27,550 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler.getResults(BlockingTaskSummaryResponseHandler.java:41)
              10:15:27,550 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jbpm.task.service.SyncTaskServiceWrapper.getTasksOwned(SyncTaskServiceWrapper.java:512)
              10:15:27,550 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jbpm.integration.console.TaskManagement.getAssignedTasks(TaskManagement.java:140)
              10:15:27,550 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101)
              10:15:27,551 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
              10:15:27,551 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              10:15:27,551 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at java.lang.reflect.Method.invoke(Method.java:601)
              10:15:27,551 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
              10:15:27,552 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
              10:15:27,552 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
              10:15:27,552 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
              10:15:27,552 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
              10:15:27,553 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
              10:15:27,553 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
              10:15:27,553 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
              10:15:27,553 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
              10:15:27,553 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
              10:15:27,554 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
              10:15:27,554 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
              10:15:27,554 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
              10:15:27,555 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
              10:15:27,555 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
              10:15:27,555 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
              10:15:27,555 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
              10:15:27,556 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
              10:15:27,556 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
              10:15:27,556 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
              10:15:27,556 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
              10:15:27,557 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
              10:15:27,557 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              10:15:27,557 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              10:15:27,557 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
              10:15:27,558 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
              10:15:27,558 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
              10:15:27,558 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
              10:15:27,558 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at java.lang.Thread.run(Thread.java:722)

              10:22:11,409 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) java.lang.RuntimeException: Timeout : unable to retrieve results

              10:22:11,413 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler.getResults(BlockingTaskSummaryResponseHandler.java:41)
              10:22:11,413 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jbpm.task.service.SyncTaskServiceWrapper.getTasksOwned(SyncTaskServiceWrapper.java:512)
              10:22:11,413 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jbpm.integration.console.TaskManagement.getAssignedTasks(TaskManagement.java:140)
              10:22:11,413 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101)
              10:22:11,414 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source)
              10:22:11,414 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              10:22:11,414 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at java.lang.reflect.Method.invoke(Method.java:601)
              10:22:11,414 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
              10:22:11,415 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
              10:22:11,415 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
              10:22:11,415 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
              10:22:11,415 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
              10:22:11,416 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
              10:22:11,416 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
              10:22:11,416 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
              10:22:11,416 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
              10:22:11,417 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
              10:22:11,417 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
              10:22:11,418 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
              10:22:11,418 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
              10:22:11,418 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
              10:22:11,418 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
              10:22:11,419 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
              10:22:11,419 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
              10:22:11,419 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
              10:22:11,419 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
              10:22:11,419 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
              10:22:11,420 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
              10:22:11,420 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
              10:22:11,420 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              10:22:11,420 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              10:22:11,421 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
              10:22:11,421 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
              10:22:11,421 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
              10:22:11,421 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
              10:22:11,422 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at java.lang.Thread.run(Thread.java:722)