9 Replies Latest reply on Feb 18, 2009 2:04 PM by Maximilian Faupel

    pooled actor is not saved in the database

    Maximilian Faupel Newbie
      Hi,
      I wrote the following login class. When I try to log in an exception is thrown. When I look into the database the pooledactor table is empty. I do not know what is wrong and hope that someone can help me. Thank you in advance.
      Maximilian


      `@Name("login")
      public class Login {
           @In
           private Identity identity;
           
           @In
           private Actor actor;
           
           public String login() {
                this.actor.setId(this.identity.getUsername());
                
                if (this.identity.getUsername().equals("Michael")) {
                     this.actor.getGroupActorIds().add("Berater");
                     return "/Berater.xhtml";
                } else if (this.identity.getUsername().equals("Andreas")) {
                     this.actor.getGroupActorIds().add("Sachbearbeiter");
                     return "/Sachbearbeiter.xhtml";
                } else {
                     return null;
                }
           }
      }`

      12:06:12,331 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      12:06:12,331 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
      12:06:12,331 ERROR [TaskMgmtSession] org.hibernate.exception.GenericJDBCException: Cannot open connection
      12:06:12,335 ERROR [STDERR] 15.02.2009 12:06:12 com.sun.facelets.FaceletViewHandler handleRenderException
      SCHWERWIEGEND: Error Rendering View[/Berater.xhtml]
      org.jbpm.JbpmException: couldn't get pooled task instances list for actors '[Berater, Michael]'
           at org.jbpm.db.TaskMgmtSession.findPooledTaskInstances(TaskMgmtSession.java:125)
           at org.jbpm.JbpmContext.getGroupTaskList(JbpmContext.java:203)
           at org.jboss.seam.bpm.PooledTaskInstanceList.getPooledTaskInstanceList(PooledTaskInstanceList.java:37)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
           at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
           at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
           at org.jboss.seam.util.Work.workInTransaction(Work.java:41)
           at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
           at org.jboss.seam.bpm.PooledTaskInstanceList_$$_javassist_2.getPooledTaskInstanceList(PooledTaskInstanceList_$$_javassist_2.java)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
           at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
           at org.jboss.seam.Component.callComponentMethod(Component.java:2089)
           at org.jboss.seam.Component.unwrap(Component.java:2115)
           at org.jboss.seam.Component.getInstance(Component.java:1887)
           at org.jboss.seam.Component.getInstance(Component.java:1840)
           at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
           at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
           at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:177)
           at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
           at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
           at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
           at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
           at org.jboss.el.parser.AstEmpty.getValue(AstEmpty.java:29)
           at org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
           at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
           at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
           at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:370)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:880)
           at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
           at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
           at org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
           at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:199)
           at org.richfaces.renderkit.html.PanelRenderer.doEncodeChildren(PanelRenderer.java:194)
           at org.ajax4jsf.renderkit.RendererBase.encodeChildren(RendererBase.java:121)
           at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
           at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      12:06:12,335 ERROR [STDERR] :844)
           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
           at java.lang.Thread.run(Thread.java:595)
      Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
           at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
           at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
           at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
           at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
           at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
           at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
           at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
           at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
           at org.hibernate.loader.Loader.doQuery(Loader.java:673)
           at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
           at org.hibernate.loader.Loader.doList(Loader.java:2220)
           at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
           at org.hibernate.loader.Loader.list(Loader.java:2099)
           at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
           at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
           at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
           at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
           at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
           at org.jbpm.db.TaskMgmtSession.findPooledTaskInstances(TaskMgmtSession.java:121)
           ... 100 more
      Caused by: org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
           at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
           at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
           ... 114 more
      Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.
           at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:387)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
           ... 116 more
      12:06:12,356 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      12:06:12,356 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
      12:06:12,356 ERROR [TaskMgmtSession] org.hibernate.exception.GenericJDBCException: Cannot open connection
      12:06:12,362 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
      12:06:12,362 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
      12:06:12,362 ERROR [TaskMgmtSession] org.hibernate.exception.GenericJDBCException: Cannot open connection
        • 1. Re: pooled actor is not saved in the database
          John Ament Master

          based on the stack trace you posted, it seems likely that you have a problem w/ your database.  is it running? can you connect to it on the same machine using a different client?

          • 2. Re: pooled actor is not saved in the database
            Maximilian Faupel Newbie

            I can connect the database in the hibernate perspective, from the command line and with the sql explorer eclipse plugin. The problem occured when I started with jBPM. I think the configuration is wrong.


            jbpm.cfg.xml


            <jbpm-configuration>
            
              <jbpm-context>
                <service name="persistence">
                   <factory>
                      <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
                         <field name="isTransactionEnabled"><false/></field>
                      </bean>
                   </factory>
                </service>
                <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
                <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
                <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
                <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
                <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
              </jbpm-context>
            
            </jbpm-configuration>




            hibernate.cfg.xml


            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
                                                     "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
            <hibernate-configuration>
             <session-factory name="">
              <property name="show_sql">true</property>
              <property name="connection.datasource">java:/projectnameDatasource</property>
              <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
              <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
              <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
              <property name="hbm2ddl.auto">create-drop</property>
              <!--property name="transaction.flush_before_completion">true</property
             ############################################ 
             # mapping files with external dependencies # 
             ############################################ 
             following mapping file has a dependendy on   
             'bsh-{version}.jar'.                         
             uncomment this if you don't have bsh on your 
             classpath.  you won't be able to use the     
             script element in process definition files   -->
              <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
              <!-- following mapping files have a dependendy on  
             'jbpm-identity.jar', mapping files            
             of the pluggable jbpm identity component.     
             Uncomment the following 3 lines if you        
             want to use the jBPM identity mgmgt           
             component.                                    
             identity mappings (begin) ===
                <mapping resource="org/jbpm/identity/User.hbm.xml"/>
                <mapping resource="org/jbpm/identity/Group.hbm.xml"/>
                <mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
                ==== identity mappings (end) 
             following mapping files have a dependendy on  
             the JCR API                                   
             jcr mappings (begin) ===
                <mapping resource="org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml"/>
                ==== jcr mappings (end) 
             ###################### 
             # jbpm mapping files # 
             ###################### 
             hql queries and type defs -->
              <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml"/>
              <!-- graph.action mapping files -->
              <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
              <!-- graph.def mapping files -->
              <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
              <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
              <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
              <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
              <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
              <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
              <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
              <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
              <!-- graph.node mapping files -->
              <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
              <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
              <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
              <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
              <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
              <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
              <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
              <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
              <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
              <!-- context.def mapping files -->
              <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
              <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
              <!-- taskmgmt.def mapping files -->
              <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
              <!-- module.def mapping files -->
              <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
              <!-- bytes mapping files -->
              <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
              <!-- file.def mapping files -->
              <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
              <!-- scheduler.def mapping files -->
              <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
              <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
              <!-- graph.exe mapping files -->
              <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
              <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
              <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
              <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
              <!-- module.exe mapping files -->
              <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
              <!-- context.exe mapping files -->
              <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
              <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
              <!-- job mapping files -->
              <mapping resource="org/jbpm/job/Job.hbm.xml"/>
              <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
              <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
              <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
              <!-- taskmgmt.exe mapping files -->
              <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
              <!-- logging mapping files -->
              <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
              <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
              <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
              <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
              <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
              <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
              <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
              <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
              <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
              <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
              <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
              <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
              <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
              <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
             </session-factory>
            </hibernate-configuration>



            • 3. Re: pooled actor is not saved in the database
              Ronald van Kuijk Apprentice

              I almost do the same but in an authenticator. Works for me (same jbpm/hibernate config)



              @Name("authenticator")
              public class Authenticator {
                @Logger
                private Log log;
              
                @In
                CustomIdentity identity;
                @In
                Credentials credentials;
                @In(create = true, required = false)
                private Actor actor;
              
                public boolean authenticate() {
              
                   actor.setId(credentials.getUsername());
                   actor.getGroupActorIds().add(CustomIdentity.getOrganisationID(credentials.getUsername()));
              
                   boolean localResult = false;
              
                   if ("admin".equals(credentials.getUsername())) {
                     identity.addRole("admin");
                     localResult = true;
                   }
              
                   if (credentials.getUsername().startsWith("insurer")) {
                     identity.addRole("insurer-role");
                     localResult = true;
                   }
              
                   if (credentials.getUsername().startsWith("repair")) {
                     identity.addRole("repair-role");
                     localResult = true;
                   }
              
                   return localResult;
                }
              
              }
              


              • 4. Re: pooled actor is not saved in the database
                Maximilian Faupel Newbie

                I do not exactly know why, but now it works. Thank you for the confirmation.

                • 5. Re: pooled actor is not saved in the database
                  Maximilian Faupel Newbie
                  It is really strange. Yesterday it worked and today I get a similar exception. Could this be a problem with the mysql connector or server.

                  10:08:47,706 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
                  10:08:47,706 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
                  10:08:47,910 ERROR [STDERR] org.hibernate.exception.GenericJDBCException: Cannot open connection
                       at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
                       at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
                       at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
                       at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
                       at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
                       at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
                       at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
                       at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
                       at org.hibernate.loader.Loader.doQuery(Loader.java:673)
                       at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
                       at org.hibernate.loader.Loader.doList(Loader.java:2220)
                       at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
                       at org.hibernate.loader.Loader.list(Loader.java:2099)
                       at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
                       at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
                       at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
                       at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
                       at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
                       at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
                       at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
                       at org.jbpm.JbpmContext.newProcessInstanceForUpdate(JbpmContext.java:417)
                       at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:121)
                       at org.jboss.seam.bpm.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:106)
                       at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.domain.bank.session.AntragErfassen_$$_javassist_2.erstelleKreditantrag(AntragErfassen_$$_javassist_2.java)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:585)
                       at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
                       at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
                       at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                       at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                       at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                       at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                       at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                       at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                       at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                       at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Thread.java:595)
                  Caused by: org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
                       at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
                       at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
                       at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
                       ... 83 more
                  Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:387)
                       at org
                  10:08:47,910 ERROR [STDERR] .jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
                       at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
                       ... 85 more
                  10:08:47,911 ERROR [GraphSession] org.hibernate.exception.GenericJDBCException: Cannot open connection
                  10:08:47,911 FATAL [application] org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                  javax.faces.el.EvaluationException: org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
                       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                       at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                       at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                       at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                       at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Thread.java:595)
                  Caused by: org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                       at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:170)
                       at org.jbpm.JbpmContext.newProcessInstanceForUpdate(JbpmContext.java:417)
                       at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:121)
                       at org.jboss.seam.bpm.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:106)
                       at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.domain.bank.session.AntragErfassen_$$_javassist_2.erstelleKreditantrag(AntragErfassen_$$_javassist_2.java)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:585)
                       at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
                       at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
                       at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                       at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                       at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                       at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                       ... 46 more
                  Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
                       at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
                       at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
                       at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
                       at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
                       at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
                       at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
                       at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
                       at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
                       at org.hibernate.loader.Loader.doQuery(Loader.java:673)
                       at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
                       at org.hibernate.loader.Loader.doList(Loader.java:2220)
                       at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
                       at org.hibernate.loader.Loader.list(Loader.java:2099)
                       at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
                       at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
                       at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
                       at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
                       at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
                       at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
                       at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
                       ... 68 more
                  Caused by: org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
                       at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
                       at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
                       at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
                       ... 83 more
                  Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:387)
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
                       at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
                       ... 85 more
                  10:08:47,914 WARN  [lifecycle] #{antragErfassen.erstelleKreditantrag}: org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                  javax.faces.FacesException: #{antragErfassen.erstelleKreditantrag}: org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
                       at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                       at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                       at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                       at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                       at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Thread.java:595)
                  Caused by: javax.faces.el.EvaluationException: org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
                       at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                       ... 45 more
                  Caused by: org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                       at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:170)
                       at org.jbpm.JbpmContext.newProcessInstanceForUpdate(JbpmContext.java:417)
                       at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:121)
                       at org.jboss.seam.bpm.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:106)
                       at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.domain.bank.session.AntragErfassen_$$_javassist_2.erstelleKreditantrag(AntragErfassen_$$_javassist_2.java)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                       at java.lang.reflect.Method.invoke(Method.java:585)
                       at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
                       at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
                       at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                       at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                       at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                       at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                       at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                       ... 46 more
                  Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
                       at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
                       at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
                       at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
                       at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
                       at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
                       at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
                       at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
                       at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
                       at org.hibernate.loader.Loader.doQuery(Loader.java:673)
                       at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
                       at org.hibernate.loader.Loader.doList(Loader.java:2220)
                       at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
                       at org.hibernate.loader.Loader.list(Loader.java:2099)
                       at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
                       at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
                       at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
                       at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
                       at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
                       at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
                       at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
                       ... 68 more
                  Caused by: org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
                       at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
                       at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
                       at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
                       ... 83 more
                  Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:387)
                       at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
                       at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
                       ... 85 more
                  • 6. Re: pooled actor is not saved in the database
                    Maximilian Faupel Newbie

                    The exception occurs when I invoke the create process method.

                    • 7. Re: pooled actor is not saved in the database
                      Maximilian Faupel Newbie
                      It is the same exception with PostgreSQL.


                      14:46:13,110 INFO  [STDOUT] Hibernate:
                          select
                              nextval ('hibernate_sequence')
                      14:46:13,113 INFO  [STDOUT] Hibernate:
                          select
                              nextval ('hibernate_sequence')
                      14:46:13,121 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
                      14:46:13,121 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
                      14:46:13,326 ERROR [STDERR] org.hibernate.exception.GenericJDBCException: Cannot open connection
                           at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
                           at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
                           at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
                           at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
                           at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
                           at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
                           at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
                           at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
                           at org.hibernate.loader.Loader.doQuery(Loader.java:673)
                           at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
                           at org.hibernate.loader.Loader.doList(Loader.java:2220)
                           at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
                           at org.hibernate.loader.Loader.list(Loader.java:2099)
                           at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
                           at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
                           at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
                           at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
                           at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
                           at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
                           at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
                           at org.jbpm.JbpmContext.newProcessInstanceForUpdate(JbpmContext.java:417)
                           at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:121)
                           at org.jboss.seam.bpm.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:106)
                           at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                           at org.domain.bank.session.AntragErfassen_$$_javassist_2.erstelleKreditantrag(AntragErfassen_$$_javassist_2.java)
                           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:585)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
                           at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                           at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                           at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                           at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                           at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                           at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                           at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                           at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                           at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                           at java.lang.Thread.run(Thread.java:595)
                      Caused by: org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
                           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
                           at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
                           at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
                           ... 83 more
                      Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.
                           at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:387)
                           at org
                      14:46:13,326 ERROR [STDERR] .jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
                           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
                           ... 85 more
                      14:46:13,326 ERROR [GraphSession] org.hibernate.exception.GenericJDBCException: Cannot open connection
                      14:46:13,327 FATAL [application] org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                      javax.faces.el.EvaluationException: org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
                           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                           at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                           at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                           at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                           at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                           at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                           at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                           at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                           at java.lang.Thread.run(Thread.java:595)
                      Caused by: org.jbpm.JbpmException: couldn't find process definition 'kreditantrag'
                           at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:170)
                           at org.jbpm.JbpmContext.newProcessInstanceForUpdate(JbpmContext.java:417)
                           at org.jboss.seam.bpm.BusinessProcess.createProcess(BusinessProcess.java:121)
                           at org.jboss.seam.bpm.BusinessProcessInterceptor.afterInvocation(BusinessProcessInterceptor.java:106)
                           at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                           at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                           at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                           at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                           at org.domain.bank.session.AntragErfassen_$$_javassist_2.erstelleKreditantrag(AntragErfassen_$$_javassist_2.java)
                           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                           at java.lang.reflect.Method.invoke(Method.java:585)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329)
                           at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342)
                           at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                           at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                           at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                           at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                           ... 46 more
                      Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
                           at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
                           at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
                           at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
                           at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
                           at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
                           at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
                           at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
                           at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
                           at org.hibernate.loader.Loader.doQuery(Loader.java:673)
                           at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
                           at org.hibernate.loader.Loader.doList(Loader.java:2220)
                           at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
                           at org.hibernate.loader.Loader.list(Loader.java:2099)
                           at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
                           at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
                           at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
                           at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
                           at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
                           at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
                           at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
                           ... 68 more
                      • 8. Re: pooled actor is not saved in the database
                        Maximilian Faupel Newbie

                        I solved the problem. The java runtime environment was damaged.

                        • 9. Re: pooled actor is not saved in the database
                          Maximilian Faupel Newbie

                          The problem is not the runtime environment. It is the hot deployment of the jboss tools. Does anyone know something about it.