java.lang.RuntimeException:无法找到或创建新的EntityManager

时间:2018-09-26 12:10:17

标签: jbpm

我正在尝试如下初始化运行时引擎:

文件ruleflowFile =新文件(“ C:\ Users \ manasa.t \ Documents \ NetBeansProjects \ DalmiaProject \ src \ main \ resources \ DalmiaWorkflow.bpmn”); RuntimeEnvironment环境= RuntimeEnvironmentBuilder.Factory.get()。newDefaultInMemoryBuilder()     .addAsset(ResourceFactory.newFileResource(ruleflowFile),ResourceType.BPMN2)     。得到();     runtimeEngine = RuntimeManagerFactory.Factory.get()。newSingletonRuntimeManager(environment).getRuntimeEngine(null);

错误是:

17:37:06,237错误[stderr](默认任务12)java.lang.RuntimeException:无法找到或创建新的EntityManager! 17:37:06,238在org.jbpm.process.audit.JPAWorkingMemoryDbLogger.getEntityManager(JPAWorkingMemoryDbLogger.java:291)上出现[stderr](默认任务12) 17:37:06,239在org.jbpm.process.audit.JPAWorkingMemoryDbLogger.persist(JPAWorkingMemoryDbLogger.java:246)上出现[stderr](默认任务12) 17:37:06,244在org.jbpm.process.audit.JPAWorkingMemoryDbLogger.beforeProcessStarted(JPAWorkingMemoryDbLogger.java:142)上出现[stderr](默认任务12) 17:37:06,250 org.drools.core.event.ProcessEventSupport.fireBeforeProcessStarted(ProcessEventSupport.java:41)出现错误[stderr](默认任务12) 17:37:06,253 org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:209)出现[stderr](默认任务12) 17:37:06,257在org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:193)上出现[stderr](默认任务12) 17:37:06,261在org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:185)上的错误[stderr](默认任务12) 17:37:06,266 org.drools.core.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:1857)出现错误[stderr](默认任务12) 17:37:06,271在com.dalmia.app.jbpm.BPMProcessBean.startProcess(BPMProcessBean.java:33)上出现[stderr](默认任务12)错误 17:37:06,275 com.dalmia.app.jbpm.BPMLogic.startWorkflow(BPMLogic.java:28)出现[stderr](默认任务12) 17:37:06,278 com.dalmia.app.ApproveServlet.doPost(ApproveServlet.java:38)出现[stderr]错误(默认任务12) 17:37:06,282 javax.servlet.http.HttpServlet.service(HttpServlet.java:707)出现错误[stderr](默认任务12) 17:37:06,286 javax.servlet.http.HttpServlet.service(HttpServlet.java:790)出现错误[stderr](默认任务12) 17:37:06,291 io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)出现错误[stderr](默认任务12) 17:37:06,294 io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)出现错误[stderr](默认任务12) 17:37:06,298 io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)出现错误[stderr](默认任务12) 17:37:06,301 org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)出现错误[stderr](默认任务12) 17:37:06,305 io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)出现错误[stderr](默认任务12) 17:37:06,310 io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)出现错误[stderr](默认任务12) 17:37:06,313 io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)出现错误[stderr](默认任务12) 17:37:06,317 io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)出现错误[stderr](默认任务12) 17:37:06,322 io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)出现错误[stderr](默认任务12) 17:37:06,326 io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)出现错误[stderr](默认任务12) 17:37:06,331 io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)出现错误[stderr](默认任务12) 17:37:06,336 io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)出现[stderr](默认任务12) 17:37:06,340 io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)出现错误[stderr](默认任务12) 17:37:06,345 io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)出现错误[stderr](默认任务12) 17:37:06,349 io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)出现错误[stderr](默认任务12) 17:37:06,354在org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)上的错误[stderr](默认任务12) 17:37:06,358 io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)出现[stderr](默认任务12) 17:37:06,362在org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)上出现[stderr](默认任务12) 17:37:06,366 io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)出现错误[stderr](默认任务12) 17:37:06,370 io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)出现错误[stderr](默认任务12) 17:37:06,375 io.undertow.servlet.handlers.ServletInitialHandler.access $ 100(ServletInitialHandler.java:81)出现[stderr](默认任务12) 17:37:06,380在io.undertow.servlet.handlers.ServletInitialHandler $ 2.call(ServletInitialHandler.java:138)上出现[stderr](默认任务12) 17:37:06,383在io.undertow.servlet.handlers.ServletInitialHandler $ 2.call(ServletInitialHandler.java:135)上出现[stderr](默认任务12) 17:37:06,387 io.undertow.servlet.core.ServletRequestContextThreadSetupAction $ 1.call(ServletRequestContextThreadSetupAction.java:48)出现错误[stderr](默认任务12) 17:37:06,392 io.undertow.servlet.core.ContextClassLoaderSetupAction $ 1.call(ContextClassLoaderSetupAction.java:43)出现[stderr](默认任务12) 17:37:06,397在org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda $ create $ 0(SecurityContextThreadSetupAction.java:105)处出现[stderr](默认任务12) 17:37:06,400错误[stderr](默认任务12)在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction.lambda $ create $ 0(UndertowDeploymentInfoService.java:1508) 17:37:06,404错误[stderr](默认任务12)位于org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction.lambda $ create $ 0(UndertowDeploymentInfoService.java:1508) 17:37:06,408在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction.lambda $ create $ 0(UndertowDeploymentInfoService.java:1508)上的错误[stderr](默认任务12) 17:37:06,412 org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService $ UndertowThreadSetupAction.lambda $ create $ 0(UndertowDeploymentInfoService.java:1508)上的错误[stderr](默认任务12) 17:37:06,416 io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)出现错误[stderr](默认任务12) 17:37:06,420 io.undertow.servlet.handlers.ServletInitialHandler.access $ 000(ServletInitialHandler.java:81)出现错误[stderr](默认任务12) 17:37:06,424 io.undertow.servlet.handlers.ServletInitialHandler $ 1.handleRequest(ServletInitialHandler.java:104)出现错误[stderr](默认任务12) 17:37:06,427 io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)出现错误[stderr](默认任务12) 17:37:06,431 io.undertow.server.HttpServerExchange $ 1.run(HttpServerExchange.java:812)出现[stderr](默认任务12) 17:37:06,436 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)出现错误[stderr](默认任务12) 17:37:06,440 java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)出现错误[stderr](默认任务12)

0 个答案:

没有答案