7 Replies Latest reply on Apr 27, 2015 4:03 AM by Francesco Scarcella

    WildFly 8.1.0.final and Jbpm.6.1.0.Final : While trying to abort a process gets and error message could not restore "CheckWeather" process

    SANJAY GAUTAM Expert

      What I was Testing

      Check Weather Application example which is already available with JBPM

      What I am trying to do ?

      Deployed the Example and Entered the zip code and I can see on the console it retrieved the weather details from the Internet and the task moves to the Human Task in this business process.

      When I go and try to abort this process it shows below errors , this has recently started appearing.

       

      Question is

      How can I abort the process either from the back end or any other way so that I can redeploy with my latest changes which I made to the CheckWeather process.

       

      Error On JBpm-Console

      Unexpected error encountered : Could not find process CheckWeather when restoring process instance 16

       

      Error Details

      12:02:47,709 ERROR [stderr] (default task-15) line 1:82 no viable alternative at character '\'

      12:02:47,712 ERROR [stderr] (default task-15) line 1:132 no viable alternative at character '\'

      12:02:48,322 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (default task-15) KieModule was added:MemoryKieModule[ ReleaseId=org.jbpm.example:async-examples:1.0]

      12:03:01,521 WARN  [org.drools.persistence.SingleSessionCommandService] (default task-4) Could not commit session: java.lang.RuntimeException: Could not find process CheckWeather when restoring proces

      s instance 15

              at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.readProcessInstance(AbstractProtobufProcessInstanceMarshaller.java:472) [jbpm-flow-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:159) [jbpm-persistence-jpa-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstance(JPAProcessInstanceManager.java:121) [jbpm-persistence-jpa-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:266) [jbpm-flow-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:262) [jbpm-flow-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.process.instance.ProcessRuntimeImpl.abortProcessInstance(ProcessRuntimeImpl.java:429) [jbpm-flow-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.core.impl.StatefulKnowledgeSessionImpl.abortProcessInstance(StatefulKnowledgeSessionImpl.java:478) [drools-core-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.core.command.runtime.process.AbortProcessInstanceCommand.execute(AbortProcessInstanceCommand.java:47) [drools-core-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.core.command.runtime.process.AbortProcessInstanceCommand.execute(AbortProcessInstanceCommand.java:28) [drools-core-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:509) [drools-persistence-jpa-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73) [drools-persistence-jpa-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:60) [drools-persistence-jpa-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:353) [drools-persistence-jpa-6.1.0.Final.jar:6.1.0.Final]

              at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.abortProcessInstance(CommandBasedStatefulKnowledgeSession.java:126) [drools-core-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.console.ng.bd.backend.server.KieSessionEntryPointImpl.abortProcessInstance(KieSessionEntryPointImpl.java:95) [jbpm-console-ng-business-domain-backend-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.console.ng.bd.backend.server.KieSessionEntryPointImpl$Proxy$_$$_WeldClientProxy.abortProcessInstance(Unknown Source) [jbpm-console-ng-business-domain-backend-6.1.0.Final.jar:6.1.0.

      Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_71]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_71]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_71]

              at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_71]

              at org.jboss.errai.bus.server.io.AbstractRPCMethodCallback.invokeMethodFromMessage(AbstractRPCMethodCallback.java:48) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

              at org.jboss.errai.bus.server.io.VoidRPCEndpointCallback.callback(VoidRPCEndpointCallback.java:20) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

              at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

              at org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIExtensionPoints.java:499) [errai-weld-integration-2.4.5.Final.jar:2.4.5.Final]

              at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

              at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:284) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

              at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:97) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

              at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:114) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

              at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:140) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

              at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        • 1. Re: WildFly 8.1.0.final and Jbpm.6.1.0.Final : While trying to abort a process gets and error message could not restore "CheckWeather" process
          SANJAY GAUTAM Expert

          I think I got what the issue is probably , I dont know how to abort the process nothing is working .

          Probable Reason

          Check Weather Process ask for the user name and if I provide the user name in the first form randomly which is not in the system then that human task get assigned to that person which is not in the users.properties and we are not able to abort the task.

          can any one confirm this behavior. I assumed that Admin should be able to abort any task whatsoever might happen. There should not be such situation if this happens then for that process nothing can be reployed later on. unless other wise we delete bpmn no idea though.

          I see its a potential issue I am not sure.  


          Thanks

          Sanjay Gautam

          • 2. Re: WildFly 8.1.0.final and Jbpm.6.1.0.Final : While trying to abort a process gets and error message could not restore "CheckWeather" process
            Maciej Swiderski Master

            this error means that there is no process definition available while it's being loaded. So somehow you use another ksession then you should. Does this happen for every invocation of Check Weather process?

             

            User task assignment has no impact on this operation.

             

            HTH

            • 3. Re: WildFly 8.1.0.final and Jbpm.6.1.0.Final : While trying to abort a process gets and error message could not restore "CheckWeather" process
              SANJAY GAUTAM Expert

              Maciej

               

              Please see the check weather process it uses an User kie object and if there are usera userb and userc , instead of entering any of the three you put userd in the forms , it still saves the task related with that userd but is since the userd doesnt not exits

              the get tasks tab throws a join query some how and task is never assigned to right person and also process instance cannot be aborted since in the table there is task.

              Kind of situtaiton where for the process there is a task but it cannot be assigned to any one. that task never gets completed and its depended process instance cannot be aborted or delete.,I hope I was able to explain the situation.

              probably there should be a error if User object is used and if you try to persist the task with non existent user then it should at least get assigned to admin rather than with out any user.

              You can use the same example and instead of putting krisv or any other user which are there in users.properties  and then go and try to abort the task and then try to delete the process instance it will not allow you to do so .

              Its not a big deal but there should be some way to prevent this either it shoudl get assigned to admin if the user entered in the form doesnt exists via kie USER object.

               

              Thanks
              Sanjay

              • 4. Re: WildFly 8.1.0.final and Jbpm.6.1.0.Final : While trying to abort a process gets and error message could not restore "CheckWeather" process
                Francesco Scarcella Newbie

                I have that error

                15:59:56,266 WARN  [org.drools.persistence.SingleSessionCommandService] (default task-8) Could not commit session: java.lang.RuntimeException: Could not find process org.jbpm.examples.rewards when restoring process instance 26

                 

                (This error si also blocking! but it is defined WARN )

                 

                when i execute this:

                 

                @Inject
                ProcessService processService;

                 

                ...

                 

                processInstanceId = processService.startProcess(org.jbpm.examples:rewards:1.0, "org.jbpm.examples.rewards", params);

                ProcessInstance processo = processService.getProcessInstance(processInstanceId); \\ here is the error

                ProcessDefinition p = runtimeDataService.getProcessById(processo.getProcessName());

                 

                the process start correctly but i can't recover the process

                • 6. Re: WildFly 8.1.0.final and Jbpm.6.1.0.Final : While trying to abort a process gets and error message could not restore "CheckWeather" process
                  Maciej Swiderski Master

                  could you attach complete stack trace?

                   

                  another question - does this happen constantly? If so could you provide reproducer for this

                   

                  HTH

                  • 7. Re: WildFly 8.1.0.final and Jbpm.6.1.0.Final : While trying to abort a process gets and error message could not restore "CheckWeather" process
                    Francesco Scarcella Newbie

                    Maciej,

                    now it works correctly but i don't touch nothing!

                    This is the first case that on friady nothing work and on monday the miracle happen.

                     

                    However the pass that i follow are:

                     

                    @Inject
                    ProcessService processService;

                    ...

                    processInstanceId = processService.startProcess(org.jbpm.examples:rewards:1.0, "org.jbpm.examples.rewards", params);

                    ProcessInstance processo = processService.getProcessInstance(processInstanceId); //in this case the processInstanceId is 33

                    ProcessDefinition p = runtimeDataService.getProcessById(processo.getProcessName());

                     

                    but this error display only  at first execution of the code:

                     

                    09:46:12,322 WARN  [org.drools.persistence.SingleSessionCommandService] (default task-5) Could not commit session: java.lang.RuntimeException: Could not find process MyTest_Test.myTest Process when restoring process instance 20

                        at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.readProcessInstance(AbstractProtobufProcessInstanceMarshaller.java:475) [jbpm-flow-6.2.0.Final.jar:6.2.0.Final]

                        at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:169) [jbpm-persistence-jpa-6.2.0.Final.jar:6.2.0.Final]

                        at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:150) [jbpm-persistence-jpa-6.2.0.Final.jar:6.2.0.Final]

                        at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstance(JPAProcessInstanceManager.java:124) [jbpm-persistence-jpa-6.2.0.Final.jar:6.2.0.Final]

                        at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:274) [jbpm-flow-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.core.impl.StatefulKnowledgeSessionImpl.getProcessInstance(StatefulKnowledgeSessionImpl.java:1942) [drools-core-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.core.command.runtime.process.GetProcessInstanceCommand.execute(GetProcessInstanceCommand.java:66) [drools-core-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.core.command.runtime.process.GetProcessInstanceCommand.execute(GetProcessInstanceCommand.java:30) [drools-core-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) [drools-core-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:548) [drools-persistence-jpa-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73) [drools-persistence-jpa-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41) [drools-core-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:79) [drools-persistence-jpa-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:358) [drools-persistence-jpa-6.2.0.Final.jar:6.2.0.Final]

                        at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.getProcessInstance(CommandBasedStatefulKnowledgeSession.java:120) [drools-core-6.2.0.Final.jar:6.2.0.Final]

                        at org.jbpm.kie.services.impl.ProcessServiceImpl.getProcessInstance(ProcessServiceImpl.java:171) [jbpm-kie-services-6.2.0.Final.jar:6.2.0.Final]

                        at org.jbpm.services.cdi.impl.ProcessServiceCDIImpl$Proxy$_$$_WeldClientProxy.getProcessInstance(Unknown Source) [jbpm-services-cdi-6.2.0.Final.jar:6.2.0.Final]

                        at org.jbpm.examples.web.ProcessBean.startProcess(ProcessBean.java:130) [classes:]

                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_76]

                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_76]

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_76]

                        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_76]

                        at com.sun.el.parser.AstValue.invoke(AstValue.java:292) [javax.el-3.0.1-b05.jar:]

                        at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304) [javax.el-3.0.1-b05.jar:]

                        at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40) [weld-core-impl-2.2.6.Final.jar:2014-10-03 10:05]

                        at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) [weld-core-impl-2.2.6.Final.jar:2014-10-03 10:05]

                        at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40) [weld-core-impl-2.2.6.Final.jar:2014-10-03 10:05]

                        at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) [weld-core-impl-2.2.6.Final.jar:2014-10-03 10:05]

                        at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.2.8-jbossorg-1.jar:]

                        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87) [jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]

                        at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-2.2.8-jbossorg-1.jar:]

                        at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]

                        at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790) [jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]

                        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282) [jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]

                        at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.2.8-jbossorg-1.jar:]

                        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.2.8-jbossorg-1.jar:]

                        at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198) [jsf-impl-2.2.8-jbossorg-1.jar:]

                        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646) [jboss-jsf-api_2.2_spec-2.2.8.jar:2.2.8]

                        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166) [undertow-servlet-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759) [undertow-core-1.1.0.Final.jar:1.1.0.Final]

                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_76]

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_76]

                        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_76]

                     

                    then in blue character

                     

                    java.lang.RuntimeException: Could not find process MyTest_Test.myTestProcess when restoring process instance 20

                        at org.jbpm.marshalling.impl.AbstractProtobufProcessInstanceMarshaller.readProcessInstance(AbstractProtobufProcessInstanceMarshaller.java:475)

                        at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:169)

                        at org.jbpm.persistence.processinstance.ProcessInstanceInfo.getProcessInstance(ProcessInstanceInfo.java:150)

                        at org.jbpm.persistence.processinstance.JPAProcessInstanceManager.getProcessInstance(JPAProcessInstanceManager.java:124)

                        at org.jbpm.process.instance.ProcessRuntimeImpl.getProcessInstance(ProcessRuntimeImpl.java:274)

                        at org.drools.core.impl.StatefulKnowledgeSessionImpl.getProcessInstance(StatefulKnowledgeSessionImpl.java:1942)

                        at org.drools.core.command.runtime.process.GetProcessInstanceCommand.execute(GetProcessInstanceCommand.java:66)

                        at org.drools.core.command.runtime.process.GetProcessInstanceCommand.execute(GetProcessInstanceCommand.java:30)

                        at org.drools.core.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36)

                        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

                        at org.drools.persistence.SingleSessionCommandService$TransactionInterceptor.execute(SingleSessionCommandService.java:548)

                        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

                        at org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:73)

                        at org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:41)

                        at org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:79)

                        at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:358)

                        at org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.getProcessInstance(CommandBasedStatefulKnowledgeSession.java:120)

                        at org.jbpm.kie.services.impl.ProcessServiceImpl.getProcessInstance(ProcessServiceImpl.java:171)

                        at org.jbpm.services.cdi.impl.ProcessServiceCDIImpl$Proxy$_$$_WeldClientProxy.getProcessInstance(Unknown Source)

                        at org.jbpm.examples.web.ProcessBean.startProcess(ProcessBean.java:130)

                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                        at java.lang.reflect.Method.invoke(Method.java:606)

                        at com.sun.el.parser.AstValue.invoke(AstValue.java:292)

                        at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:304)

                        at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                        at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                        at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40)

                        at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)

                        at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

                        at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)

                        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:790)

                        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)

                        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:198)

                        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)

                        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

                        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

                        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

                        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

                        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

                        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)

                        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)

                        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

                        at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

                        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)

                        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)

                        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)

                        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)

                        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)

                        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)

                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                        at java.lang.Thread.run(Thread.java:745)

                     

                    the process definition however recovered succesfully.

                    I don't know what's happening!

                     

                    thank you very much

                     

                    Regards