aspose file tools*
The moose likes BEA/Weblogic and the fly likes [Error] Cannot enlist resource, transaction not active Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "[Error] Cannot enlist resource, transaction not active" Watch "[Error] Cannot enlist resource, transaction not active" New topic
Author

[Error] Cannot enlist resource, transaction not active

Phods Lg
Greenhorn

Joined: Sep 27, 2005
Posts: 1
Hi All,

I try to execute sql with oracle database and i found some error.
For more detail. I used datasource with Oracle XA Thin.

org.apache.beehive.controls.api.ControlException: SQL Exception while attempting to connect to database.[java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: Unexpected exception: Cannot enlist resource, transaction not active. BEA1-410E2913EA2E856E2B7B. xid=BEA1-410E2913EA2E856E2B7B, status=Committed
at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1437)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1344)
at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:441)
at weblogic.jdbc.jta.DataSource.connect(DataSource.java:397)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)
at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.getConnectionFromDataSource(JdbcControlImpl.java:412)
at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.getConnection(JdbcControlImpl.java:164)
at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.onAquire(JdbcControlImpl.java:111)
at org.apache.beehive.controls.system.jdbc.JdbcControlImplInitializer$_resourceContextResourceEventsEventAdaptor.onAcquire(JdbcControlImplInitializer.java:27)
at org.apache.beehive.controls.runtime.bean.ResourceContextImpl.acquire(ResourceContextImpl.java:126)
at org.apache.beehive.controls.runtime.bean.ResourceContextImpl.preInvoke(ResourceContextImpl.java:110)
at org.apache.beehive.controls.runtime.bean.ControlBean.preInvoke(ControlBean.java:411)
at org.apache.beehive.controls.runtime.bean.ControlBean.preInvoke(ControlBean.java:424)
at controls.CtrlJDBCConCSSyncCommonBean.countCCBMessageId(CtrlJDBCConCSSyncCommonBean.java:374)

Please help me investigate this problem as soon as possible. Thank you.
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6661
    
    5

Is XA enabled for the oracle DB ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
 
wood burning stoves
 
subject: [Error] Cannot enlist resource, transaction not active