3 Replies Latest reply on May 3, 2010 2:46 AM by anithakothandapani

    Caused by: org.jboss.resource.JBossResourceException: Could not enlist  in transaction on entering meta-aware object!; in jboss 5.1.0

    anithakothandapani

      Hi

       

       

      I am using jboss 5.1.0 GA with jdk 1.6 I am getting the following exception when I try to get the db connection using oracle datasource.

       

       

      DataSource ds = DAOHelper.getDataSource("myDS");
      conn = ds.getConnection();
      

       

      This exception is occuring only for some of the links in my web application whereas I am able to get the db connection for other links without this exception.

      Caused by: org.jboss.resource.JBossResourceException: Could not enlist  in transaction on entering meta-aware object!; - nested throwable:  (javax.transaction.SystemException: java.lang.Throwable: Unabled to  enlist resource, see the previous warnings. tx=TransactionImple < ac,  BasicAction: 7f000001:dabb:4bcc1355:32f status: ActionStatus.ABORT_ONLY  >)
           at  org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:409)
           at  org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:625)
           at  org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:499)
           at  org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:941)
           at  org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
           ... 54 more
      Caused by: javax.transaction.SystemException: java.lang.Throwable:  Unabled to enlist resource, see the previous warnings.  tx=TransactionImple < ac, BasicAction: 7f000001:dabb:4bcc1355:32f  status: ActionStatus.ABORT_ONLY >
           at  org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:879)
           at  org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:675)
           at  org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:403)
           ... 58 more

      Please help me to resolve this issue