0 Replies Latest reply on Dec 20, 2006 2:19 PM by Quande Ren

    could not determine transaction status

    Quande Ren Newbie

      I use JBossAS4.0.5 + JBossTS4.2.2, I have an EJB that will throw an exception on certain conditions, the transaction get rollback as expected, but the console output some information that I don't understand, the error is followed. the first exception is caused by my code, but I do not understand the second and third exception. (could not determine transaction status and Unable to mark for rollback on PersistenceException

      Any expert can help about this?

      14:08:55,468 INFO [STDOUT] findAll begin
      14:08:55,468 INFO [STDOUT] Hibernate: select addressinf0_.id as id0_, addressinf0_.name as name0_ from address_info addressinf0_
      14:08:55,515 INFO [STDOUT] Hibernate: select hibernate_sequence.nextval from dual
      14:08:55,515 ERROR [STDERR] javax.ejb.EJBException: name(nameToInsertIsTooLongForDB!---------------------) is longer than 10 characters
      14:08:55,515 ERROR [STDERR] at jtstest.ProcessorSessionHelper.insertRecord(ProcessorSessionHelper.java:55)
      14:08:55,515 ERROR [STDERR] at jtstest.ProcessorSessionHelper.createAddressInfo(ProcessorSessionHelper.java:30)
      14:08:55,515 ERROR [STDERR] at jtstest.ProcessorSessionImplA.createAddressInfo(ProcessorSessionImplA.java:21)
      14:08:55,515 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
      14:08:55,515 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:08:55,515 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:08:55,515 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
      14:08:55,515 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      14:08:55,531 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      14:08:55,531 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      14:08:55,531 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      14:08:55,546 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      14:08:55,546 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
      14:08:55,562 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      14:08:55,562 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
      14:08:55,562 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
      14:08:55,562 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      14:08:55,578 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
      14:08:55,578 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      14:08:55,578 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      14:08:55,593 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      14:08:55,593 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
      14:08:55,593 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
      14:08:55,609 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      14:08:55,609 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
      14:08:55,609 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      14:08:55,609 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
      14:08:55,625 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      14:08:55,625 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263)
      14:08:55,625 ERROR [STDERR] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
      14:08:55,656 ERROR [STDERR] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
      14:08:55,656 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
      14:08:55,656 ERROR [STDERR] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
      14:08:55,656 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
      14:08:55,671 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
      14:08:55,671 ERROR [STDERR] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
      14:08:55,671 WARN [loggerI18N] [com.arjuna.ats.internal.jts.orbspecific.interposition.resources.arjuna.generror] Server
      TopLevelAction.registerResource caught exception: org.omg.CORBA.TRANSACTION_ROLLEDBACK: Server-side Exception: vmcid: 0xc000 minor code: 851 completed: No
      14:08:55,687 WARN [loggerI18N] [com.arjuna.ats.internal.jts.orbspecific.interposition.resources.arjuna.ipfailed] Server TopLevelAction - could not register interposed hierarchy!
      14:08:55,687 WARN [loggerI18N] [com.arjuna.ats.internal.jts.interposition.resources.arjuna.ipfail] Interposition.remove
      Heirarchy - could not find a3c3782:4ad:45898436:9836 to remove.
      14:08:55,703 WARN [loggerI18N] [com.arjuna.ats.internal.jts.context.genfail] ContextManager.createHierarchy caught exce
      ption: org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x0 minor code: 0 completed: No
      14:08:55,703 ERROR [AbstractEntityManagerImpl] could not determine transaction status
      javax.transaction.SystemException
       at com.arjuna.ats.internal.jta.transaction.jts.TransactionManagerImple.getTransaction(TransactionManagerImple.java:82)
       at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.getTransaction(BaseTransactionManagerDelegate.java:107)
       at org.hibernate.transaction.CMTTransaction.getTransaction(CMTTransaction.java:91)
       at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:489)
       at com.arjuna.ats.internal.jta.resources.jts.orbspecific.SynchronizationImple.before_completion(SynchronizationImple.java:128)
       at org.omg.CosTransactions.SynchronizationPOA._invoke(SynchronizationPOA.java:42)
       at org.jacorb.poa.RequestProcessor.invokeOperation(RequestProcessor.java:299)
       at org.jacorb.poa.RequestProcessor.process(RequestProcessor.java:593)
       at org.jacorb.poa.RequestProcessor.run(RequestProcessor.java:735)
      14:08:55,750 WARN [loggerI18N] [com.arjuna.ats.internal.jts.orbspecific.interposition.resources.arjuna.generror] Server
      TopLevelAction.registerResource caught exception: org.omg.CORBA.TRANSACTION_ROLLEDBACK: Server-side Exception: vmcid:
      0xc000 minor code: 851 completed: No
      14:08:55,765 WARN [loggerI18N] [com.arjuna.ats.internal.jts.orbspecific.interposition.resources.arjuna.ipfailed] Server
      TopLevelAction - could not register interposed hierarchy!
      14:08:55,781 WARN [loggerI18N] [com.arjuna.ats.internal.jts.interposition.resources.arjuna.ipfail] Interposition.remove
      Heirarchy - could not find a3c3782:4ad:45898436:9836 to remove.
      14:08:55,781 WARN [loggerI18N] [com.arjuna.ats.internal.jts.context.genfail] ContextManager.createHierarchy caught exce
      ption: org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x0 minor code: 0 completed: No
      14:08:55,796 ERROR [AbstractEntityManagerImpl] Unable to mark for rollback on PersistenceException:
      org.omg.CORBA.TRANSACTION_ROLLEDBACK: vmcid: 0x0 minor code: 0 completed: No
       at com.arjuna.ats.internal.jts.interposition.resources.arjuna.Interposition.createHierarchy(Interposition.java:186)
       at com.arjuna.ats.internal.jts.interposition.resources.arjuna.Interposition.setupHierarchy(Interposition.java:115)
       at com.arjuna.ats.internal.jts.interposition.resources.arjuna.Interposition.create(Interposition.java:74)
       at com.arjuna.ats.internal.jts.interposition.resources.arjuna.InterpositionCreator.recreateLocal(InterpositionCreator.java:48)
       at com.arjuna.ats.internal.jts.interposition.FactoryElement.recreateLocal(FactoryList.java:72)
       at com.arjuna.ats.internal.jts.interposition.FactoryList.recreateLocal(FactoryList.java:119)
       at com.arjuna.ats.internal.jts.orbspecific.TransactionFactoryImple.recreateLocal(TransactionFactoryImple.java:246)
       at com.arjuna.ats.internal.jts.context.ContextManager.createHierarchy(ContextManager.java:793)
       at com.arjuna.ats.internal.jts.context.ContextManager.currentPIContext(ContextManager.java:684)
       at com.arjuna.ats.internal.jts.context.ContextManager.current(ContextManager.java:212)
       at com.arjuna.ats.internal.jts.context.ContextManager.associate(ContextManager.java:365)
       at com.arjuna.ats.internal.jts.OTSImpleManager.current(OTSImpleManager.java:91)
       at com.arjuna.ats.internal.jta.transaction.jts.TransactionImple.getTransaction(TransactionImple.java:1135)
       at com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction.setRollbackOnly(BaseTransaction.java:210)
       at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.setRollbackOnly(BaseTransactionManagerDelegate.java:135)
       at org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:432)
       at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:587)
       at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:501)
       at com.arjuna.ats.internal.jta.resources.jts.orbspecific.SynchronizationImple.before_completion(SynchronizationImple.java:128)
       at org.omg.CosTransactions.SynchronizationPOA._invoke(SynchronizationPOA.java:42)
       at org.jacorb.poa.RequestProcessor.invokeOperation(RequestProcessor.java:299)
       at org.jacorb.poa.RequestProcessor.process(RequestProcessor.java:593)
       at org.jacorb.poa.RequestProcessor.run(RequestProcessor.java:735)
      14:08:55,921 WARN [loggerI18N] [com.arjuna.ats.internal.jts.orbspecific.coordinator.generror] ArjunaTransactionImple.do
      BeforeCompletion caught exception: org.omg.CORBA.UNKNOWN: Server-side Exception: vmcid: 0x0 minor code: 0 completed: No
      14:08:55,937 INFO [STDOUT] findAll begin
      14:08:55,937 INFO [STDOUT] Hibernate: select addressinf0_.id as id0_, addressinf0_.name as name0_ from address_info add
      ressinf0_