[jboss-user] [jBPM] - Re: Does JBPM 5.1 works with Websphare6.1

sandeep kumar do-not-reply at jboss.com
Wed Nov 23 06:25:19 EST 2011


sandeep kumar [http://community.jboss.org/people/sandeep_jbpm5] created the discussion

"Re: Does JBPM 5.1 works with Websphare6.1"

To view the discussion, visit: http://community.jboss.org/message/637911#637911

--------------------------------------------------------------
Hi Tihomir
     Thanks for your reply. I debug the issue and found that the problem is due to creation of ksession using JPA. When I run the same code in J2SE environment by using Bitronix transaction manager, it works well. But when i ship it to Websphare using websphare transaction manager I am getting this exceptin.
 These my codes
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add(ResourceFactory.newClassPathResource("rvb-process.bpmn"), ResourceType.BPMN2);
 KnowledgeBase kbase = kbuilder.newKnowledgeBase(); EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.jbpm.persistence.jpa" );
 Environment env = KnowledgeBaseFactory.newEnvironment();
 env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );

 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");
 TransactionManager tm =
 new WebSphereTransactionManagerLookup().getTransactionManager(properties);
 env.set( EnvironmentName.TRANSACTION_MANAGER, tm );
 KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
 JPAKnowledgeService.newStatefulKnowledgeSession(kbase, config, env)

-------
persistence.xml file
persistence-unit name="org.jbpm.persistence.jpa"
 transaction-type="JTA">
 <provider>org.hibernate.ejb.HibernatePersistence</provider>
 <jta-data-source>java:comp/env/jdbc/sandeep</jta-data-source>

 <!--<non-jta-data-source>java:comp/env/jdbc/sandeep1</non-jta-data-source>
 --><mapping-file>META-INF/jpa-orm.xml</mapping-file>
 <class>org.drools.persistence.info.SessionInfo</class>
 <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
 <class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>
 <class>org.drools.persistence.info.WorkItemInfo</class>
 <class>org.jbpm.process.audit.ProcessInstanceLog</class>
 <class>org.jbpm.process.audit.VariableInstanceLog</class>
 <!--<class>org.jbpm.process.audit.NodeInstanceLog</class>      -->
 <properties>
 <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect" />
 <property name="hibernate.connection.autocommit" value="false" />
 <property name="hibernate.max_fetch_depth" value="3" />
 <property name="hibernate.hbm2ddl.auto" value="create" />
 <property name="hibernate.show_sql" value="true" />
 <property name="hibernate.transaction.manager_lookup_class"
 value="org.hibernate.transaction.WebSphereTransactionManagerLookup" />


 <!--<property name="hibernate.transaction.manager_lookup_class"
 value="org.hibernate.transaction.JBossTransactionManagerLookup" />
 --><!--<property name="hibernate.transaction.manager_lookup_class"
 value="org.hibernate.transaction.BTMTransactionManagerLookup"/>

                --></properties>
 </persistence-unit>

-------------------------
Exception 
com.ibm.ws.ffdc.IncidentStreamImpl open FFDC0009I: FFDC opened incident stream file C:\Program Files\IBM\WebSphere\AppServer1\profiles\AppSrv02\logs\ffdc\server1_00000016_11.11.23_05.59.20_0.txt
[11/23/11 5:59:20:572 EST] 00000016 ServiceLogger I com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC closed incident stream file C:\Program Files\IBM\WebSphere\AppServer1\profiles\AppSrv02\logs\ffdc\server1_00000016_11.11.23_05.59.20_0.txt
[11/23/11 5:59:20:572 EST] 00000016 ServletWrappe E   SRVE0100E: Did not realize  init() exception thrown by servlet TaskProcessServlet: java.lang.RuntimeException: error while creating session
    at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:52)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:191)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:326)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1143)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:159)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:790)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:470)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:307)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:334)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1302)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:951)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2129)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:130)
    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)
    at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
    at com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:279)
    at com.sample.processserver.JbpmAPIUtil.getSession(JbpmAPIUtil.java:245)
    at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:38)
    ... 24 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)
    ... 29 more
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; incompatible with [Ljava.util.Map$Entry;
    at org.drools.marshalling.impl.OutputMarshaller.writePropagationContexts(OutputMarshaller.java:716)
    at org.drools.marshalling.impl.OutputMarshaller.writeFactHandles(OutputMarshaller.java:280)
    at org.drools.marshalling.impl.OutputMarshaller.writeSession(OutputMarshaller.java:107)
    at org.drools.marshalling.impl.DefaultMarshaller.marshall(DefaultMarshaller.java:136)
    at org.drools.persistence.SessionMarshallingHelper.getSnapshot(SessionMarshallingHelper.java:72)
    at org.drools.persistence.info.SessionInfo.update(SessionInfo.java:81)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at org.hibernate.ejb.event.BeanCallback.invoke(BeanCallback.java:23)
    at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:80)
    at org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:49)
    at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:48)
    at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)
    at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:645)
    at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:619)
    at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:623)
    at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)
    at org.drools.persistence.jpa.JpaPersistenceContext.persist(JpaPersistenceContext.java:17)
    at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:125)
    ... 34 more

