Atomikos Forum

raised -7: the XA resource has become unavailable

In our application, we use Atomikos as transaction manager with Oracle 11gR2 database. It works fine on DEV environment. But when we moved to UAT environment, it gives an exception (the stack trace is given below). The only difference between DEV and UAT environment is that in UAT we have Oracle RAC (Real Application Cluster) and Dataguard where as in DEV we don't.  Can any body help me solve the problem? Following is the stacktrace:


 Invocation of init method failed; nested exception is com.atomikos.datasource.ResourceException: XA resource 'cls01': resume for XID '3136392E39352E3130392E3131302E746D30303030353030303031:3136392E39352E3130392E3131302E746D31' raised -7: the XA resource has become unavailable
Caused by: com.atomikos.datasource.ResourceException: XA resource 'cls01': resume for XID '3136392E39352E3130392E3131302E746D30303030353030303031:3136392E39352E3130392E3131302E746D31' raised -7: the XA resource has become unavailable
        at com.atomikos.datasource.xa.XAResourceTransaction.resume(XAResourceTransaction.java:654)
        at com.atomikos.datasource.xa.session.BranchEnlistedStateHandler.<init>(BranchEnlistedStateHandler.java:32)
        at com.atomikos.datasource.xa.session.NotInBranchStateHandler.checkEnlistBeforeUse(NotInBranchStateHandler.java:41)
        at com.atomikos.datasource.xa.session.TransactionContext.checkEnlistBeforeUse(TransactionContext.java:60)
        at com.atomikos.datasource.xa.session.SessionHandleState.notifyBeforeUse(SessionHandleState.java:151)
        at com.atomikos.jdbc.AtomikosConnectionProxy.enlist(AtomikosConnectionProxy.java:172)
        at com.atomikos.jdbc.AtomikosConnectionProxy.invoke(AtomikosConnectionProxy.java:106)
        at $Proxy72.prepareStatement(Unknown Source)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:534)
        at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:452)
        at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:161)

...
...
...
Ravindra Sarvaiya Send private email
Thursday, March 29, 2012
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics