javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: artemis.lib.util.ArtemisException: Wrapped Ex ception: java.sql.SQLException(Error in allocating a connection. Cause: java.lang.IllegalStateException: [b]Wrong XAState: 0[/b]) artemis.lib.util.ArtemisException: Wrapped Exception: java.sql.SQLException(Error in allocating a connection. Cause: java.lang.IllegalStateEx ception: Wrong XAState: 0)

Oracle Community | amardeepsingh | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Wrong xastate error...

    Oracle Community | 8 years ago | amardeepsingh
    javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean; nested exception is: artemis.lib.util.ArtemisException: Wrapped Ex ception: java.sql.SQLException(Error in allocating a connection. Cause: java.lang.IllegalStateException: [b]Wrong XAState: 0[/b]) artemis.lib.util.ArtemisException: Wrapped Exception: java.sql.SQLException(Error in allocating a connection. Cause: java.lang.IllegalStateEx ception: Wrong XAState: 0)

    Root Cause Analysis

    1. javax.ejb.TransactionRolledbackLocalException

      Exception thrown from bean; nested exception is: artemis.lib.util.ArtemisException: Wrapped Ex ception: java.sql.SQLException(Error in allocating a connection. Cause: java.lang.IllegalStateException: [b]Wrong XAState: 0[/b]) artemis.lib.util.ArtemisException: Wrapped Exception: java.sql.SQLException(Error in allocating a connection. Cause: java.lang.IllegalStateEx ception: Wrong XAState: 0)

      at artemis.lib.util.ResourceAllocator.allocateSqlConnection()
    2. artemis.lib.util
      ResourceAllocator.allocateSqlConnection
      1. artemis.lib.util.ResourceAllocator.allocateSqlConnection(ResourceAllocator.java:143)
      1 frame
    3. artemis.lib.ejb
      ArtemisBean.allocateSqlConnection
      1. artemis.lib.ejb.ArtemisBean.allocateSqlConnection(ArtemisBean.java:114)
      1 frame
    4. artemis.ejb.business
      EventNoteBean.insertEventNote
      1. artemis.ejb.business.events.EventNote.EventNoteBean.getNewNoteIdAndTimestampCreated(EventNoteBean.java:210)
      2. artemis.ejb.business.events.EventNote.EventNoteBean.insertEventNote(EventNoteBean.java:146)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor487.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    6. com.sun.enterprise
      EJBSecurityManager.runMethod
      1. com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
      1 frame
    7. Security Core Classes
      SecurityUtil.invoke
      1. com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
      1 frame
    8. Embedded GlassFish Web
      EJBObjectInvocationHandler.invoke
      1. com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
      2. com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
      3. com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
      4. com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:120)
      4 frames
    9. Unknown
      $Proxy553.insertEventNote
      1. $Proxy553.insertEventNote(Unknown Source)
      1 frame
    10. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    11. glassfish-corba-orb
      StubInvocationHandlerImpl.invoke
      1. com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:233)
      2. com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
      2 frames
    12. com.sun.corba
      BCELStubBase.invoke
      1. com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
      1 frame