[jboss-jira] [JBoss JIRA] Reopened: (JBAS-4803) Transaction Manager issue in JBOss Application Server 4.2.1

kavipriya gnanasambandam (JIRA) jira-events at lists.jboss.org
Thu Oct 4 12:37:03 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBAS-4803?page=all ]

kavipriya gnanasambandam reopened JBAS-4803:
--------------------------------------------

             
Yes, jboss 4.2.1 causes org.springframework.transaction.NoTransactionException. 

The integration between Spring and JBOSS does not work properly anymore after upgrading jboss from 4.0.4 to 4.2.1.

In spring I'm using the JTA transaction manager as follows: 

Code: 
<bean id="txManager"
class="org.springframework.transaction.jta.JtaTransactionManager">
        <property name="transactionManagerName" value="java:/TransactionManager"/>
        <property name="userTransactionName" value="UserTransaction"/>
</bean>
 
I have a problem with a org.springframework.transaction.NoTransactionExcep tion when throwing an exception inside a bean that is wrapped with a TransactionProxyFactoryBean.
I'm using JBoss with Arjuna transaction manager When you use the org.springframework.transaction.jta.JtaTransaction Manager (which I'm using), then the Spring declarative transaction management should be integrated perfectly with JTA.This means that Spring does not roll back the transaction, but just marks it for rollback and then the Hibernate should not do anything about it because it is an application exception what I'm throwing from the spring bean (not a Runtime exception). Finally the JTA should rollback the transaction.
This was working on jboss 4.0.4, but is not working anymore on JBoss 4.2.1.


> Transaction Manager issue in JBOss Application Server 4.2.1
> -----------------------------------------------------------
>
>                 Key: JBAS-4803
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4803
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Transaction Manager
>    Affects Versions: JBossAS-4.2.1.GA
>         Environment: JBoss Application Server 4.2.1 with Spring and Hibernate
>            Reporter: kavipriya gnanasambandam
>         Assigned To: Adrian Brock
>            Priority: Critical
>   Original Estimate: 7 weeks
>  Remaining Estimate: 7 weeks
>
> I am running an audited transaction in JBoss Application Server 4.2.1 with Spring and Hibernate.
> I am getting failures in my testcases stating that org.springframework.transaction.NoTransactionException: No active JTA transaction.
> Please find the below log
> org.springframework.transaction.NoTransactionException: No active JTA transaction
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at org.springframework.transaction.jta.JtaTransactionManager.registerAfterCompletionWithExistingTransaction(JtaTransactionManager.java:834)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerAfterCompletion(AbstractPlatformTransactionManager.java:871)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at org.springframework.transaction.support.AbstractPlatformTransactionManager.processRollback(AbstractPlatformTransactionManager.java:774)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at org.springframework.transaction.support.AbstractPlatformTransactionManager.rollback(AbstractPlatformTransactionManager.java:722)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:325)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:111)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at com.taxware.twe.common.storage.StorageNotificationInterceptor.invoke(StorageNotificationInterceptor.java:91)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
> 2007-10-04 11:40:15,309 ERROR [STDERR] 	at $Proxy86.isAborted(Unknown Source)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list