<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Transaction RollbackException with Activiti/WebSphere/Spring in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/transaction-rollbackexception-with-activiti-websphere-spring/m-p/76534#M50490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Activiti gurus, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attempting to embed Activiti (5.8) into a WebSphere (7.x) application using Spring (3.0.4), but am getting a javax.transaction.RollbackException. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my Spring config: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;tx:annotation-driven /&amp;gt;&lt;BR /&gt;&amp;lt;tx:jta-transaction-manager /&amp;gt;&lt;BR /&gt;&amp;lt;bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"&amp;gt;&lt;BR /&gt; &amp;lt;property name="resourceRef" value="true" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="jndiName" value="jdbc/myDsName" /&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt; &lt;BR /&gt;&amp;lt;bean id="transactionManager"&lt;BR /&gt;class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&amp;gt;&lt;BR /&gt; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt; &lt;BR /&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;BR /&gt; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt; &lt;BR /&gt;&amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&amp;gt;&lt;BR /&gt; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The error happens inside a message driven EJB when RuntimeServiceImpl.startProcessInstanceByKey is called. Here’s the stack trace: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.springframework.transaction.TransactionSystemException: UOWManager transaction processing failed; nested exception is com.ibm.wsspi.uow.UOWException: javax.transaction.RollbackException&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.springframework.transaction.jta.WebSphereUowTransactionManager.execute(WebSphereUowTransactionManager.java:288)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:124)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:41)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.mypackage.Activiti.startProcessInstance(Activiti.java:390)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.mypackage.ActivitiPayments.processEvent(ActivitiPayments.java:18)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.mypackage.BpsmListenerServiceMessageHandler.doHandleMessage(BpsmListenerServiceMessageHandler.java:103)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.mypackage.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:52)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.mypackage.BpsmListenerService.onMessage(BpsmListenerService.java:41)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas how to resolve this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian Westrich&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:bw@mcwest.com" rel="nofollow noopener noreferrer"&gt;bw@mcwest.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Nov 2011 17:07:32 GMT</pubDate>
    <dc:creator>bwestrich</dc:creator>
    <dc:date>2011-11-02T17:07:32Z</dc:date>
    <item>
      <title>Transaction RollbackException with Activiti/WebSphere/Spring</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-rollbackexception-with-activiti-websphere-spring/m-p/76534#M50490</link>
      <description>Hello Activiti gurus, I'm attempting to embed Activiti (5.8) into a WebSphere (7.x) application using Spring (3.0.4), but am getting a javax.transaction.RollbackException. Here's my Spring config: &amp;lt;tx:annotation-driven /&amp;gt;&amp;lt;tx:jta-transaction-manager /&amp;gt;&amp;lt;bean id="dataSource" class="org.s</description>
      <pubDate>Wed, 02 Nov 2011 17:07:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-rollbackexception-with-activiti-websphere-spring/m-p/76534#M50490</guid>
      <dc:creator>bwestrich</dc:creator>
      <dc:date>2011-11-02T17:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction RollbackException with Activiti/WebSphere/Spring</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-rollbackexception-with-activiti-websphere-spring/m-p/76535#M50491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also noticed this on the SystemOut.log……..&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;[11/2/11 12:22:40:974 CDT] 00000026 SystemOut&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O [12:22:40,974 INFO&amp;nbsp; 'WMQJCAResourceAdapter : 0' org.mypackage.ArrivedListener ArrivedListener] arrived fired for process instance 3505&lt;BR /&gt;[11/2/11 12:22:41:209 CDT] 00000026 RegisteredRes E&amp;nbsp;&amp;nbsp; WTRN0063E: An illegal attempt to commit a one phase capable resource with existing two phase capable resources has occurred.[11/2/11 12:22:41:224 CDT] 00000026 RegisteredRes E&amp;nbsp;&amp;nbsp; WTRN0086I: XAException encountered during prepare phase for transaction BPSMEA#bpsm-service-ejb-1.39-SNAPSHOT.jar#BpsmListenerService 00000133654DDA03000000010000001737CC227B4A7BDDB5D2D3D44C9362B668BF7B37E700000133654DDA03000000010000001737CC227B4A7BDDB5D2D3D44C9362B668BF7B37E700000001. Local resources follow.&lt;BR /&gt;[11/2/11 12:22:41:224 CDT] 00000026 JTAResourceBa I&amp;nbsp;&amp;nbsp; WTRN0089I: LocalTransactionWrapper@:16d716d7&amp;nbsp; localTransaction:com.ibm.ws.rsadapter.spi.WSRdbSpiLocalTransactionImpl@53c853c8&amp;nbsp; enlisted:trueHas Tran Rolled Back = false&amp;nbsp; registeredForSynctruemcWrapper.hashcode()371267105: Vote: none.&lt;BR /&gt;[11/2/11 12:22:41:224 CDT] 00000026 JTAResourceBa I&amp;nbsp;&amp;nbsp; WTRN0089I: XATransactionWrapper@ 6730673&amp;nbsp; XAResource: com.ibm.ejs.jms.JMSManagedSession$JMSXAResource@6ec46ec4&amp;nbsp; enlisted: trueHas Tran Rolled Back = false&amp;nbsp; mcWrapper.hashCode()1802660722: Vote: commit.&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 17:28:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-rollbackexception-with-activiti-websphere-spring/m-p/76535#M50491</guid>
      <dc:creator>bwestrich</dc:creator>
      <dc:date>2011-11-02T17:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction RollbackException with Activiti/WebSphere/Spring</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-rollbackexception-with-activiti-websphere-spring/m-p/76536#M50492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is the database you configured a XA resource?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And are you using a XA transaction manager because you need two phase commit?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 18:46:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-rollbackexception-with-activiti-websphere-spring/m-p/76536#M50492</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-11-02T18:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction RollbackException with Activiti/WebSphere/Spring</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-rollbackexception-with-activiti-websphere-spring/m-p/76537#M50493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, the datasource I initially used was an XA resource.&amp;nbsp; We don't need two phase commit, so I just changed the datasource to a non XA resource, and this resolved the issue. Many thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 19:28:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-rollbackexception-with-activiti-websphere-spring/m-p/76537#M50493</guid>
      <dc:creator>bwestrich</dc:creator>
      <dc:date>2011-11-02T19:28:39Z</dc:date>
    </item>
  </channel>
</rss>

