<meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class=WordSection1><p class=MsoNormal><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Thanks!<o:p></o:p></span></p><p class=MsoNormal><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Can you elaborate the solution?<o:p></o:p></span></p><p class=MsoNormal><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class=MsoNormal><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Esteban [via Drools - Java Rules Engine] [mailto:<a href="/user/SendEmail.jtp?type=node&node=2602869&i=0" target="_top" rel="nofollow">[hidden email]</a>] <br><b>Sent:</b> Tuesday, March 01, 2011 2:37 PM<br><b>To:</b> Odelya Holiday<br><b>Subject:</b> Re: Caused by: java.lang.NullPointerException at org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:181)<o:p></o:p></span></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Unfortunately there is a &quot;bug&quot; (it is not really a bug but an omission in the code) that hides the real exception going on. The piece of code giving you troubles is (SingleSessionCommandService.java lines 119 - 138):<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><div><p class=MsoNormal>&nbsp; &nbsp; <i><span style="font-family:&quot;Courier New&quot;">try {</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.txm.begin();</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp;</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //this.appScopedEntityManager.joinTransaction();</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; registerRollbackSync();</span></i><o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; jpm.getApplicationScopedPersistenceContext().persist( this.sessionInfo );</span></i><o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.txm.commit();</span></i><o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; } catch ( Exception <b>t1</b> ) {</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <b>this.txm.rollback();</b></span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch ( Throwable t2 ) {</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<b> throw new RuntimeException( &quot;Could not commit session or rollback&quot;,</b></span></i><o:p></o:p></p></div><div><p class=MsoNormal><b><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t2 );</span></i></b><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; throw new RuntimeException( &quot;Could not commit session&quot;,</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t1 );</span></i><o:p></o:p></p></div><div><p class=MsoNormal><i><span style="font-family:&quot;Courier New&quot;">&nbsp; &nbsp; &nbsp; &nbsp; }</span></i><o:p></o:p></p></div></div><div><p class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>As you can see, when there is a problem in the body of the try-catch, drools tries to rollback the session. If the rollback itself fails, you get the exception &quot;Could not commit session or rollback&quot;, but the original exception (t1) is lost.<o:p></o:p></p></div><div><p class=MsoNormal>We already fixed a similar issue in&nbsp;SingleSessionCommandService#execute() and created a&nbsp;rollbackTransaction() method that logs the first exception if the session rollback fails.&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>So, the solution&nbsp;(not a solution but a hack to see what is really going on)&nbsp;is to use the same&nbsp;rollbackTransaction() method in the catch part. If you want to see the real exception, you will need to download drools-persistence-jpa sources from&nbsp;<a href="https://github.com/droolsjbpm/drools/tree/master/drools-persistence-jpa" target="_blank" rel="nofollow" link="external">https://github.com/droolsjbpm/drools/tree/master/drools-persistence-jpa</a>&nbsp;and debug through the lines I mentioned. Or you can wait us to patch the code ;)<o:p></o:p></p></div><div><p class=MsoNormal>For the records, this is the bug&nbsp;previously&nbsp;reported:&nbsp;<a href="https://issues.jboss.org/browse/JBRULES-2656" target="_blank" rel="nofollow" link="external">https://issues.jboss.org/browse/JBRULES-2656</a>.&nbsp;I will create a new one and link them together.&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal style="margin-bottom:12.0pt">Best Regards,<br clear=all><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank" rel="nofollow" link="external">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank" rel="nofollow" link="external">http://ilesteban.wordpress.com</a><br><br><o:p></o:p></p><div><p class=MsoNormal>On Tue, Mar 1, 2011 at 7:53 AM, odelyaholiday &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=2602731&amp;i=0&by-user=t" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>Hi!<br><br>I am working already for 3 days, trying to configure bitronix with spring<br>and drools.<br><br>I defined<br><br>1. persistence unit:<br><br>&lt;persistence-unit name=&quot;org.drools.persistence.jpa&quot; transaction-type=&quot;JTA&quot;&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;jta-data-source&gt;jdbc/DS1&lt;/jta-data-source&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;class&gt;org.drools.persistence.info.SessionInfo&lt;/class&gt;<br><br>&lt;class&gt;org.jbpm.persistence.processinstance.ProcessInstanceInfo&lt;/class&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;class&gt;org.drools.persistence.info.WorkItemInfo&lt;/class&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;exclude-unlisted-classes&gt;true&lt;/exclude-unlisted-classes&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;properties&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;hibernate.dialect&quot;<br>value=&quot;org.hibernate.dialect.Oracle10gDialect&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;hibernate.connection.autocommit&quot; value=&quot;false&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;hibernate.max_fetch_depth&quot; value=&quot;3&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;hibernate.show_sql&quot; value=&quot;true&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;hibernate.current_session_context_class&quot; value=&quot;jta&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;hibernate.connection.driver_class&quot;<br>value=&quot;oracle.jdbc.xa.client.OracleXADataSource&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;hibernate.jndi.class&quot;<br>value=&quot;bitronix.tm.jndi.BitronixInitialContextFactory&quot;/&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;hibernate.transaction.manager_lookup_class&quot;<br>value=&quot;org.hibernate.transaction.BTMTransactionManagerLookup&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/properties&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/persistence-unit&gt;<br><br>2. in my application context:<br>&lt;!-- &nbsp;Bitronix Transaction Manager embedded configuration --&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;bean id=&quot;oracleDataSource&quot;<br>class=&quot;bitronix.tm.resource.jdbc.PoolingDataSource&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;init-method=&quot;init&quot; destroy-method=&quot;close&quot;&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;className&quot;<br>value=&quot;oracle.jdbc.xa.client.OracleXADataSource&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;uniqueName&quot; value=&quot;jdbc/DS1&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;maxPoolSize&quot; value=&quot;5&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;allowLocalTransactions&quot; value=&quot;true&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;testQuery&quot; value=&quot;SELECT 1 FROM DUAL&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;driverProperties&quot;&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;props&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;prop key=&quot;user&quot;&gt;myuser&lt;/prop&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;prop key=&quot;password&quot;&gt;myuser&lt;/prop&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;prop key=&quot;URL&quot;&gt;myurl&lt;/prop&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/props&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/property&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/bean&gt;<br><br><br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;bean id=&quot;btmConfig&quot; factory-method=&quot;getConfiguration&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;class=&quot;bitronix.tm.TransactionManagerServices&quot;&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;serverId&quot; value=&quot;spring-btm&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/bean&gt;<br><br><br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;bean id=&quot;BitronixTransactionManager&quot;<br>factory-method=&quot;getTransactionManager&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;class=&quot;bitronix.tm.TransactionManagerServices&quot; depends-on=&quot;btmConfig&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;destroy-method=&quot;shutdown&quot; /&gt;<br><br><br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;bean id=&quot;JtaTransactionManager&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;class=&quot;org.springframework.transaction.jta.JtaTransactionManager&quot;&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;transactionManager&quot; ref=&quot;BitronixTransactionManager&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;property name=&quot;userTransaction&quot; ref=&quot;BitronixTransactionManager&quot; /&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/bean&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp;&lt;!-- end of Bitronix Transaction Manager embedded configuration --&gt;<br><br>3. and in the code:<br>EntityManagerFactory emf =<br>Persistence.createEntityManagerFactory(&quot;org.drools.persistence.jpa&quot;);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Environment env = KnowledgeBaseFactory.newEnvironment();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;env.set(EnvironmentName.TRANSACTION_MANAGER,<br>TransactionManagerServices.getTransactionManager());<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null,<br>env);<br><br>However in the last code I get:<br><br>Caused by: java.lang.IllegalStateException:<br>java.lang.reflect.InvocationTargetException<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:130)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.drools.persistence.jpa.KnowledgeStoreServiceImpl.newStatefulKnowledgeSession(KnowledgeStoreServiceImpl.java:54)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.drools.persistence.jpa.JPAKnowledgeService.newStatefulKnowledgeSession(JPAKnowledgeService.java:109)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>com.mycompany.util.BookWorkflowUtilities.createSession(BookWorkflowUtilities.java:83)<br>&nbsp; &nbsp; &nbsp; &nbsp;at com.mycompany.util.BookWorkflowService.init(BookWorkflowService.java:62)<br>&nbsp; &nbsp; &nbsp; &nbsp;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>&nbsp; &nbsp; &nbsp; &nbsp;at java.lang.reflect.Method.invoke(Method.java:597)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:293)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130)<br>&nbsp; &nbsp; &nbsp; &nbsp;... 29 more<br>Caused by: java.lang.reflect.InvocationTargetException<br>&nbsp; &nbsp; &nbsp; &nbsp;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br>&nbsp; &nbsp; &nbsp; &nbsp;at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.drools.persistence.jpa.KnowledgeStoreServiceImpl.buildCommanService(KnowledgeStoreServiceImpl.java:116)<br>&nbsp; &nbsp; &nbsp; &nbsp;... 40 more<br>Caused by: java.lang.RuntimeException: Could not commit session or rollback<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.drools.persistence.SingleSessionCommandService.&lt;init&gt;(SingleSessionCommandService.java:133)<br>&nbsp; &nbsp; &nbsp; &nbsp;... 45 more<br>Caused by: java.lang.RuntimeException: Unable to rollback transaction<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:184)<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.drools.persistence.SingleSessionCommandService.&lt;init&gt;(SingleSessionCommandService.java:131)<br>&nbsp; &nbsp; &nbsp; &nbsp;... 45 more<br>Caused by: java.lang.NullPointerException<br>&nbsp; &nbsp; &nbsp; &nbsp;at<br>org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:181)<br><span style="color:#888888"><br>--<br>View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Caused-by-java-lang-NullPointerException-at-org-drools-persistence-jta-JtaTransactionManager-rollbac-tp2602190p2602190.html?by-user=t&by-user=t" target="_blank" rel="nofollow" link="external">http://drools-java-rules-engine.46999.n3.nabble.com/Caused-by-java-lang-NullPointerException-at-org-drools-persistence-jta-JtaTransactionManager-rollbac-tp2602190p2602190.html</a><br>Sent from the Drools - User mailing list archive at Nabble.com.<br>_______________________________________________<br>rules-users mailing list<br><a href="/user/SendEmail.jtp?type=node&amp;node=2602731&amp;i=1&by-user=t" target="_top" rel="nofollow" link="external">[hidden email]</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a></span><o:p></o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal style="margin-bottom:12.0pt"><br>_______________________________________________ <br>rules-users mailing list <br><a href="/user/SendEmail.jtp?type=node&amp;node=2602731&amp;i=2&by-user=t" target="_top" rel="nofollow" link="external">[hidden email]</a> <br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_top" rel="nofollow" link="external">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><o:p></o:p></p><div class=MsoNormal align=center style="text-align:center"><hr size=1 width="100%" noshade style="color:#CCCCCC" align=center></div><div><div><p class=MsoNormal><b><span style="font-size:9.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#444444">If you reply to this email, your message will be added to the discussion below:<o:p></o:p></span></b></p></div><p class=MsoNormal><span style="font-size:9.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#444444"><a href="http://drools-java-rules-engine.46999.n3.nabble.com/Caused-by-java-lang-NullPointerException-at-org-drools-persistence-jta-JtaTransactionManager-rollbac-tp2602190p2602731.html?by-user=t" target="_top" rel="nofollow" link="external">http://drools-java-rules-engine.46999.n3.nabble.com/Caused-by-java-lang-NullPointerException-at-org-drools-persistence-jta-JtaTransactionManager-rollbac-tp2602190p2602731.html</a> <o:p></o:p></span></p></div><div style="margin-top:4.8pt"><p class=MsoNormal><span style="font-size:8.5pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:#666666">
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Caused-by-java-lang-NullPointerException-at-org-drools-persistence-jta-JtaTransactionManager-rollbac-tp2602190p2602869.html">RE: Caused by: java.lang.NullPointerException at org.drools.persistence.jta.JtaTransactionManager.rollback(JtaTransactionManager.java:181)</a><br/>
Sent from the <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-User-f47000.html">Drools - User mailing list archive</a> at Nabble.com.<br/>