[jboss-user] [jBPM] - InvocationTargetException when starting process

jnorris do-not-reply at jboss.com
Mon Jul 16 16:18:28 EDT 2012


jnorris [https://community.jboss.org/people/jnorris] created the discussion

"InvocationTargetException when starting process"

To view the discussion, visit: https://community.jboss.org/message/748323#748323

--------------------------------------------------------------
The full stack trace for this exception is below.  The kbase is getting wired in by spring in applicationContext.xml.  Due to issues with spring the other objects are being created in code.
jBPM version is 5.3.0, JDK is 1.6, jboss version is 7.0.2.  Persistence is to Oracle 11g.  I stepped through the jbpm code and the highlighted return statement below is where the exception occurs.  The kbase, conf and env are all valid objects.

Help resolving this would be much appreciated! 

Jim

jbpm code that causes the exception:

    private CommandExecutor buildCommandService(KnowledgeBase kbase,
                                              KnowledgeSessionConfiguration conf,
                                              Environment env) {


        Class< ? extends CommandExecutor> serviceClass = getCommandServiceClass();
        try {
            Constructor< ? extends CommandExecutor> constructor = serviceClass.getConstructor( KnowledgeBase.class,
                                                                                              KnowledgeSessionConfiguration.class,
                                                                                              Environment.class );
 *return constructor.newInstance*( kbase,
                                            conf,
                                            env );


Spring wiring in the kbase in applicationContext.xml:

<drools:grid-node id="node1" />
<drools:kbase id="kbase1" node="node1">
          <drools:configuration>
                    <drools:mbeans enabled="true" />
                    <drools:event-processing-mode mode="STREAM" />
                    <drools:assert-behavior mode="EQUALITY" />
          </drools:configuration>
</drools:kbase>

Code used to start the process instance:

@Autowired
public KnowledgeBase kbase1;

public void startProcessInstance( String processDefinitionId, Map<String,Object> valueMap )
{
    try
    { 
        StatefulKnowledgeSession ksession = createKnowledgeSession( kbase1 );

        new JPAWorkingMemoryDbLogger( ksession );
        KnowledgeRuntimeLoggerFactory.newConsoleLogger( ksession );

        String name = "ksclient-" + UUID.randomUUID();
        AsyncHornetQHTWorkItemHandler wsHumanTaskHandler = new AsyncHornetQHTWorkItemHandler( ksession );
        TaskClient client = new TaskClient( new HornetQTaskClientConnector( name,
        new HornetQTaskClientHandler( SystemEventListenerFactory.getSystemEventListener())));
        client.connect( "127.0.0.1", 5446 );
        wsHumanTaskHandler.setPort( 5446 );
        wsHumanTaskHandler.setClient( client );
        ksession.getWorkItemManager().registerWorkItemHandler( "Human Task", wsHumanTaskHandler ); 

        ProcessInstance processInstance = ksession.startProcess( processDefinitionId, valueMap );
    }
    catch ( Exception ex )
    {
        ex.printStackTrace();
    }
    finally
    {
        if( ksession != null )
            ksession.dispose();
    }
}

Code used to create the knowledge session:

private StatefulKnowledgeSession createKnowledgeSession(KnowledgeBase kbase) 
{
    EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.drools.persistence.jpa.local" );
    Environment env = KnowledgeBaseFactory.newEnvironment();
    env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );
    try 
    {
      TransactionManager jbossTXM = (TransactionManager) new InitialContext().lookup("java:jboss/TransactionManager");
      env.set( EnvironmentName.TRANSACTION_MANAGER, jbossTXM);
    } 
    catch ( NamingException e ) 
    {
      logger.error( "ProcessInstanceProviderJbpm.createKnowledgeSession() - Exception!", e );
      e.printStackTrace();
    }

    env.set( EnvironmentName.GLOBALS, new MapGlobalResolver() );

    Properties properties = new Properties();
    properties.put("drools.processInstanceManagerFactory", "org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory");
    properties.put("drools.processSignalManagerFactory", "org.jbpm.persistence.processinstance.JPASignalManagerFactory");
    KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);

    return JPAKnowledgeService.newStatefulKnowledgeSession(kbase, config, env);
}

Full stack trace:
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:143)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:67)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.provider.jbpm.ProcessInstanceProviderJbpm.createKnowledgeSession(ProcessInstanceProviderJbpm.java:249)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.provider.jbpm.ProcessInstanceProviderJbpm.startProcessDefinitionInstance(ProcessInstanceProviderJbpm.java:104)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.BPMServiceImpl.startProcessDefinitionInstance(BPMServiceImpl.java:186)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:61)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.FutureTask.run(FutureTask.java:138)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:205)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)
15:40:14,886 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.Thread.run(Thread.java:662)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) Caused by: java.lang.reflect.InvocationTargetException
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:129)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           ... 44 more
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) Caused by: java.lang.NullPointerException
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.getStatus(JtaStatusHelper.java:72)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.isActive(JtaStatusHelper.java:114)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.engine.transaction.internal.jta.CMTTransaction.join(CMTTransaction.java:149)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1200)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.AbstractEntityManagerImpl.postInit(AbstractEntityManagerImpl.java:171)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.EntityManagerImpl.<init>(EntityManagerImpl.java:90)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:111)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:106)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.JpaPersistenceContextManager.getApplicationScopedPersistenceContext(JpaPersistenceContextManager.java:55)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:144)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           ... 49 more
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) java.lang.NullPointerException
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.provider.jbpm.ProcessInstanceProviderJbpm.startProcessDefinitionInstance(ProcessInstanceProviderJbpm.java:170)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.BPMServiceImpl.startProcessDefinitionInstance(BPMServiceImpl.java:186)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:61)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.FutureTask.run(FutureTask.java:138)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:205)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
15:40:14,902 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
15:40:14,949 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.Thread.run(Thread.java:662)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:143)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:67)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.provider.jbpm.ProcessInstanceProviderJbpm.createKnowledgeSession(ProcessInstanceProviderJbpm.java:249)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.provider.jbpm.ProcessInstanceProviderJbpm.startProcessDefinitionInstance(ProcessInstanceProviderJbpm.java:104)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.BPMServiceImpl.startProcessDefinitionInstance(BPMServiceImpl.java:186)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:61)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.FutureTask.run(FutureTask.java:138)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:205)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
15:44:03,433 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.Thread.run(Thread.java:662)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) Caused by: java.lang.reflect.InvocationTargetException
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommandService(KnowledgeStoreServiceImpl.java:129)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           ... 44 more
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) Caused by: java.lang.NullPointerException
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.getStatus(JtaStatusHelper.java:72)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.isActive(JtaStatusHelper.java:114)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.engine.transaction.internal.jta.CMTTransaction.join(CMTTransaction.java:149)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1200)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.AbstractEntityManagerImpl.postInit(AbstractEntityManagerImpl.java:171)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.EntityManagerImpl.<init>(EntityManagerImpl.java:90)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:111)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:106)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.jpa.JpaPersistenceContextManager.getApplicationScopedPersistenceContext(JpaPersistenceContextManager.java:55)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:144)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           ... 49 more
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1) java.lang.NullPointerException
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.provider.jbpm.ProcessInstanceProviderJbpm.startProcessDefinitionInstance(ProcessInstanceProviderJbpm.java:170)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at com.pb.keystone.bpm.BPMServiceImpl.startProcessDefinitionInstance(BPMServiceImpl.java:186)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:61)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
15:44:03,449 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.util.concurrent.FutureTask.run(FutureTask.java:138)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:208)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:205)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:113)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:107)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
15:44:03,464 ERROR [stderr] (http-localhost-127.0.0.1-8080-1)           at java.lang.Thread.run(Thread.java:662)
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120716/4010be8e/attachment-0001.html 


More information about the jboss-user mailing list