[jboss-user] [jBPM] - The process instance Couldn't completed

echelon do-not-reply at jboss.com
Fri Feb 18 01:26:10 EST 2011


echelon [http://community.jboss.org/people/echelon] created the discussion

"The process instance Couldn't completed"

To view the discussion, visit: http://community.jboss.org/message/588231#588231

--------------------------------------------------------------
Hi!

I found a progrem that there was is a exception when the end node executed.
And it's also exists when I click the terminate button to terminate process instance.
Have somebody got it? Or tell me the reason!
Thanks!


2011-02-18 06:06:38,239 INFO  [STDOUT] (NioProcessor-1) 06:06:38,239 ERROR [SingleSessionCommandService] Could not commit session
java.lang.IllegalArgumentException: Named query not found: ProcessInstancesWaitingForEvent
    at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:108)
    at org.jbpm.persistence.JpaProcessPersistenceContext.getProcessInstancesWaitingForEvent(JpaProcessPersistenceContext.java:35)
    at org.jbpm.persistence.processinstance.JPASignalManager.getProcessInstancesForEvent(JPASignalManager.java:40)
    at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:23)
    at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:263)
    at org.jbpm.workflow.instance.node.EndNodeInstance.internalTrigger(EndNodeInstance.java:57)
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
    at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)
    at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
    at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
    at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
    at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:206)
    at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)
    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:268)
    at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:244)
    at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)
    at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:119)
    at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
    at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
    at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:295)
    at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:146)
    at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedWSHumanTaskHandler.java:277)
    at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)
    at org.jbpm.task.service.mina.MinaTaskClientHandler.messageReceived(MinaTaskClientHandler.java:47)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
    at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
    at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)
    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)
    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1) [2011:02:49 06:02:275:exception] Uncaught exception on client
2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1) java.lang.IllegalArgumentException: Named query not found: ProcessInstancesWaitingForEvent
2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1)     at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:108)
2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.persistence.JpaProcessPersistenceContext.getProcessInstancesWaitingForEvent(JpaProcessPersistenceContext.java:35)
2011-02-18 06:06:38,275 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.persistence.processinstance.JPASignalManager.getProcessInstancesForEvent(JPASignalManager.java:40)
2011-02-18 06:06:38,374 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:23)
2011-02-18 06:06:38,374 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:263)
2011-02-18 06:06:38,375 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.EndNodeInstance.internalTrigger(EndNodeInstance.java:57)
2011-02-18 06:06:38,375 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
2011-02-18 06:06:38,375 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
2011-02-18 06:06:38,474 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
2011-02-18 06:06:38,474 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)
2011-02-18 06:06:38,474 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)
2011-02-18 06:06:38,475 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
2011-02-18 06:06:38,475 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
2011-02-18 06:06:38,587 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
2011-02-18 06:06:38,587 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
2011-02-18 06:06:38,587 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
2011-02-18 06:06:38,588 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
2011-02-18 06:06:38,686 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:206)
2011-02-18 06:06:38,686 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)
2011-02-18 06:06:38,686 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:268)
2011-02-18 06:06:38,686 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:244)
2011-02-18 06:06:38,786 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:333)
2011-02-18 06:06:38,786 INFO  [STDOUT] (NioProcessor-1)     at org.drools.persistence.jpa.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:119)
2011-02-18 06:06:38,786 INFO  [STDOUT] (NioProcessor-1)     at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
2011-02-18 06:06:38,786 INFO  [STDOUT] (NioProcessor-1)     at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:32)
2011-02-18 06:06:38,886 INFO  [STDOUT] (NioProcessor-1)     at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:295)
2011-02-18 06:06:38,886 INFO  [STDOUT] (NioProcessor-1)     at org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1.completeWorkItem(CommandBasedStatefulKnowledgeSession.java:146)
2011-02-18 06:06:38,886 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler$GetResultContentResponseHandler.execute(CommandBasedWSHumanTaskHandler.java:277)
2011-02-18 06:06:38,886 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:153)
2011-02-18 06:06:38,986 INFO  [STDOUT] (NioProcessor-1)     at org.jbpm.task.service.mina.MinaTaskClientHandler.messageReceived(MinaTaskClientHandler.java:47)
2011-02-18 06:06:38,986 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:752)
2011-02-18 06:06:38,986 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
2011-02-18 06:06:38,986 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
2011-02-18 06:06:39,086 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
2011-02-18 06:06:39,086 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:379)
2011-02-18 06:06:39,087 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:173)
2011-02-18 06:06:39,087 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
2011-02-18 06:06:39,186 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:49)
2011-02-18 06:06:39,187 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:832)
2011-02-18 06:06:39,187 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain$HeadFilter.messageReceived(DefaultIoFilterChain.java:616)
2011-02-18 06:06:39,187 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:414)
2011-02-18 06:06:39,286 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:408)
2011-02-18 06:06:39,286 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:578)
2011-02-18 06:06:39,286 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:540)
2011-02-18 06:06:39,287 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:532)
2011-02-18 06:06:39,387 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:58)
2011-02-18 06:06:39,388 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.core.polling.AbstractPollingIoProcessor$Worker.run(AbstractPollingIoProcessor.java:857)
2011-02-18 06:06:39,388 INFO  [STDOUT] (NioProcessor-1)     at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
2011-02-18 06:06:39,388 INFO  [STDOUT] (NioProcessor-1)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
2011-02-18 06:06:39,389 INFO  [STDOUT] (NioProcessor-1)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
2011-02-18 06:06:39,487 INFO  [STDOUT] (NioProcessor-1)     at java.lang.Thread.run(Thread.java:595)
2011-02-18 06:06:39,488 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user admin:
2011-02-18 06:06:39,488 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  admin
2011-02-18 06:06:39,488 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  manager
2011-02-18 06:06:39,488 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  user
2011-02-18 06:06:39,489 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user krisv:
2011-02-18 06:06:39,489 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  admin
2011-02-18 06:06:39,489 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  manager
2011-02-18 06:06:39,489 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  user
2011-02-18 06:06:39,490 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user john:
2011-02-18 06:06:39,490 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  admin
2011-02-18 06:06:39,490 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  manager
2011-02-18 06:06:39,490 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  user
2011-02-18 06:06:39,587 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1) Loaded user mary:
2011-02-18 06:06:39,587 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  admin
2011-02-18 06:06:39,587 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  manager
2011-02-18 06:06:39,587 INFO  [STDOUT] (http-localhost%2F127.0.0.1-8080-1)  user
2011-02-18 06:06:39,618 INFO  [STDOUT] (NioProcessor-4) [2011:02:49 06:02:618:debug] Message receieved on client : QueryTaskSummaryResponse
2011-02-18 06:06:39,619 INFO  [STDOUT] (NioProcessor-4) [2011:02:49 06:02:619:debug] Arguments : [[org.jbpm.task.query.TaskSummary at 42f58ed6]]
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/588231#588231]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110218/90b7faab/attachment-0001.html 


More information about the jboss-user mailing list