I am getting this exception in production

2 messages Options
Embed this post
Permalink
hari708

I am getting this exception in production

Reply Threaded More More options
Print post
Permalink
Why this exception makes transaction inactive.
 
Caused by: error.authentication.credentials.bad
        at org.jasig.cas.authentication.handler.BadCredentialsAuthenticationException.<clinit>(BadCredentialsAuthenticationException.java:25)
        at com.shc.ecom.sso.cas.web.authentication.AuthenticationManagerImpl.authenticate(AuthenticationManagerImpl.java:124)
        at org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(CentralAuthenticationServiceImpl.java:417)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy82.createTicketGrantingTicket(Unknown Source)
        at com.shc.ecom.sso.cas.web.flow.AuthenticationViaFormAction.submit(AuthenticationViaFormAction.java:128)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        ... 58 more
2009-10-06 10:36:32,582 ERROR [org.hibernate.transaction.JTATransaction] - JTA commit failed
java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
        at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1372)
        at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
        at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
        at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
        at org.hibernate.transaction.JTATransaction.commit(JTATransaction.java:146)
        at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:54)
        at org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:456)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:709)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:678)
        at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy82.createTicketGrantingTicket(Unknown Source)
        at com.shc.ecom.sso.cas.web.flow.AuthenticationViaFormAction.submit(AuthenticationViaFormAction.java:128)
        at sun.reflect.GeneratedMethodAccessor235.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.webflow.util.DispatchMethodInvoker.invoke(DispatchMethodInvoker.java:99)
        at org.springframework.webflow.action.MultiAction.doExecute(MultiAction.java:133)
        at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:192)
-- 
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev
Marvin Addison

Re: I am getting this exception in production

Reply Threaded More More options
Print post
Permalink
> 2009-10-06 10:36:32,582 ERROR [org.hibernate.transaction.JTATransaction] -
> JTA commit failed
> java.lang.IllegalStateException:
> [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive]
> [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The
> transaction is not active!

If I recall correctly, this can occur when the JDBC driver throws an
exception for a database error, e.g. constraint violation, and
subsequently rolls back the database transaction.  Sometimes the
rollback isn't transmitted to the wrapping transaction manager, arjuna
in this case, and when the transaction manager tries to commit or roll
back its consituents, it fails because the underlying DB transaction
has been rolled back, and is therefore not active.  You could help
confirm this by searching the logs for JDBC errors that are previous
to the one you shared; your database logs might also contain helpful
hints to support or refute this theory.

M

--
You are currently subscribed to [hidden email] as: [hidden email]
To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-dev