6 Replies Latest reply on Feb 22, 2003 3:56 PM by David Jencks

    Configuring XA Datasource problem :XAER_PROTO

    Sébastien Couturiaux Newbie

      I am trying to configure a XADatasource for DB2 (using JBoss 3.0.2 & DB2 7.1).

      It seems to work fine, but sometimes (not systematically) my "getConnection" calls fail. This happens only if a transcation.begin() has been called before: up to know, I have never seen this problem when not in a transactional context.

      Here is the significant par of the Exception:

      11:17:53,258 WARN [TxCapsule] XAException: tx=XidImpl FormatId=257, GlobalId=b
      sbp17//2, BranchQual=] errorCode=XAER_PROTO
      javax.transaction.xa.XAException
      at COM.ibm.db2.jdbc.app.DB2XAResource.throwXAException(DB2XAResource.jav
      a:288)
      at COM.ibm.db2.jdbc.app.DB2XAResource.start(DB2XAResource.java:283)
      at org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1200)
      at org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:686)
      at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:102)

      at org.jboss.resource.connectionmanager.XATxConnectionManager$XAConnecti
      onEventListener.enlist(XATxConnectionManager.java:262)
      at org.jboss.resource.connectionmanager.XATxConnectionManager.managedCon
      nectionReconnected(XATxConnectionManager.java:202)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateC
      onnection(BaseConnectionManager2.java:534)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2$Connectio
      nManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
      at org.jboss.resource.adapter.jdbc.JDBCDataSource.getConnection(JDBCData
      Source.java:110)
      at ...

      Can someone help?

      Sébastien Couturiaux