2 Replies Latest reply on Apr 7, 2003 5:12 PM by Roger Tan

    Oracle, XA, and MBeans

    Roger Tan Newbie

      Hi all, I am trying to change my oracle configuration to XA. I came up with an oracle-xa-service.xml that deploys. I also have an MBean that looks for an entity bean during startup but it's throwing the following :13:36:25,048 ERROR [JDBCFinderCommand] Failed to create finder results
      java.lang.IllegalArgumentException: null xaRes
      at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:646)
      at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:102)
      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:814)
      at org.jboss.resource.adapter.jdbc.JDBCDataSource.getConnection(JDBCDataSource.java:110)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnection(JDBCCommand.java:700)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:168)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.execute(JDBCFinderCommand.java:116)
      at org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEntitiesCommand.java:200)
      at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntities(JAWSPersistenceManager.java:271)
      at org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManager.java:348)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntities(CachedConnectionInterceptor.java:323)
      at org.jboss.ejb.EntityContainer.find(EntityContainer.java:665)
      at java.lang.reflect.Method.invoke(Native Method)

      Anybody knows what's happening ? I am not using any transactions in the MBeans, and the entity bean I am looking up has a transaction attribute : Required.

      Thanks

      NB : My JBoss : 3.0.4 and I am using the classes12.zip (Oracle Drivers)