[11/23/11 5:59:20:587 EST] 00000016 ServletWrappe E   Deregister the mbean because of uncaught init() exception thrown by servlet TaskProcessServlet: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception thrown by servlet
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:243)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:326)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1143)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:159)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:790)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:470)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:307)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:334)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1302)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:951)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2129)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
---- Begin backtrace for Nested Throwables
java.lang.RuntimeException: error while creating session
    at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:52)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:191)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:326)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1143)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:159)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:790)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:470)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:307)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:334)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1302)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:951)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2129)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:130)
    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)
    at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
    at com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:279)
    at com.sample.processserver.JbpmAPIUtil.getSession(JbpmAPIUtil.java:245)
    at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:38)
    ... 24 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)
    ... 29 more
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; incompatible with [Ljava.util.Map$Entry;
    at org.drools.marshalling.impl.OutputMarshaller.writePropagationContexts(OutputMarshaller.java:716)
    at org.drools.marshalling.impl.OutputMarshaller.writeFactHandles(OutputMarshaller.java:280)
    at org.drools.marshalling.impl.OutputMarshaller.writeSession(OutputMarshaller.java:107)
    at org.drools.marshalling.impl.DefaultMarshaller.marshall(DefaultMarshaller.java:136)
    at org.drools.persistence.SessionMarshallingHelper.getSnapshot(SessionMarshallingHelper.java:72)
    at org.drools.persistence.info.SessionInfo.update(SessionInfo.java:81)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at org.hibernate.ejb.event.BeanCallback.invoke(BeanCallback.java:23)
    at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:80)
    at org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:49)
    at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:48)
    at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)
    at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:645)
    at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:619)
    at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:623)
    at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)
    at org.drools.persistence.jpa.JpaPersistenceContext.persist(JpaPersistenceContext.java:17)
    at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:125)
    ... 34 more
, 
[11/23/11 5:59:20:587 EST] 00000016 WebExtensionP E   Error occured while preparing the servlet for initialization. 
javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception thrown by servlet
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:243)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:326)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1143)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:159)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:790)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:470)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:307)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:334)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1302)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:951)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2129)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
---- Begin backtrace for Nested Throwables
java.lang.RuntimeException: error while creating session
    at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:52)
    at javax.servlet.GenericServlet.init(GenericServlet.java:256)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:191)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:326)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1143)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:159)
    at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
    at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:790)
    at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:470)
    at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:307)
    at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:334)
    at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
    at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
    at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:395)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:611)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1302)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1165)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:587)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:832)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:951)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2129)
    at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException
    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:130)
    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)
    at org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:122)
    at com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:279)
    at com.sample.processserver.JbpmAPIUtil.getSession(JbpmAPIUtil.java:245)
    at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:38)
    ... 24 more
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
    at org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)
    ... 29 more
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; incompatible with [Ljava.util.Map$Entry;
    at org.drools.marshalling.impl.OutputMarshaller.writePropagationContexts(OutputMarshaller.java:716)
    at org.drools.marshalling.impl.OutputMarshaller.writeFactHandles(OutputMarshaller.java:280)
    at org.drools.marshalling.impl.OutputMarshaller.writeSession(OutputMarshaller.java:107)
    at org.drools.marshalling.impl.DefaultMarshaller.marshall(DefaultMarshaller.java:136)
    at org.drools.persistence.SessionMarshallingHelper.getSnapshot(SessionMarshallingHelper.java:72)
    at org.drools.persistence.info.SessionInfo.update(SessionInfo.java:81)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at org.hibernate.ejb.event.BeanCallback.invoke(BeanCallback.java:23)
    at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:80)
    at org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:49)
    at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:48)
    at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:154)
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:110)
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:61)
    at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:645)
    at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:619)
    at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:623)
    at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)
    at org.drools.persistence.jpa.JpaPersistenceContext.persist(JpaPersistenceContext.java:17)
    at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:125)
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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/20111123/86755cb5/attachment-0001.html 


More information about the jboss-user mailing list