Named query not found: ProcessInstancesWaitingForEvent

Version 3

    When I am trying to create a jbpm application, I found the following error.

    If anybody suffered from this and solved it, please help me to resolve this.

     

     

     

    15:44:29,792 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) Hibernate: insert into SessionInfo (lastModificationDate, rulesByteArray, startDate, OPTLOCK) values (?, ?, ?, ?) 15:44:29,875 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:29,874 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.transaction.jta.JtaTransactionManager] - Initiating transaction commit 15:44:29,891 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:29,891 DEBUG (http-localhost-127.0.0.1-8080-1) [org.drools.container.spring.beans.persistence.DroolsSpringTransactionManager] - Current TX name (According to TransactionSynchronizationManager) : null 15:44:29,892 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:29,892 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.transaction.jta.JtaTransactionManager] - Creating new transaction with name [null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT 15:44:29,894 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:29,894 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler] - Starting resource local transaction on application-managed EntityManager [org.hibernate.ejb.EntityManagerImpl@137b38] 15:44:29,894 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:29,894 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler] - Joined local transaction 15:44:29,919 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:29,919 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler] - Starting resource local transaction on application-managed EntityManager [org.hibernate.ejb.EntityManagerImpl@1d925b4] 15:44:29,919 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:29,919 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler] - Joined local transaction 15:44:29,920 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:29,919 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler] - Joined local transaction 15:44:29,970 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) Hibernate: insert into ProcessInstanceInfo (lastModificationDate, lastReadDate, processId, processInstanceByteArray, startDate, state, OPTLOCK) values (?, ?, ?, ?, ?, ?, ?) 15:44:29,991 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) Hibernate: insert into WorkItemInfo (creationDate, name, processInstanceId, state, OPTLOCK, workItemByteArray) values (?, ?, ?, ?, ?, ?) 15:44:30,021 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) Hibernate: select workitemin0_.workItemId as workItemId69_0_, workitemin0_.creationDate as creation2_69_0_, workitemin0_.name as name69_0_, workitemin0_.processInstanceId as processI4_69_0_, workitemin0_.state as state69_0_, workitemin0_.OPTLOCK as OPTLOCK69_0_, workitemin0_.workItemByteArray as workItem7_69_0_ from WorkItemInfo workitemin0_ where workitemin0_.workItemId=? 15:44:30,039 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:30,036 ERROR (http-localhost-127.0.0.1-8080-1) [org.drools.persistence.SingleSessionCommandService] - Could not commit session 15:44:30,039 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) org.jbpm.workflow.instance.WorkflowRuntimeException: [com.salaboy.process.AsyncInteractions:123 - User Interaction 1:2] -- Named query not found: ProcessInstancesWaitingForEvent 15:44:30,040 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:132) 15:44:30,040 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279) 15:44:30,040 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238) 15:44:30,040 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) 15:44:30,040 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) 15:44:30,040 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126) 15:44:30,041 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) 15:44:30,041 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:194) 15:44:30,041 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:309) 15:44:30,041 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:170) 15:44:30,041 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:140) 15:44:30,041 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082) 15:44:30,042 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320) 15:44:30,042 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:120) 15:44:30,042 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:39) 15:44:30,042 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) 15:44:30,042 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:367) 15:44:30,042 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:223) 15:44:30,043 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:214) 15:44:30,043 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at com.nijhazer.jbpm.quickstart.KnowledgeSessionFactory.getStatefulKnowledgeSession(KnowledgeSessionFactory.java:80) 15:44:30,043 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at com.nijhazer.jbpm.quickstart.controller.HomeController.createTaskDetail(HomeController.java:32) 15:44:30,043 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15:44:30,043 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 15:44:30,043 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 15:44:30,044 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at java.lang.reflect.Method.invoke(Method.java:606) 15:44:30,044 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213) 15:44:30,044 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126) 15:44:30,044 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) 15:44:30,044 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617) 15:44:30,044 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) 15:44:30,044 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) 15:44:30,044 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) 15:44:30,045 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at java.lang.Thread.run(Thread.java:724) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) Caused by: java.lang.IllegalArgumentException: Named query not found: ProcessInstancesWaitingForEvent 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:628) 15:44:30,046 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at java.lang.reflect.Method.invoke(Method.java:606) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at com.sun.proxy.$Proxy48.createNamedQuery(Unknown Source) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.persistence.JpaProcessPersistenceContext.getProcessInstancesWaitingForEvent(JpaProcessPersistenceContext.java:35) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.persistence.processinstance.JPASignalManager.getProcessInstancesForEvent(JPASignalManager.java:40) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:23) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:264) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:269) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:111) 15:44:30,047 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126) 15:44:30,048 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   ... 50 more 15:44:30,048 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:30,048 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.transaction.jta.JtaTransactionManager] - Initiating transaction rollback 15:44:30,056 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:30,056 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver] - Resolving exception from handler [public java.lang.String com.nijhazer.jbpm.quickstart.controller.HomeController.createTaskDetail(org.springframework.ui.Model)]: org.jbpm.workflow.instance.WorkflowRuntimeException: [com.salaboy.process.AsyncInteractions:123 - User Interaction 1:2] -- Named query not found: ProcessInstancesWaitingForEvent 15:44:30,058 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:30,058 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver] - Resolving exception from handler [public java.lang.String com.nijhazer.jbpm.quickstart.controller.HomeController.createTaskDetail(org.springframework.ui.Model)]: org.jbpm.workflow.instance.WorkflowRuntimeException: [com.salaboy.process.AsyncInteractions:123 - User Interaction 1:2] -- Named query not found: ProcessInstancesWaitingForEvent 15:44:30,058 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:30,058 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver] - Resolving exception from handler [public java.lang.String com.nijhazer.jbpm.quickstart.controller.HomeController.createTaskDetail(org.springframework.ui.Model)]: org.jbpm.workflow.instance.WorkflowRuntimeException: [com.salaboy.process.AsyncInteractions:123 - User Interaction 1:2] -- Named query not found: ProcessInstancesWaitingForEvent 15:44:30,059 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) 2013-08-13 15:44:30,058 DEBUG (http-localhost-127.0.0.1-8080-1) [org.springframework.web.servlet.DispatcherServlet] - Could not complete request 15:44:30,059 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) org.jbpm.workflow.instance.WorkflowRuntimeException: [com.salaboy.process.AsyncInteractions:123 - User Interaction 1:2] -- Named query not found: ProcessInstancesWaitingForEvent 15:44:30,059 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:132) 15:44:30,059 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279) 15:44:30,059 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238) 15:44:30,059 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) 15:44:30,059 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:194) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:309) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:170) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:140) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:120) 15:44:30,060 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:39) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.impl.DefaultCommandService.execute(DefaultCommandService.java:36) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.persistence.SingleSessionCommandService.execute(SingleSessionCommandService.java:367) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:223) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:214) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at com.nijhazer.jbpm.quickstart.KnowledgeSessionFactory.getStatefulKnowledgeSession(KnowledgeSessionFactory.java:80) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at com.nijhazer.jbpm.quickstart.controller.HomeController.createTaskDetail(HomeController.java:32) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 15:44:30,061 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at java.lang.reflect.Method.invoke(Method.java:606) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) 15:44:30,062 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) 15:44:30,063 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at java.lang.Thread.run(Thread.java:724) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1) Caused by: java.lang.IllegalArgumentException: Named query not found: ProcessInstancesWaitingForEvent 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:628) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at java.lang.reflect.Method.invoke(Method.java:606) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at com.sun.proxy.$Proxy48.createNamedQuery(Unknown Source) 15:44:30,064 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.persistence.JpaProcessPersistenceContext.getProcessInstancesWaitingForEvent(JpaProcessPersistenceContext.java:35) 15:44:30,065 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.persistence.processinstance.JPASignalManager.getProcessInstancesForEvent(JPASignalManager.java:40) 15:44:30,065 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:23) 15:44:30,065 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:264) 15:44:30,065 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:269) 15:44:30,065 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:111) 15:44:30,065 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126) 15:44:30,065 INFO  [stdout] (http-localhost-127.0.0.1-8080-1)   ... 50 more 15:44:30,066 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jbpm-spring-integration].[jbpm-spring-quickstart]] (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet jbpm-spring-quickstart threw exception: java.lang.IllegalArgumentException: Named query not found: ProcessInstancesWaitingForEvent at org.hibernate.ejb.AbstractEntityManagerImpl.createNamedQuery(AbstractEntityManagerImpl.java:628) [hibernate-entitymanager-4.0.0.Beta1.jar:4.0.0.Beta1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_25] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.7.0_25] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.7.0_25] at java.lang.reflect.Method.invoke(Method.java:606) [:1.7.0_25] at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:365) [spring-orm-3.1.1.RELEASE.jar:] at com.sun.proxy.$Proxy48.createNamedQuery(Unknown Source) at org.jbpm.persistence.JpaProcessPersistenceContext.getProcessInstancesWaitingForEvent(JpaProcessPersistenceContext.java:35) [jbpm-persistence-jpa-5.2.0.Final.jar:] at org.jbpm.persistence.processinstance.JPASignalManager.getProcessInstancesForEvent(JPASignalManager.java:40) [jbpm-persistence-jpa-5.2.0.Final.jar:] at org.jbpm.persistence.processinstance.JPASignalManager.signalEvent(JPASignalManager.java:23) [jbpm-persistence-jpa-5.2.0.Final.jar:] at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:264) [jbpm-flow-5.4.0-SNAPSHOT.jar:] at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setState(WorkflowProcessInstanceImpl.java:269) [jbpm-flow-5.4.0-SNAPSHOT.jar:] at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:111) [jbpm-flow-5.4.0-SNAPSHOT.jar:] at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126) [jbpm-flow-5.4.0-SNAPSHOT.jar:] at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:279) [jbpm-flow-5.4.0-SNAPSHOT.jar:] at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:238) [jbpm-flow-5.4.0-SNAPSHOT.jar:] at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) [jbpm-flow-5.4.0-SNAPSHOT.jar:] at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) [jbpm-flow-5.4.0-SNAPSHOT.jar:] at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:126) [jbpm-flow-5.4.0-SNAPSHOT.jar:]