0 Replies Latest reply on Oct 13, 2002 10:57 PM by Thomas Hallgren

    Strange behavior using JBoss/Tyrex/Oracle

    Thomas Hallgren Newbie

      Hi,
      I'm posting this on this mailing list because someone might have encountered a similar problem and might be able to help.

      The second time a run an EJB-method that has Tx attribute REQUIRED, I get the following error. I've made serious attempts to find out where it stems from but with no success. It happens during a standard DataSource.getConnection. Everything works fine the first time. But after that, it always fails.

      [ERROR][jboss] eonworx/tutorial/SearchAndPresentCustomerBean Error javax.transaction.xa.XAException[code -6 - javax.transaction.xa.XAExcepti
      on] reported in transaction xid:00e0ffce-76e4485648c0b28e04106eb5297e1148
      javax.transaction.xa.XAException
      at oracle.jdbc.xa.OracleXAResource.disallowLocalTxnMode(OracleXAResource.java:1045)
      at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:153)
      at tyrex.tm.impl.TransactionImpl.addNewResource(TransactionImpl.java:2721)
      at tyrex.tm.impl.TransactionImpl.enlistResource(TransactionImpl.java:669)
      at tyrex.tm.impl.TransactionImpl.enlistResource(TransactionImpl.java:565)
      at org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnectionEventListener.enlist(XATxConnectionManager.java:262)
      at org.jboss.resource.connectionmanager.XATxConnectionManager.managedConnectionReconnected(XATxConnectionManager.java:202)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:534)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
      at org.jboss.resource.adapter.jdbc.JDBCDataSource.getConnection(JDBCDataSource.java:110)

      I'm using Oracle 9.2 with Tyrex 1.0 and JBoss 3.0.3. Any help is greatly appreciated.

      Regards,

      Thomas Hallgren