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)


Solutions on the web1

Solution icon of oraclecommunity
via Oracle Community by amardeepsingh, 1 year ago
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

Stack trace

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(ResourceAllocator.java:143)
	at artemis.lib.ejb.ArtemisBean.allocateSqlConnection(ArtemisBean.java:114)
	at artemis.ejb.business.events.EventNote.EventNoteBean.getNewNoteIdAndTimestampCreated(EventNoteBean.java:210)
	at artemis.ejb.business.events.EventNote.EventNoteBean.insertEventNote(EventNoteBean.java:146)
	at sun.reflect.GeneratedMethodAccessor487.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
	at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
	at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
	at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
	at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
	at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:120)
	at $Proxy553.insertEventNote(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor486.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:233)
	at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
	at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.