Jiri Cap [
https://community.jboss.org/people/capos] created the discussion
"IllegalStateException in jBPM 5.2"
To view the discussion, visit:
https://community.jboss.org/message/757232#757232
--------------------------------------------------------------
Hi,
I am trying to change the peristence of jBPM to use Oracle 10g XE database.
I am getting the IllegalStateException when trying to load processes in jbpm console.
Here is the exception as appeared in server.log:
13:36:09,632 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]]
(http--0.0.0.0-8910-4) Servlet.service() for servlet Resteasy threw exception:
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not
initialize stateful knowledge session: [PersistenceUnit: org.jbpm.persistence.jpa] Unable
to build EntityManagerFactory
at
org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
[resteasy-jaxrs-2.2.1.GA.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
[jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at java.lang.Thread.run(Thread.java:722) [:1.7.0_04]
Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session:
[PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:244)
[jbpm-gwt-core-5.2.0.Final.jar:]
at
org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:252)
[jbpm-gwt-core-5.2.0.Final.jar:]
at
org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:92)
[jbpm-gwt-core-5.2.0.Final.jar:]
at
org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)
[jbpm-gwt-core-5.2.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
[jbpm-gwt-core-5.2.0.Final.jar:]
at
org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
[jbpm-gwt-core-5.2.0.Final.jar:]
at
org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:86)
[classes:]
at
org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)
[classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.7.0_04]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[:1.7.0_04]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[:1.7.0_04]
at java.lang.reflect.Method.invoke(Method.java:601) [:1.7.0_04]
at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
[resteasy-jaxrs-2.2.1.GA.jar:]
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
[resteasy-jaxrs-2.2.1.GA.jar:]
at
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
[resteasy-jaxrs-2.2.1.GA.jar:]
... 24 more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
[hibernate-entitymanager-3.4.0.GA.jar:]
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
[hibernate-entitymanager-3.4.0.GA.jar:]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
[hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at
org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:154)
[jbpm-gwt-core-5.2.0.Final.jar:]
... 40 more
Caused by: org.hibernate.HibernateException: Could not find datasource
at
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
[hibernate-entitymanager-3.4.0.GA.jar:]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
[hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
[hibernate-core-3.3.2.GA.jar:]
at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
[hibernate-annotations-3.4.0.GA.jar:]
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
[hibernate-entitymanager-3.4.0.GA.jar:]
... 44 more
Caused by: java.lang.IllegalStateException
at org.jboss.msc.value.InjectedValue.getValue(InjectedValue.java:47)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:116)
at org.jboss.as.naming.service.BinderService.getValue(BinderService.java:43)
at
org.jboss.msc.service.ServiceControllerImpl.getValue(ServiceControllerImpl.java:1216)
at
org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:111)
at
org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:73)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:173)
at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:57)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:209)
at javax.naming.InitialContext.lookup(InitialContext.java:411) [:1.7.0_04]
at
org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
[hibernate-core-3.3.2.GA.jar:]
... 52 more
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/757232#757232]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]