javax.transaction.InvalidTransactionException: Transaction could not begin: Invalid value -1 passed to setTransactionTimeout(int)

Oracle Community | Sandeep Pachauri | 1 year ago
  1. 0

    Oracle SOA server11g start issue,Invalid value -1 passed to setTransactionTimeout

    Oracle Community | 1 year ago | Sandeep Pachauri
    javax.transaction.InvalidTransactionException: Transaction could not begin: Invalid value -1 passed to setTransactionTimeout(int)
  2. 0

    WebLogic 10:Rollbck of a mixed XA transaction fails the next one

    Oracle Community | 7 years ago | 405309
    javax.transaction.InvalidTransactionException: Transaction could not begin: Attempt to start an XA Transaction inside a Resource Adapter's Local Transaction is illegal.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Transaction resume exception on return from POJO wrapped with Spring's TransactionProxyFactoryBean with REQUIRES_NEW transaction attribute when original transaction marked for rollback. See sources attached. Here is the stack trace for execution of the TxTestImpl session bean. ------------- doSomething() begin rollback=false increment() <Aug 9, 2004 5:52:02 PM EDT> <Info> <EJB> <010051> <EJB Exception during invocation from home: com.cibcwm.go.otis.dasl.jobs.TxTestImpl_9zujx_LocalHomeImpl@251ce0 threw exception: org.springframework.transaction.IllegalTransactionStateException: Tried to resume invalid JTA transaction; nested exception is javax.transaction.InvalidTransactionException: Attempt to resume an inactive transaction: Name=[EJB com.cibcwm.go.otis.dasl.jobs.TxTestImpl.doSomething()],Xid=2:4988f8027f28edb9(8181620),Status=Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,SCInfo[mydomain+myserver]=(state=active),properties=({weblogic.transaction.name=[EJB com.cibcwm.go.otis.dasl.jobs.TxTestImpl.doSomething()]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+167.26.107.208:7001+mydomain+t3+, Resources={})],CoordinatorURL=myserver+167.26.107.208:7001+mydomain+t3+) org.springframework.transaction.IllegalTransactionStateException: Tried to resume invalid JTA transaction; nested exception is javax.transaction.InvalidTransactionException: Attempt to resume an inactive transaction: Name=[EJB com.cibcwm.go.otis.dasl.jobs.TxTestImpl.doSomething()],Xid=2:4988f8027f28edb9(8181620),Status=Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,SCInfo[mydomain+myserver]=(state=active),properties=({weblogic.transaction.name=[EJB com.cibcwm.go.otis.dasl.jobs.TxTestImpl.doSomething()]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+167.26.107.208:7001+mydomain+t3+, Resources={})],CoordinatorURL=myserver+167.26.107.208:7001+mydomain+t3+) javax.transaction.InvalidTransactionException: Attempt to resume an inactive transaction: Name=[EJB com.cibcwm.go.otis.dasl.jobs.TxTestImpl.doSomething()],Xid=2:4988f8027f28edb9(8181620),Status=Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,SCInfo[mydomain+myserver]=(state=active),properties=({weblogic.transaction.name=[EJB com.cibcwm.go.otis.dasl.jobs.TxTestImpl.doSomething()]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+167.26.107.208:7001+mydomain+t3+, Resources={})],CoordinatorURL=myserver+167.26.107.208:7001+mydomain+t3+) at weblogic.transaction.internal.TransactionManagerImpl.resume(TransactionManagerImpl.java:357) at weblogic.transaction.internal.ServerTransactionManagerImpl.resume(ServerTransactionManagerImpl.java:305) at weblogic.transaction.internal.TransactionManagerImpl.resume(TransactionManagerImpl.java:341) at org.springframework.transaction.jta.JtaTransactionManager.doResume(JtaTransactionManager.java:352) at org.springframework.transaction.support.AbstractPlatformTransactionManager.resume(AbstractPlatformTransactionManager.java:285) at org.springframework.transaction.support.AbstractPlatformTransactionManager.cleanupAfterCompletion(AbstractPlatformTransactionManager.java:516) at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:351) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:189) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:148) at $Proxy116.increment(Unknown Source) at com.cibcwm.go.otis.dasl.jobs.TxTestImpl.doSomething(TxTestImpl.java:79) at com.cibcwm.go.otis.dasl.jobs.TxTestImpl_9zujx_ELOImpl.doSomething(TxTestImpl_9zujx_ELOImpl.java:45) at com.cibcwm.go.otis.dasl.jobs.TxTestImplTest.testDoSomething(TxTestImplTest.java:20) at java.lang.reflect.Method.invoke(Native Method) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:295) at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) at org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:156) at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:130) at org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:158) at org.apache.cactus.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:138) at org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:158) at org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:109) at org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:158) at org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:20) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5451) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2591) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:215) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:191) >

    Spring JIRA | 1 decade ago | Eugene Kuleshov
    javax.transaction.InvalidTransactionException: Attempt to resume an inactive transaction: Name=[EJB com.cibcwm.go.otis.dasl.jobs.TxTestImpl.doSomething()],Xid=2:4988f8027f28edb9(8181620),Status=Marked rollback. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=60,SCInfo[mydomain+myserver]=(state=active),properties=({weblogic.transaction.name=[EJB com.cibcwm.go.otis.dasl.jobs.TxTestImpl.doSomething()]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=myserver+167.26.107.208:7001+mydomain+t3+, Resources={})],CoordinatorURL=myserver+167.26.107.208:7001+mydomain+t3+)
  5. 0

    CMT cause locks in the database

    Oracle Community | 1 decade ago | 3004
    javax.transaction.InvalidTransactionException: Attempt to resume an inactive transaction: 49:df0ad1997f28edb9

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.transaction.InvalidTransactionException

      Transaction could not begin: Invalid value -1 passed to setTransactionTimeout(int)

      at weblogic.ejb.container.internal.MethodDescriptor.startTransaction()
    2. weblogic.ejb.container
      MethodDescriptor.getInvokeTxForCom
      1. weblogic.ejb.container.internal.MethodDescriptor.startTransaction(MethodDescriptor.java:306)
      2. weblogic.ejb.container.internal.MethodDescriptor.getInvokeTx(MethodDescriptor.java:422)
      3. weblogic.ejb.container.internal.MethodDescriptor.getInvokeTxForCom(MethodDescriptor.java:468)
      3 frames