XA error: XAER_RMERR on getConnection()

I am using WLS 6.1 SP2 and Oracle 8.0.6, Type 4 Driver. I have a connection pool
that works fine from a javabean, servlet, jsp, etc.
I am trying to create a BMP EJB, and the call to getConnection returns the following
error. JNDI seems to resolve the DataSource name okay, but I get back a null connection
handle. I am not sure if I have a problem with my deployment descriptors or a
jdbc problem.
Dec 30, 2002 09:26:53 PersonEJB() - Person.ejbCreate called.
Dec 30, 2002 09:26:53 create() Got DataSource from JNDI
Dec 30, 2002 09:26:53 create() Oracle Error: java.sql.SQLException: XA error:
XAER_RMERR : A resource manager error has occured in the transaction branch start()
failed on resource 'Thin_Pool' Unexpected error during start for XAResource 'Thin_Pool':
null
Any suggestions appreciated.
Thanks.
Jeff

I am using WLS 6.1 SP2 and Oracle 8.0.6, Type 4 Driver. I have a connection pool
that works fine from a javabean, servlet, jsp, etc.
I am trying to create a BMP EJB, and the call to getConnection returns the following
error. JNDI seems to resolve the DataSource name okay, but I get back a null connection
handle. I am not sure if I have a problem with my deployment descriptors or a
jdbc problem.
Dec 30, 2002 09:26:53 PersonEJB() - Person.ejbCreate called.
Dec 30, 2002 09:26:53 create() Got DataSource from JNDI
Dec 30, 2002 09:26:53 create() Oracle Error: java.sql.SQLException: XA error:
XAER_RMERR : A resource manager error has occured in the transaction branch start()
failed on resource 'Thin_Pool' Unexpected error during start for XAResource 'Thin_Pool':
null
Any suggestions appreciated.
Thanks.
Jeff

Similar Messages

  • XA error: XAER_RMERR : A resource manager error

              When attempting Oracle's XA driver, the exception below occurs when deploying EJB's.
              All EJBs have trans-attr set to Required or Mandatory. The EJB's fail to deploy
              on WLS 8.1
              JDBC Driver used: oracle.jdbc.xa.client.OracleXADataSource
              DataSource is set to support XA.
              Set up followed as described in edocs.bea.com/wls/docs81/jta/thirdpartytx.html
              Any ideas?
              Exception:weblogic.management.ApplicationException: activate failed for iDTV-ejb.jar
              Module: iDTV-ejb.jar Error: Exception activating module: EJBModule(iDTV-ejb.jar,status=PREPARED)
              Unable to deploy EJB: HouseholdMemberE from iDTV-ejb.jar: XA error: XAER_RMERR
              : A resource manager error has occured in the transaction branch start() failed
              on resource 'iDTV_prod_CP': XAER_RMERR : A resource manager error has occured
              in the transaction branch oracle.jdbc.xa.OracleXAException at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1159)
              at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:311) at
              weblogic.jdbc.wrapper.VendorXAResource.start(VendorXAResource.java:50) at weblogic.jdbc.jta.DataSource.start(DataSource.java:604)
              at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1069)
              at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1001)
              at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:203)
              at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:419)
              at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1230) at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1193)
              at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:371) at weblogic.jdbc.jta.DataSource.connect(DataSource.java:329)
              at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
              at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSPersistenceManager.java:1841)
              at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyDatabaseType(RDBMSPersistenceManager.java:2025)
              at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:195)
              at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:217)
              at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:184)
              at weblogic.ejb20.manager.DBManager.setup(DBManager.java:164) at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1004)
              at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1322) at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:610)
              at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3012)
              at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2076)
              at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2057)
              at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2624)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2547)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
              at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
              at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
              at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
              at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
              at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              

              Refer to
              http://support.bea.com/application?namespace=askbea&origin=ask_bea_answer.jsp&event=link.view_answer_page_clfydoc&answerpage=solution&page=wls%2FS-20733.htm
              "Ignaz Wanders" <[email protected]> wrote:
              >
              >When attempting Oracle's XA driver, the exception below occurs when deploying
              >EJB's.
              >All EJBs have trans-attr set to Required or Mandatory. The EJB's fail
              >to deploy
              >on WLS 8.1
              >
              >JDBC Driver used: oracle.jdbc.xa.client.OracleXADataSource
              >
              >DataSource is set to support XA.
              >
              >Set up followed as described in edocs.bea.com/wls/docs81/jta/thirdpartytx.html
              >
              >Any ideas?
              >
              >Exception:weblogic.management.ApplicationException: activate failed for
              >iDTV-ejb.jar
              >Module: iDTV-ejb.jar Error: Exception activating module: EJBModule(iDTV-ejb.jar,status=PREPARED)
              >Unable to deploy EJB: HouseholdMemberE from iDTV-ejb.jar: XA error: XAER_RMERR
              >: A resource manager error has occured in the transaction branch start()
              >failed
              >on resource 'iDTV_prod_CP': XAER_RMERR : A resource manager error has
              >occured
              >in the transaction branch oracle.jdbc.xa.OracleXAException at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1159)
              >at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:311)
              >at
              >weblogic.jdbc.wrapper.VendorXAResource.start(VendorXAResource.java:50)
              >at weblogic.jdbc.jta.DataSource.start(DataSource.java:604)
              >at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1069)
              >at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1001)
              >at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:203)
              >at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:419)
              >at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1230) at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1193)
              >at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:371) at
              >weblogic.jdbc.jta.DataSource.connect(DataSource.java:329)
              >at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
              >at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.getConnection(RDBMSPersistenceManager.java:1841)
              >at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.verifyDatabaseType(RDBMSPersistenceManager.java:2025)
              >at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.setup(RDBMSPersistenceManager.java:195)
              >at weblogic.ejb20.manager.BaseEntityManager.setupPM(BaseEntityManager.java:217)
              >at weblogic.ejb20.manager.BaseEntityManager.setup(BaseEntityManager.java:184)
              >at weblogic.ejb20.manager.DBManager.setup(DBManager.java:164) at weblogic.ejb20.deployer.ClientDrivenBeanInfoImpl.activate(ClientDrivenBeanInfoImpl.java:1004)
              >at weblogic.ejb20.deployer.EJBDeployer.activate(EJBDeployer.java:1322)
              >at weblogic.ejb20.deployer.EJBModule.activate(EJBModule.java:610)
              >at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3012)
              >at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2076)
              >at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2057)
              >at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2624)
              >at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2547)
              >at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
              >at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
              >at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
              >at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
              >at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
              >at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
              >at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
              >at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
              >at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
              

  • XA error: XAER_RMERR  with wlserver6.1

              This is re-post, reformated for clarity, for an urgent problem
              about BEA XA driver related problem.
              This error develops quickly in our designed simple test with these settings:
              1) wlserver6.1 on Ultra 10 with Solaris 8;
              2) XA datasource on another Ultra 10 with Oracle 8i;
              3) Weblogic XA Oracle Driver;
              4) Simulated 50 clients from Windows 2000 IE;
              5) BMT session bean;
              6) Data base contains a simple table with two colomns, name and password.
              7) The test business logic is to get and return the password string, could not
              be simpler.
              The Processing logic(high level) is as follows:
              A) get UserTransaction, and begin transaction;
              B) loop(30 times):
              1) get connection
              2) create statement
              3) execute statement
              4) close result set
              5) close statement
              6) close connection
              C) commit/rollback the tx accordingly.
              Note that:
              1) the 50 simulated clients will generate repeated hits to stress the server.
              2) We changed to use "thin" driver, giving up the XA capability, and the tests
              run OK.
              However, XA is what we absolutely require of.
              So please help identify this problem. It needed, the complete sample code can
              be made available.
              Thanks.
              Here cometh a exception dump:
              ------------------------------------------------------------ java.sql.SQLException:
              XA error: XAER_RMERR : A resource manager
              error has occured in the transaction branch start() failed on resource 'weblogic.jdbc.jta.DataSource'
              start failed for XAResource 'branchoutPool' with error XAER_RMERR : A resource
              manager error has occured in the transaction branch at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1113)
              at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1079) at
              weblogic.jdbc.jta.Connection.getXAConn(Connection.java:148) at weblogic.jdbc.jta.Connection.createStatement(Connection.java:229)
              at weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.java:126)
              at weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:56)
              at simpleEJB.SimpleEJB.hitdb(SimpleEJB.java:57) at simpleEJB.SimpleEJB_1zpe51_EOImpl.hitdb(SimpleEJB_1zpe51_EOImpl.java:79)
              at simpleEJB.SimpleEJB_1zpe51_EOImpl_WLSkel.invoke(Unknown Source) at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
              at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
              at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:166) at weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92)
              at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112) at
              weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
              at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
              at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35) at $Proxy83.hitdb(Unknown
              Source) at simpleUI.SimpleProxy.hitdb(SimpleProxy.java:31) at jsp_servlet.__simple._jspService(__simple.java:95)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    Yuming,
              Generally, an XAER_RMERR means that tha database's xa routine has
              failed, in this case xa_start from Oracle.
              I am not a DBA, so I am no expert at diagnosing database problems. Is
              there anything logged by Oracle in its system logs/whatever that
              indicates why this might have failed?
              With the C version of Oracle's xa, you can turn on tracing in Oracle, I
              don't know if that is possible in java...
              I hope that might point you in the right direction. If not, have you
              contacted BEA support?
              Regards,
              Peter.
              Got a Question? Ask BEA at http://askbea.bea.com
              The views expressed in this posting are solely those of the author, and BEA
              Systems, Inc. does not endorse any of these views.
              BEA Systems, Inc. is not responsible for the accuracy or completeness of
              the
              information provided
              and assumes no duty to correct, expand upon, delete or update any of the
              information contained in this posting.
              

  • XA error XAER_RMERR with wls6.1 and weblogic XA driver

    This error develops quickly in our designed simple test with these settings:
    1) wlserver6.1 on Ultra 10 with Solaris 8;
    2) XA datasource on another Ultra 10 with Oracle 8i;
    3) Weblogic XA Oracle Driver;
    4) Simulated 50 clients from Windows 2000 IE using Microsoft Web Stress test
    suite;
    5) BMT session bean;
    6) Data base contains a simple table with two colomns, name and password.
    7) The test business logic is to get and return the password string, could
    not be simpler.
    The Processing logic(high level) is as follows:
    A) get UserTransaction, and begin transaction;
    B) loop(30 times):
    1) get connection
    2) create statement
    3) execute statement
    4) close result set
    5) close statement
    6) close connection
    C) commit/rollback the tx accordingly.
    Note that:
    1) the 50 simulated clients will generate repeated hits to stress the
    server.
    2) We changed to use "thin" driver, giving up the XA capability, and the
    tests run OK. However, XA is what we absolutely require of. So please help
    identify this problem. It needed, the complete sample code can be made
    available.
    Thanks.
    Here comes the exception dump:
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has
    occured in the transaction branch start() failed on resource
    'weblogic.jdbc.jta.DataSource' start failed for XAResource 'branchoutPool'
    with error XAER_RMERR : A resource manager error has occured in the
    transaction branch at
    weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1113) at
    weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1079) at
    weblogic.jdbc.jta.Connection.getXAConn(Connection.java:148) at
    weblogic.jdbc.jta.Connection.createStatement(Connection.java:229) at
    weblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.jav
    a:126) at
    weblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:56)
    at simpleEJB.SimpleEJB.hitdb(SimpleEJB.java:57) at
    simpleEJB.SimpleEJB_1zpe51_EOImpl.hitdb(SimpleEJB_1zpe51_EOImpl.java:79) at
    simpleEJB.SimpleEJB_1zpe51_EOImpl_WLSkel.invoke(Unknown Source) at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298) at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :93) at
    weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
    at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:166) at
    weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92) at
    weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112) at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :262) at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :229) at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35) at
    $Proxy83.hitdb(Unknown Source) at
    simpleUI.SimpleProxy.hitdb(SimpleProxy.java:31) at
    jsp_servlet.__simple._jspService(__simple.java:95) at
    weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265) at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :304) at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200) at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2495) at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at
    weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    hi!
    I´m facing the same problem with a similiar configuration.
    Pool is large enough for an elephant! (:>))
    Any other hints?
    regards,
    Pesca
    "Richard Wallace" <[email protected]> escreveu na mensagem
    news:[email protected]...
    >
    Hi,
    What connection pool settings do you have? I assume you have enoughconnections
    for this test?
    Regards,
    Richard Wallace
    Senior Developer Relations Engineer
    BEA Support.
    "Yuming Liu" <[email protected]> wrote:
    This error develops quickly in our designed simple test with these
    settings:
    >>
    1) wlserver6.1 on Ultra 10 with Solaris 8;
    2) XA datasource on another Ultra 10 with Oracle 8i;
    3) Weblogic XA Oracle Driver;
    4) Simulated 50 clients from Windows 2000 IE using Microsoft Web Stress
    test
    suite;
    5) BMT session bean;
    6) Data base contains a simple table with two colomns, name and password.
    7) The test business logic is to get and return the password string,
    could
    not be simpler.
    The Processing logic(high level) is as follows:
    A) get UserTransaction, and begin transaction;
    B) loop(30 times):
    1) get connection
    2) create statement
    3) execute statement
    4) close result set
    5) close statement
    6) close connection
    C) commit/rollback the tx accordingly.
    Note that:
    1) the 50 simulated clients will generate repeated hits to stress the
    server.
    2) We changed to use "thin" driver, giving up the XA capability, and
    the
    tests run OK. However, XA is what we absolutely require of. So please
    help
    identify this problem. It needed, the complete sample code can be made
    available.
    Thanks.
    Here comes the exception dump:
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
    has
    occured in the transaction branch start() failed on resource
    'weblogic.jdbc.jta.DataSource' start failed for XAResource'branchoutPool'
    with error XAER_RMERR : A resource manager error has occured in the
    transaction branch at
    weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1113) at
    weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1079)
    at
    weblogic.jdbc.jta.Connection.getXAConn(Connection.java:148) at
    weblogic.jdbc.jta.Connection.createStatement(Connection.java:229) atweblogic.jdbc.rmi.internal.ConnectionImpl.createStatement(ConnectionImpl.jav
    a:126) atweblogic.jdbc.rmi.SerialConnection.createStatement(SerialConnection.java:56)
    at simpleEJB.SimpleEJB.hitdb(SimpleEJB.java:57) at
    simpleEJB.SimpleEJB_1zpe51_EOImpl.hitdb(SimpleEJB_1zpe51_EOImpl.java:79)
    at
    simpleEJB.SimpleEJB_1zpe51_EOImpl_WLSkel.invoke(Unknown Source) at
    weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
    atweblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :93) atweblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
    at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:166)
    at
    weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:92)
    at
    weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:112)
    atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :262) atweblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :229) at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35) at
    $Proxy83.hitdb(Unknown Source) at
    simpleUI.SimpleProxy.hitdb(SimpleProxy.java:31) at
    jsp_servlet.__simple._jspService(__simple.java:95) at
    weblogic.servlet.jsp.JspBase.service(JspBase.java:27) atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265) atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :304) atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200) atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2495) atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at
    weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  • TXDataSource Error -- XA error: XAER_RMERR

              Hi,
              I am using Weblogic 6.1 with Oracle 8.1.7. I tried configuring TXDataSource as I
              wanted to use Container Managed Transaction through a Session Bean.
              This is how I configured..
              Connection Pool Settings:
              Name - myXAPool
              URL - jdbc:oracle:thin:@myServer:1521:myDb
              DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
              TXDataSource Settings :
              Name - myXADS
              JNDIName - myXADS
              PoolName - myXAPool
              I get the following error when I try to lookup the datasource. I am not sure where
              the problem is as I have configured Connection Pool and TXDataSource as mentioned
              in the documentation.
              java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured
              in the transaction branch start() failed on resource 'myXAPool' Unexpected error
              during start for XAResource 'myXAPool': null
              It would be really great if you can help me out.
              Thanks in Advance,
              Sudhir.
              

              Hi Sudhir,
              see reply on JDBC Newsgroup
              Sergi
              "Sudhir Babu" <[email protected]> wrote:
              >
              >Hi Sergi,
              >
              >Thanks for the response.
              >I downloaded the driver for 8.1.7 from Oracle site and put it in classpath
              >in front
              >of weblogic.jar. I still get the same problem. Is there another location
              >where we
              >can download the Oracle driver with the bug fixed ?
              >
              >Regards,
              >Sudhir.
              >
              >"Sergi Vaz" <[email protected]> wrote:
              >>
              >>Hi Sudhir,
              >>
              >>I think you are using Oracle JDBC drivers 8.1.6. They have a bug, they
              >do
              >>not accept
              >>a foreign XID. Use 8.1.7 or higher to solve this problem (in classpath
              >put
              >>them in
              >>front of weblogic.jar).
              >>
              >>Sergi
              >>
              >>
              >>
              >>"Sudhir Babu" <[email protected]> wrote:
              >>>
              >>>Hi,
              >>>
              >>>I am using Weblogic 6.1 with Oracle 8.1.7. I tried configuring TXDataSource
              >>>as I
              >>>wanted to use Container Managed Transaction through a Session Bean.
              >>>This is how I configured..
              >>>
              >>>Connection Pool Settings:
              >>>-------------------------
              >>>Name - myXAPool
              >>>URL - jdbc:oracle:thin:@myServer:1521:myDb
              >>>DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
              >>>
              >>>TXDataSource Settings :
              >>>-----------------------
              >>>Name - myXADS
              >>>JNDIName - myXADS
              >>>PoolName - myXAPool
              >>>
              >>>I get the following error when I try to lookup the datasource. I am not
              >>>sure where
              >>>the problem is as I have configured Connection Pool and TXDataSource as
              >>>mentioned
              >>>in the documentation.
              >>>
              >>>java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
              >>has
              >>>occured
              >>>in the transaction branch start() failed on resource 'myXAPool' Unexpected
              >>>error
              >>>during start for XAResource 'myXAPool': null
              >>>
              >>>It would be really great if you can help me out.
              >>>
              >>>Thanks in Advance,
              >>>Sudhir.
              >>>
              >>
              >
              

  • Error  in DataSource.getConnection() !

    Hello to u all,
    I'm trying to make an application that uses database connection pooling and i've followed
    closely the tutorial:
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/printer/jndi-datasource-examples-howto.html
    The code in the tutorial worked just fine, however, later when i tried to use it in my (servlet)application a get an error in the datasource.getconnection! Here's my code:
    web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>MySQL Test App</description>
    <resource-ref>
    <description>DB Connection</description>
    <res-ref-name>jdbc/TestDB</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    <servlet>
    <servlet-name>ServletContactosControllerDB</servlet-name>
    <servlet-class>ServletContactosControllerDB</servlet-class>
    <init-param>
         <param-name>event</param-name>
         <param-value>event</param-value>
         </init-param>
         <init-param>
         <param-name>error_event</param-name>
         <param-value>error</param-value>
         </init-param>
         <init-param>
         <param-name>new_user_event</param-name>
         <param-value>newuser</param-value>
         </init-param>
         <init-param>
         <param-name>dbLookup</param-name>
         <param-value>java:comp/env/jdbc/DBContactos</param-value>
         </init-param>
              <init-param>
         <param-name>login_event</param-name>
         <param-value>login</param-value>
         </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>ServletContactosControllerDB</servlet-name>
    <url-pattern>/index.html</url-pattern>
    </servlet-mapping>
    </web-app>
    I know that the configuration in the server.xml is fine because the example in the tutorial worked!!
    so my code in the doPost method in the servlet is:
         Context initCtx = new InitialContext();
    DebugUtility.println("POST 2 ");
    DataSource dataSource = (DataSource)initCtx.lookup("java:comp/env/jdbc/TestDB");
    DebugUtility.println("POST 3 ");
    Connection con = dataSource.getConnection();
                        DebugUtility.println("POST 4");
    it fails in getconnection with the following error:
    Cannot create JDBC driver of class '' for connect URL 'null'
    can anyone figure it out what is happening ? Is my web.xml with a wrong configuration !!
    thx in advance to all of u !

    Finally i have discover the error !!!
    In fact the error reports some irony cause i had said with conviction that
    the error wasn't in the server.xml , but it was :
    <Context path="/contactos_sb" docBase="contactos_sb"
    debug="5" reloadable="true" crossContext="true">
    i was keeping the tutorial path and not my application path so my servlet wasn't able
    to get the class driver and the url !!
    So. it works fine now ! :)�

  • Intermittent XAER_RMERR on Start Branch/ getConnection()

    Hello,
    I've been reading the forums on and off for a couple months now. I was hoping someone could help me with a problem I am facing.
    I have a Container Managed MDB that persists a message in a DB. I am able to successfully complete a XA Transaction and my DB is setup for XA. I am running Weblogic 8 sp3 and connecting to a Oracle 8.1.7 DB using Oracle 9.0.2 drivers (due to integration reasons).
    I ocassionally get the following error. I have "Test Connections on Reserve" and "Test Connections on Release" both checked. My initial Pool size is 0 and I have shrinking allowed. Any thoughts?
    javax.ejb.EJBException: nested exception is: java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() failed on resource 'SMHPMEConnectionPool': XAER_RMERR : A resource manager error has occured in the transaction branch
    javax.transaction.xa.XAException: Unexpected error during start for XAResource 'SMHPMEConnectionPool': Transaction timed out after 61 seconds
    Xid=BEA1-20C1A39CB54A5585B43F(32612847),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=61,seconds left=60,XAServerResourceInfo[JMS_SMHPMEJDBCStore]=(ServerResourceInfo[JMS_SMHPMEJDBCStore]=(state=started,assigned=none),xar=JMS_SMHPMEJDBCStore,re-Registered = false),SCInfo[MLIM+mlimManaged2]=(state=active),local properties=({weblogic.jdbc.jta.SMHPMEConnectionPool=weblogic.jdbc.wrapper.TxInfo@be676c}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=mlimManaged2+jasweblp.mlam.ml.com:9104+MLIM+t3+, XAResources={},NonXAResources={})],CoordinatorURL=mlimManaged2+jasweblp.mlam.ml.com:9104+MLIM+t3+)
         at weblogic.jdbc.wrapper.XA.createException(XA.java:104)
         at weblogic.jdbc.jta.DataSource.start(DataSource.java:678)
         at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1103)
         at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1035)
         at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:213)
         at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:461)
         at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1383)
         at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1325)
         at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:396)
         at weblogic.jdbc.jta.DataSource.connect(DataSource.java:354)
         at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
         at com.ml.mlim.smh.pme.portfolio.j2ee.PMEPortfolioBean.getConnection(Unknown Source)
         at com.ml.mlim.smh.pme.portfolio.j2ee.PMEPortfolioBean.init(Unknown Source)
         at com.ml.mlim.smh.pme.portfolio.j2ee.PMEPortfolioBean.onMessage(Unknown Source)
         at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
         at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    You might try upping your JTA Transaction Timeout as well
    as XASetTransactionTimeout and XATransactionTimeout; the
    latter have to be set manually in the config.xml.
    I believe we had similar problems with long-running txns,
    and this fixed it.
    : jay

  • XAER_RMERR with oracle thin 9.0.1.4 and wls 6.1 sp3

    I am trying to use Oracle Thin 9.0.1.4 Driver in a distributed Transaction and
    while trying to call connection.createStatement() I am getting the
    following error.
    RootCause=[java.sql.SQLException: XA error: XAER_RMERR : A resource
    manager error has occured in the transaction branch start() failed on
    resource 'CoreJDBCPool' null]
    We are using WLS 6.1SP3
    Any help on the issue will be really appreciated
    here's the simple test that causes this error
    <%@ page isErrorPage="false" errorPage="/common/error.jsp" %>
    <%@ page import="javax.sql.DataSource" %>
    <%@ page import="java.sql.Connection" %>
    <%@ page import="java.sql.Statement" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.transaction.UserTransaction" %>
    <html>
    <body>
    Testing update
    <p> </p>
    <%
    Statement stmt = null;;
    Connection conn = null;
    UserTransaction ut = null;
    try {
    InitialContext ctx = new InitialContext();
    // TODO: add the JNDI name for the datasource here
    // get the datasource from the app
    DataSource ds = (DataSource)ctx.lookup("jdbc/TrueResolutionDB");
    ut =(UserTransaction) ctx.lookup("java:comp/UserTransaction");
    ut.begin();
    if (ds != null){
    // Get a connection to the database
    conn = ds.getConnection();
    // Get a statement from the connection
    stmt = conn.createStatement();
    // Execute the Update
    int rows = stmt.executeUpdate( "update csr_submission set
    userid='wilaw' where submissionseq=436");
    // Print how many rows were modified
    out.println( rows + " Rows modified" ) ;
    ut.commit();
    } else {
    out.println("datasource is null");
    catch( Exception e ){
    if (ut != null)
    ut.rollback();
    out.println(e.toString()) ;
    e.printStackTrace();
    // Close the statement and the connection
    if (stmt != null)
    stmt.close() ;
    if (conn != null)
    conn.close() ;
    %>

    Hi Bala,
    Here is what I remembered - I saw this error when a part of the network
    connecting weblogic to oracle was misconfigured, so throughput dropped
    from 100Mbit/s to somewhat 64Kbit-sec.
    When weblogic message level was set to warning, it was showing lots
    of pool's connection refreshes. In my case this error was appearing
    after some time. The source of the error is that when a weblogic XA
    resource is inactive for 2 minutes, the server delists it and everything
    goes south. The workaround for this is to have refresh period a bit less
    than 2 minutes, or, better, have an operating network infrastructure :)
    As for the settings you provided - they are not optimal. The better
    configuration would look like this:
    <JDBCConnectionPool
    CapacityIncrement="0" <!-- We don't need it as we have fixed-size
    pool -->
    ConnLeakProfilingEnabled="false" <!-- This setting is needed only if you
    use profiling API. If it's set to true, it's very heavy on IO -->
    DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="40" <!-- Set it to max so that pool is populated
    upfront -->
    LoginDelaySeconds="1"
    MaxCapacity="40"
    Name="nonXACoreJDBCPool"
    Properties="oracle.jdbc.V8Compatible=true;user=bala;password=bala;dll=ocijdb
    c9;protocol=thin"
    RefreshMinutes="99999" <!-- We don't need refresh -->
    Targets="TrueResolutionServer"
    TestTableName="CSR_Submission"
    URL="jdbc:oracle:thin:@yoshi:1521:hestia"
    <!-- Added -->
    TestConnectionsOnReserve="true" <!-- We need to make sure that we have
    valid connection at reserve -->
    TestTableName="DUAL" <!-- always available and emply oracle table for
    testing -->
    ShrinkingEnabled="false" <!-- This is a fixed size pool -->
    />
    These settings will give you maximum performance from the pool.
    Hope this helps.
    Regards,
    Slava
    "Bala" <[email protected]> wrote in message
    news:[email protected]...
    >
    Hi Slava,
    I was hoping for a response from someone like you - I saw you had similarerrors
    but did not see the solution :-). In any case, here's my connection pooland datasource
    information.
    <JDBCTxDataSource EnableTwoPhaseCommit="true"JNDIName="jdbc/TrueResolutionDB"
    Name="CoreDataSource" PoolName="CorePool" StreamChunkSize="8192"Targets="TrueResolutionServer"
    />
    <JDBCConnectionPool CapacityIncrement="5" ConnLeakProfilingEnabled="true"DriverName="oracle.jdbc.driver.OracleDriver"
    InitialCapacity="10" LoginDelaySeconds="1" MaxCapacity="40"Name="nonXACoreJDBCPool"
    >
    Properties="oracle.jdbc.V8Compatible=true;user=bala;password=bala;dll=ocijdb
    c9;protocol=thin"
    RefreshMinutes="10" Targets="TrueResolutionServer"TestTableName="CSR_Submission"
    URL="jdbc:oracle:thin:@yoshi:1521:hestia" />
    as you can see from the entry below the number of execute threads isreasonable
    >
    <ExecuteQueue Name="default" ThreadCount="15" ThreadPriority="10" />
    "Slava Imeshev" <[email protected]> wrote:
    Hi Bala.
    I remember I had the same problem. Trying to recollect how I fixed it...
    Meanwhile, can you post your connection pool and datasource
    definitions from your config.xml?
    Regards,
    Slava Imeshev
    "Bala" <[email protected]> wrote in message
    news:[email protected]...
    I do have the oracle thin driver in the classpath. the failure thatI see
    is sporadic
    - this makes it worse than a predictable failure. The ThreadCountparameter in
    config.xml is set to 15 and the min and max capacity of the
    ConnectionPool
    is
    set to 25 and 40 respectively (high enough, I would think).
    Is Oracle Thin 9.0.1.4 Driver in the Classpath variable?
    Get Oracle Thin 9.0.1.4 Driver from
    http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
    "Bala" <[email protected]> wrote:
    I am trying to use Oracle Thin 9.0.1.4 Driver in a distributed
    Transaction
    and
    while trying to call connection.createStatement() I am getting the
    following error.
    RootCause=[java.sql.SQLException: XA error: XAER_RMERR : A resource
    manager error has occured in the transaction branch start() failedon> >> >>resource 'CoreJDBCPool' null
    We are using WLS 6.1SP3
    Any help on the issue will be really appreciated
    here's the simple test that causes this error
    <%@ page isErrorPage="false" errorPage="/common/error.jsp" %>
    <%@ page import="javax.sql.DataSource" %>
    <%@ page import="java.sql.Connection" %>
    <%@ page import="java.sql.Statement" %>
    <%@ page import="javax.naming.InitialContext" %>
    <%@ page import="javax.transaction.UserTransaction" %>
    <html>
    <body>
    Testing update
    <p> </p>
    <%
    Statement stmt = null;;
    Connection conn = null;
    UserTransaction ut = null;
    try {
    InitialContext ctx = new InitialContext();
    // TODO: add the JNDI name for the datasource here
    // get the datasource from the app
    DataSource ds = (DataSource)ctx.lookup("jdbc/TrueResolutionDB");
    ut =(UserTransaction) ctx.lookup("java:comp/UserTransaction");
    ut.begin();
    if (ds != null){
    // Get a connection to the database
    conn = ds.getConnection();
    // Get a statement from the connection
    stmt = conn.createStatement();
    // Execute the Update
    int rows = stmt.executeUpdate( "update csr_submission set
    userid='wilaw' where submissionseq=436");
    // Print how many rows were modified
    out.println( rows + " Rows modified" ) ;
    ut.commit();
    } else {
    out.println("datasource is null");
    catch( Exception e ){
    if (ut != null)
    ut.rollback();
    out.println(e.toString()) ;
    e.printStackTrace();
    // Close the statement and the connection
    if (stmt != null)
    stmt.close() ;
    if (conn != null)
    conn.close() ;
    %>

  • Sybase XA XAER_RMERR

    Hi,
    I am trying to get XA working with Sybase ASE 12. We have the XA license installed and working.
    We're using jConnect 6, and get the following error when starting a transaction. Any help would be greatly appreciated.
    Do I need to tell Sybase that Weblogic 8.1 is the resource manager? If so, how?
    <pre>
    java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() failed on resource 'tordevfire_scenario': XAER_RMERR : A resource manager error has occured in the transaction branch
    javax.transaction.xa.XAException
    at com.sybase.jdbc3.jdbc.SybXAResource.sendRPC(Ljava.lang.String;Ljavax.transaction.xa.Xid;III)I(SybXAResource.java:756)
    at com.sybase.jdbc3.jdbc.SybXAResource.sendRPC(Ljava.lang.String;Ljavax.transaction.xa.Xid;II)I(SybXAResource.java:647)
    at com.sybase.jdbc3.jdbc.SybXAResource.start(Ljavax.transaction.xa.Xid;I)V(SybXAResource.java:312)
    at weblogic.jdbc.jta.DataSource.start(Ljavax.transaction.xa.Xid;I)V(DataSource.java:629)
    at weblogic.transaction.internal.XAServerResourceInfo.start(Lweblogic.transaction.internal.ServerTransactionImpl;Ljavax.transaction.xa.Xid;I)V(XAServerResourceInfo.java:1140)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(Lweblogic.transaction.internal.ServerTransactionImpl;I)V(XAServerResourceInfo.java:1072)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(Lweblogic.transaction.internal.ServerTransactionImpl;)Z(XAServerResourceInfo.java:240)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Ljavax.transaction.xa.XAResource;)Z(ServerTransactionImpl.java:463)
    at weblogic.jdbc.jta.DataSource.enlist(Lweblogic.transaction.Transaction;)V(DataSource.java:1392)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(Lweblogic.jdbc.wrapper.XAConnection;Lweblogic.jdbc.wrapper.JTAConnection;Z)Lweblogic.jdbc.wrapper.XAConnection;(DataSource.java:1334)
    at weblogic.jdbc.jta.DataSource.getConnection()Ljava.sql.Connection;(DataSource.java:396)
    at weblogic.jdbc.jta.DataSource.connect(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(DataSource.java:354)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava.sql.Connection;(RmiDataSource.java:305)
    </pre>

    What service pack level of 8.1?
    thanks
    Joe
    Craig Pardey wrote:
    Hi,
    I am trying to get XA working with Sybase ASE 12. We have the XA license installed and working.
    We're using jConnect 6, and get the following error when starting a transaction. Any help would be greatly appreciated.
    Do I need to tell Sybase that Weblogic 8.1 is the resource manager? If so, how?
    <pre>
    java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() failed on resource 'tordevfire_scenario': XAER_RMERR : A resource manager error has occured in the transaction branch
    javax.transaction.xa.XAException
    at com.sybase.jdbc3.jdbc.SybXAResource.sendRPC(Ljava.lang.String;Ljavax.transaction.xa.Xid;III)I(SybXAResource.java:756)
    at com.sybase.jdbc3.jdbc.SybXAResource.sendRPC(Ljava.lang.String;Ljavax.transaction.xa.Xid;II)I(SybXAResource.java:647)
    at com.sybase.jdbc3.jdbc.SybXAResource.start(Ljavax.transaction.xa.Xid;I)V(SybXAResource.java:312)
    at weblogic.jdbc.jta.DataSource.start(Ljavax.transaction.xa.Xid;I)V(DataSource.java:629)
    at weblogic.transaction.internal.XAServerResourceInfo.start(Lweblogic.transaction.internal.ServerTransactionImpl;Ljavax.transaction.xa.Xid;I)V(XAServerResourceInfo.java:1140)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(Lweblogic.transaction.internal.ServerTransactionImpl;I)V(XAServerResourceInfo.java:1072)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(Lweblogic.transaction.internal.ServerTransactionImpl;)Z(XAServerResourceInfo.java:240)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Ljavax.transaction.xa.XAResource;)Z(ServerTransactionImpl.java:463)
    at weblogic.jdbc.jta.DataSource.enlist(Lweblogic.transaction.Transaction;)V(DataSource.java:1392)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(Lweblogic.jdbc.wrapper.XAConnection;Lweblogic.jdbc.wrapper.JTAConnection;Z)Lweblogic.jdbc.wrapper.XAConnection;(DataSource.java:1334)
    at weblogic.jdbc.jta.DataSource.getConnection()Ljava.sql.Connection;(DataSource.java:396)
    at weblogic.jdbc.jta.DataSource.connect(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(DataSource.java:354)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava.sql.Connection;(RmiDataSource.java:305)
    </pre>

  • Distrubted transction Error

              Hi,
              I'm trying to set-up distributed transactions for weblogic. We have a requirement
              to go against 2 different databases within a single transaction.
              My config.xml looks like:
              <JDBCConnectionPool CapacityIncrement="1" DriverName="oracle.jdbc.xa.client.OracleXADataSource"
              InitialCapacity="1" MaxCapacity="2" Name="PAWSPool" Properties="user=STARTESTDATA;url=jdbc:oracle:thin:@s0489dev.dev.schwab.com:1521:ACSTAR;password=STARTESTDATA;dll=ocijdbc9;protocol=thin"
              RefreshMinutes="5" ShrinkingEnabled="true" SupportsLocalTransaction="true" Targets="sps_space"
              TestConnectionsOnReserve="true" TestTableName="DUAL" URL="jdbc:oracle:thin:@s0489dev.dev.schwab.com:1521:ACSTAR"/>
              <JDBCTxDataSource JNDIName="jdbc/paws" Name="PAWSDataSource" PoolName="PAWSPool"
              Targets="sps_space"/>
              and the pseduo code that produces the problem looks like this:
              UserTransction.begin(); //assume jndi lookup
              Connection con = dataSource.getConnection(); //assume jndi lookup
              PreparedStatement ps = con.prepareStatement("sql string");
              the error I get is:
              XA error: XAER_RMERR : A resource manager error has occured in the transaction
              branch start() failed on resource 'PAWSPool': XAER_RMERR : A resource manager
              error has occured in the transaction branch
              oracle.jdbc.xa.OracleXAException
                   at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1157)
                   at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:295)
                   at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
                   at weblogic.jdbc.jta.DataSource.start(DataSource.java:577)
                   at weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.java:1178)
                   at weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.java:1121)
                   at weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourceInfo.java:287)
                   at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:407)
                   at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1157)
                   at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1109)
                   at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:147)
                   at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java:259)
                   at weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.java:139)
                   at weblogic.jdbc.rmi.internal.ConnectionImpl_WLSkel.invoke(Unknown Source)
                   at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
                   at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
                   at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:821)
                   at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
                   at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
              and it is thrown from the connection.prepareStatement call
              HELP!!!!!
              

    Jonh,
              MaxCapacity="2" is way too low. Set it to at least number of excute threads
              (15 by default).
              Regards,
              Slava Imeshev
              "John Byrnes" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi,
              >
              > I'm trying to set-up distributed transactions for weblogic. We have a
              requirement
              > to go against 2 different databases within a single transaction.
              >
              > My config.xml looks like:
              >
              > <JDBCConnectionPool CapacityIncrement="1"
              DriverName="oracle.jdbc.xa.client.OracleXADataSource"
              > InitialCapacity="1" MaxCapacity="2" Name="PAWSPool"
              Properties="user=STARTESTDATA;url=jdbc:oracle:thin:@s0489dev.dev.schwab.com:
              1521:ACSTAR;password=STARTESTDATA;dll=ocijdbc9;protocol=thin"
              > RefreshMinutes="5" ShrinkingEnabled="true" SupportsLocalTransaction="true"
              Targets="sps_space"
              > TestConnectionsOnReserve="true" TestTableName="DUAL"
              URL="jdbc:oracle:thin:@s0489dev.dev.schwab.com:1521:ACSTAR"/>
              >
              >
              > <JDBCTxDataSource JNDIName="jdbc/paws" Name="PAWSDataSource"
              PoolName="PAWSPool"
              > Targets="sps_space"/>
              >
              >
              > and the pseduo code that produces the problem looks like this:
              >
              > UserTransction.begin(); //assume jndi lookup
              >
              > Connection con = dataSource.getConnection(); //assume jndi lookup
              > PreparedStatement ps = con.prepareStatement("sql string");
              >
              > the error I get is:
              > XA error: XAER_RMERR : A resource manager error has occured in the
              transaction
              > branch start() failed on resource 'PAWSPool': XAER_RMERR : A resource
              manager
              > error has occured in the transaction branch
              > oracle.jdbc.xa.OracleXAException
              > at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:1157)
              > at oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:295)
              > at weblogic.jdbc.jta.VendorXAResource.start(VendorXAResource.java:41)
              > at weblogic.jdbc.jta.DataSource.start(DataSource.java:577)
              > at
              weblogic.transaction.internal.ServerResourceInfo.start(ServerResourceInfo.ja
              va:1178)
              > at
              weblogic.transaction.internal.ServerResourceInfo.xaStart(ServerResourceInfo.
              java:1121)
              > at
              weblogic.transaction.internal.ServerResourceInfo.enlist(ServerResourceInfo.j
              ava:287)
              > at
              weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTra
              nsactionImpl.java:407)
              > at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1157)
              > at
              weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1109)
              > at weblogic.jdbc.jta.Connection.getXAConn(Connection.java:147)
              > at weblogic.jdbc.jta.Connection.prepareStatement(Connection.java:259)
              > at
              weblogic.jdbc.rmi.internal.ConnectionImpl.prepareStatement(ConnectionImpl.ja
              va:139)
              > at weblogic.jdbc.rmi.internal.ConnectionImpl_WLSkel.invoke(Unknown Source)
              > at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
              > at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
              > at
              weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
              r.java:821)
              > at
              weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)
              > at
              weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
              0)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
              >
              > and it is thrown from the connection.prepareStatement call
              >
              > HELP!!!!!
              >
              

  • WLS 8.1 SP3 Oracle Driver Trnsaction error...

    I have a Stateless EJB which takes a long processing time within a Process(.jpd). Once done when I try to update the DB in the same process I get Transaction Timeout Exception(Below). Document for WLS SP3
    http://e-docs.bea.com/wls/docs81/notes/new.html#1201192 says that SP3 supports XAResource Transaction Timeout. But though I upgraded from sp2 to sp3 I am getting the same exception. Could someone give any input on this please. Am I doing something wrong?
    <Sep 27, 2004 11:35:17 AM EDT> <Warning> <WLW> <000000> <Id=plateMapDBControl; Method=com.bea.wlw.runtime.core.control.DatabaseCon
    trolImpl.context_onAcquire(); Failure=java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLExcepti
    on: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() failed on resource 'Cmpd Mgmt DB
    Pool': XAER_RMERR : A resource manager error has occured in the transaction branch
    weblogic.transaction.internal.ResourceAccessException: Transaction has timed out when making request to XAResource 'Cmpd Mgmt DB P
    ool'.
    at weblogic.transaction.internal.XAResourceDescriptor.startResourceUse(XAResourceDescriptor.java:644)
    at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1102)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1035)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:213)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:461)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1383)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1325)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:396)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:354)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getConnection(DatabaseControlImpl.jcs:1424)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.context_onAcquire(DatabaseControlImpl.jcs:1316)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:612)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:980)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:910)
    at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:567)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.onAcquire(JcsContainer.java:529)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:533)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:480)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.acquireResources(WlwThreadContext.java:676)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:315)
    at $Proxy13.getTemplate(Unknown Source)
    at processes.PlateMapProcess.plateMapDBControlGetTemplate(PlateMapProcess.jpd:159)
    at processes.PlateMapProcess_wf$ImplControlSend11.invoke(PlateMapProcess_wf.java:111)
    at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32)
    at com.bea.wli.bpm.runtime.Block.execute(Block.java:39)
    at com.bea.wli.bpm.runtime.Block.execute(Block.java:39)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessState.java:726)
    at processes.PlateMapProcess_wf$_ProcessState.executeInternalCallback(PlateMapProcess_wf.java:436)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessState.java:685)
    at com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration(ProcessState.java:681)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wli.bpm.runtime.JpdInternalDispMethod.invoke(JpdInternalDispMethod.java:87)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:248)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:198)
    at com.bea.wlw.runtime.core.bean.BMPContainerBean.invoke(BMPContainerBean.java:2033)
    at com.bea.wli.bpm.runtime.ProcessContainerBean.invoke(ProcessContainerBean.java:163)
    at com.bea.wlwgen.PersistentContainer_ynxra0_ELOImpl.invoke(PersistentContainer_ynxra0_ELOImpl.java:99)
    at com.bea.wlwgen.PlateMapProcessBMPContAdpt.invokeOnBean(PlateMapProcessBMPContAdpt.java:96)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:153)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.run(BaseDispatcherBean.java:85)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:50)
    at com.bea.wlw.runtime.core.bean.AsyncDispatcherBean.onMessage(AsyncDispatcherBean.java:248)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1388)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1325)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:396)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:354)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getConnection(DatabaseControlImpl.jcs:1424)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.context_onAcquire(DatabaseControlImpl.jcs:1316)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:612)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:980)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:910)
    at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:567)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.onAcquire(JcsContainer.java:529)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:533)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:480)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.acquireResources(WlwThreadContext.java:676)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:315)
    at $Proxy13.getTemplate(Unknown Source)
    at processes.PlateMapProcess.plateMapDBControlGetTemplate(PlateMapProcess.jpd:159)
    at processes.PlateMapProcess_wf$ImplControlSend11.invoke(PlateMapProcess_wf.java:111)
    at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32)
    at com.bea.wli.bpm.runtime.Block.execute(Block.java:39)
    at com.bea.wli.bpm.runtime.Block.execute(Block.java:39)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessState.java:726)
    at processes.PlateMapProcess_wf$_ProcessState.executeInternalCallback(PlateMapProcess_wf.java:436)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessState.java:685)
    at com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration(ProcessState.java:681)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wli.bpm.runtime.JpdInternalDispMethod.invoke(JpdInternalDispMethod.java:87)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:248)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:198)
    at com.bea.wlw.runtime.core.bean.BMPContainerBean.invoke(BMPContainerBean.java:2033)
    at com.bea.wli.bpm.runtime.ProcessContainerBean.invoke(ProcessContainerBean.java:163)
    at com.bea.wlwgen.PersistentContainer_ynxra0_ELOImpl.invoke(PersistentContainer_ynxra0_ELOImpl.java:99)
    at com.bea.wlwgen.PlateMapProcessBMPContAdpt.invokeOnBean(PlateMapProcessBMPContAdpt.java:96)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:153)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.run(BaseDispatcherBean.java:85)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:50)
    at com.bea.wlw.runtime.core.bean.AsyncDispatcherBean.onMessage(AsyncDispatcherBean.java:248)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    [ServiceException]>
    <Sep 27, 2004 11:35:18 AM EDT> <Warning> <WLW> <000000> <Id=plateMapDBControl:context; Method=com.bea.control.ControlContext$Callb
    ack.onAcquire(); Failure=weblogic.jws.control.ContextException: Context failure: onAcquire[Unexpected exception while enlisting XA
    Connection java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() fa
    iled on resource 'Cmpd Mgmt DB Pool': XAER_RMERR : A resource manager error has occured in the transaction branch
    weblogic.transaction.internal.ResourceAccessException: Transaction has timed out when making request to XAResource 'Cmpd Mgmt DB P
    ool'.
    at weblogic.transaction.internal.XAResourceDescriptor.startResourceUse(XAResourceDescriptor.java:644)
    at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1102)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1035)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:213)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:461)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1383)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1325)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 

    Vikram,
    You may need to add XASetTransactionTimeout="true" XATransactionTimeout="600"
    to your connection pool definition. In addition, you will have to adjust XA timeout on oracle
    side to match the timeout in the pool definition.
    Hope this helps.
    Regards,
    Slava Imeshev
    "Vikram padival" <[email protected]> wrote in message news:9717245.1096301732629.JavaMail.root@jserv5...
    I have a Stateless EJB which takes a long processing time within a Process(.jpd). Once done when I try to update the DB in thesame process I get Transaction Timeout Exception(Below). Document for WLS SP3
    http://e-docs.bea.com/wls/docs81/notes/new.html#1201192 says that SP3 supports XAResource Transaction Timeout. But though I
    upgraded from sp2 to sp3 I am getting the same exception. Could someone give any input on this please. Am I doing something wrong?
    >
    <Sep 27, 2004 11:35:17 AM EDT> <Warning> <WLW> <000000> <Id=plateMapDBControl; Method=com.bea.wlw.runtime.core.control.DatabaseCon
    trolImpl.context_onAcquire(); Failure=java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLExcepti
    on: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() failed on resource 'Cmpd Mgmt DB
    Pool': XAER_RMERR : A resource manager error has occured in the transaction branch
    weblogic.transaction.internal.ResourceAccessException: Transaction has timed out when making request to XAResource 'Cmpd Mgmt DB P
    ool'.
    at weblogic.transaction.internal.XAResourceDescriptor.startResourceUse(XAResourceDescriptor.java:644)
    at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1102)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1035)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:213)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:461)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1383)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1325)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:396)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:354)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getConnection(DatabaseControlImpl.jcs:1424)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.context_onAcquire(DatabaseControlImpl.jcs:1316)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:612)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:980)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:910)
    at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:567)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.onAcquire(JcsContainer.java:529)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:533)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:480)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.acquireResources(WlwThreadContext.java:676)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:315)
    at $Proxy13.getTemplate(Unknown Source)
    at processes.PlateMapProcess.plateMapDBControlGetTemplate(PlateMapProcess.jpd:159)
    at processes.PlateMapProcess_wf$ImplControlSend11.invoke(PlateMapProcess_wf.java:111)
    at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32)
    at com.bea.wli.bpm.runtime.Block.execute(Block.java:39)
    at com.bea.wli.bpm.runtime.Block.execute(Block.java:39)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessState.java:726)
    at processes.PlateMapProcess_wf$_ProcessState.executeInternalCallback(PlateMapProcess_wf.java:436)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessState.java:685)
    at com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration(ProcessState.java:681)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wli.bpm.runtime.JpdInternalDispMethod.invoke(JpdInternalDispMethod.java:87)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:248)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:198)
    at com.bea.wlw.runtime.core.bean.BMPContainerBean.invoke(BMPContainerBean.java:2033)
    at com.bea.wli.bpm.runtime.ProcessContainerBean.invoke(ProcessContainerBean.java:163)
    at com.bea.wlwgen.PersistentContainer_ynxra0_ELOImpl.invoke(PersistentContainer_ynxra0_ELOImpl.java:99)
    at com.bea.wlwgen.PlateMapProcessBMPContAdpt.invokeOnBean(PlateMapProcessBMPContAdpt.java:96)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:153)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.run(BaseDispatcherBean.java:85)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:50)
    at com.bea.wlw.runtime.core.bean.AsyncDispatcherBean.onMessage(AsyncDispatcherBean.java:248)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1388)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1325)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:396)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:354)
    at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:305)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getConnection(DatabaseControlImpl.jcs:1424)
    at com.bea.wlw.runtime.core.control.DatabaseControlImpl.context_onAcquire(DatabaseControlImpl.jcs:1316)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:612)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:980)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:910)
    at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:567)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.onAcquire(JcsContainer.java:529)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:533)
    at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:480)
    at com.bea.wlw.runtime.core.context.WlwThreadContext.acquireResources(WlwThreadContext.java:676)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:315)
    at $Proxy13.getTemplate(Unknown Source)
    at processes.PlateMapProcess.plateMapDBControlGetTemplate(PlateMapProcess.jpd:159)
    at processes.PlateMapProcess_wf$ImplControlSend11.invoke(PlateMapProcess_wf.java:111)
    at com.bea.wli.bpm.runtime.Perform.execute(Perform.java:32)
    at com.bea.wli.bpm.runtime.Block.execute(Block.java:39)
    at com.bea.wli.bpm.runtime.Block.execute(Block.java:39)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessState.java:726)
    at processes.PlateMapProcess_wf$_ProcessState.executeInternalCallback(PlateMapProcess_wf.java:436)
    at com.bea.wli.bpm.runtime.ProcessState.executeInternalCallback(ProcessState.java:685)
    at com.bea.wli.bpm.runtime.ProcessState.processNodeOrchestration(ProcessState.java:681)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:367)
    at com.bea.wli.bpm.runtime.JpdInternalDispMethod.invoke(JpdInternalDispMethod.java:87)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:248)
    at com.bea.wlw.runtime.core.bean.BaseContainerBean.invokeBase(BaseContainerBean.java:198)
    at com.bea.wlw.runtime.core.bean.BMPContainerBean.invoke(BMPContainerBean.java:2033)
    at com.bea.wli.bpm.runtime.ProcessContainerBean.invoke(ProcessContainerBean.java:163)
    at com.bea.wlwgen.PersistentContainer_ynxra0_ELOImpl.invoke(PersistentContainer_ynxra0_ELOImpl.java:99)
    at com.bea.wlwgen.PlateMapProcessBMPContAdpt.invokeOnBean(PlateMapProcessBMPContAdpt.java:96)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:153)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.run(BaseDispatcherBean.java:85)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:50)
    at com.bea.wlw.runtime.core.bean.AsyncDispatcherBean.onMessage(AsyncDispatcherBean.java:248)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    [ServiceException]>
    <Sep 27, 2004 11:35:18 AM EDT> <Warning> <WLW> <000000> <Id=plateMapDBControl:context; Method=com.bea.control.ControlContext$Callb
    ack.onAcquire(); Failure=weblogic.jws.control.ContextException: Context failure: onAcquire[Unexpected exception while enlisting XA
    Connection java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() fa
    iled on resource 'Cmpd Mgmt DB Pool': XAER_RMERR : A resource manager error has occured in the transaction branch
    weblogic.transaction.internal.ResourceAccessException: Transaction has timed out when making request to XAResource 'Cmpd Mgmt DB P
    ool'.
    at weblogic.transaction.internal.XAResourceDescriptor.startResourceUse(XAResourceDescriptor.java:644)
    at weblogic.transaction.internal.XAServerResourceInfo.start(XAServerResourceInfo.java:1102)
    at weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerResourceInfo.java:1035)
    at weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerResourceInfo.java:213)
    at weblogic.transaction.internal.ServerTransactionImpl.enlistResource(ServerTransactionImpl.java:461)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1383)
    at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1325)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to recover from Oracle XA Error Native Error 24776?

    Hello,
    I believe that I have a connection leak somewhere and that an Oracle
    connection is hung.
    I get the following error when trying to access the data source
    getConnection method.
    How can I recover from this? The WL Server console shows 0 connections
    to the connection pool, but obviously some are in there.
    Thanks,
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
    has occur
    ed in the transaction branch start() failed on resource 'Oracle Connection
    Pool': XAER_RMERR : A resource manager error has occured in the
    transaction bra
    nch
    javax.transaction.xa.XAException: [BEA][Oracle JDBC Driver]Oracle XA
    Error Occur
    red. Native Error: 24776
    at
    weblogic.jdbcx.oracle.OracleImplXAResource.checkError(Unknown Source)
    at weblogic.jdbcx.oracle.OracleImplXAResource.start(Unknown Source)
    at weblogic.jdbcx.base.BaseXAResource.start(Unknown Source)
    at weblogic.jdbc.jta.DataSource.start(DataSource.java:617)
    at
    weblogic.transaction.internal.XAServerResourceInfo.start(XAServerReso
    urceInfo.java:1075)
    at
    weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerRe
    sourceInfo.java:1007)
    at
    weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerRes
    ourceInfo.java:203)
    at
    weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
    rverTransactionImpl.java:419)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1287)
    at
    weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1
    250)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:385)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:343)
    at
    weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
    ce.java:305)

    Steven ,
    It's already been answered:
    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&threadm=4009ccc9%241%40newsgroups.bea.com&rnum=1&prev=/groups%3Fq%3D24776%2520OracleImplXAResource%26hl%3Den%26lr%3D%26ie%3DUTF-8%26c2coff%3D1%26sa%3DN%26tab%3Dwg
    Regards,
    Slava Imeshev
    "Steven Ostrowski" <[email protected]> wrote in message news:40ce1480$1@mktnews1...
    Hello,
    I believe that I have a connection leak somewhere and that an Oracle
    connection is hung.
    I get the following error when trying to access the data source
    getConnection method.
    How can I recover from this? The WL Server console shows 0 connections
    to the connection pool, but obviously some are in there.
    Thanks,
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error
    has occur
    ed in the transaction branch start() failed on resource 'Oracle Connection
    Pool': XAER_RMERR : A resource manager error has occured in the
    transaction bra
    nch
    javax.transaction.xa.XAException: [BEA][Oracle JDBC Driver]Oracle XA
    Error Occur
    red. Native Error: 24776
    at
    weblogic.jdbcx.oracle.OracleImplXAResource.checkError(Unknown Source)
    at weblogic.jdbcx.oracle.OracleImplXAResource.start(Unknown Source)
    at weblogic.jdbcx.base.BaseXAResource.start(Unknown Source)
    at weblogic.jdbc.jta.DataSource.start(DataSource.java:617)
    at
    weblogic.transaction.internal.XAServerResourceInfo.start(XAServerReso
    urceInfo.java:1075)
    at
    weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerRe
    sourceInfo.java:1007)
    at
    weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerRes
    ourceInfo.java:203)
    at
    weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
    rverTransactionImpl.java:419)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1287)
    at
    weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1
    250)
    at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:385)
    at weblogic.jdbc.jta.DataSource.connect(DataSource.java:343)
    at
    weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSour
    ce.java:305)
    [att1.html]

  • Error while creating creating a prepared statement under WL 6.1

    Hi all,
    can you help please?
    We wrere using weblogic 6.0 with transactions and it worked fine.
    As we switched to weblogic 6.1 sometimes we get the following exception when creating
    a prepared statemnent (first statement after accessing the db connection):
    ERROR: ejbFindByCcProcessorIdActive(1): com.wirecard.io.db.util.DbConnectionException:
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured
    in the transaction branch start() failed on resource 'weblogic.jdbc.jta.DataSource'
    Internal error during start for XAResource 'wirecardDataPool'
    -at com.wirecard.io.db.util.DbConnection.prepareStatement(Unknown Source)
    The config.xml looks like this:
    <JDBCConnectionPool CapacityIncrement="1" DeploymentOrder="1000"
    DriverName="weblogic.jdbc.oci.xa.XADataSource"
    InitialCapacity="3" JDBCXADebugLevel="0" LoginDelaySeconds="0"
    MaxCapacity="20" Name="testDataPool"
    Properties="user=quintus;weblogic.codeset=UTF8;url=jdbc:weblogic:oracle;password=common;dataSourceName=testDataPool;server=developer;serverName=developer"
    RefreshMinutes="0" ShrinkPeriodMinutes="30"
    ShrinkingEnabled="true" SupportsLocalTransaction="false"
    Targets="localhost" TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="false" URL="jdbc:weblogic:oracle"/>
    <JDBCConnectionPool CapacityIncrement="1" DeploymentOrder="1000"
    DriverName="weblogic.jdbc.oci.xa.XADataSource"
    InitialCapacity="3" JDBCXADebugLevel="0" LoginDelaySeconds="0"
    MaxCapacity="20" Name="testDataPool"
    Properties="user=quintus;weblogic.codeset=UTF8;url=jdbc:weblogic:oracle;password=common;dataSourceName=dataDataPool;server=developer;serverName=developer"
    RefreshMinutes="0" ShrinkPeriodMinutes="30"
    ShrinkingEnabled="true" SupportsLocalTransaction="false"
    Targets="localhost" TestConnectionsOnRelease="false"
    TestConnectionsOnReserve="false" URL="jdbc:weblogic:oracle"/>
    Can anyone help please?
    cu,
    Guenter

    The driver being used by your weblogic is too old and incompatible with the DBMS. Upgrade the driver.

  • Error while using TXDataSource with Weblogic 6.1 & Oracle 8.1.6

    Hi,
    I am using Weblogic 6.1 and Oracle 8.1.6.
    I have configured JDBC XA Connection Pool with Oracle thin driver. These are my settings...
    Connection Pool:
    Name - myXAPool
    URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource:
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    I get the following error when I try to lookup the datasource. I am not sure where the problem is as I have configured Connection Pool and TXDataSource as mentioned in the documentation.
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured in the transaction branch start() failed on resource 'myXAPool' Unexpected error during start for XAResource 'myXAPool': null
    It would be really great if you can help me out.
    Thanks in Advance,
    Sudhir.

    Hi Sudhir,
    If you do not know if upgrade or not, have a look here :
    http://e-docs.bea.com/wls/docs61/notes/bugfixes2.html
    Note that at the end of June SP3 will be released...
    Sergi
    "Sudhir Babu" <[email protected]> wrote:
    >
    Hi Sergi,
    Thanks a lot for the class file, I figured out what the problem was. Actually
    the
    database version I was working with was 8.0.6.0. The Oracle driver doesn't
    work with
    this but the JDriver worked. This is the output of running CheckDriver..
    DatabaseProductName : Oracle
    DatabaseProductVersion : Oracle8 Enterprise Edition Release 8.0.6.0.0 -
    Production
    With the Partitioning and Objects options
    PL/SQL Release 8.0.6.0.0 - Production
    DriverName : Oracle JDBC driver
    DriverVersion : 8.1.7.1.0
    Then I tried on using the Oracle Driver on another instance which has the
    version
    8.1.7.1.0 and it worked. The JDriver and Oracle driver both work with this
    database.
    The output of CheckDriver for this Oracle instance is..
    DatabaseProductName : Oracle
    DatabaseProductVersion : Oracle8i Enterprise Edition Release 8.1.7.1.0 -
    Production
    With the Partitioning option
    JServer Release 8.1.7.1.0 - Production
    DriverName : Oracle JDBC driver
    DriverVersion : 8.1.7.0.0
    By the way I am working on WLS 6.1 SP1. What is the advantage of SP2 ? Should
    I upgrade
    Thanks once again,
    Sudhir.
    "Sergi Vaz" <[email protected]> wrote:
    Hi Sudhir ,
    JDriver works well, you can work with it.
    Just for curiosity, can you run the class I attached using the "exact"classpath
    of your WL instance (with Oracle drivers in front of weblogic.jar) ? What
    is the
    output ?
    On which platform are you running your WLSP2 ?
    Thanks
    Sergi
    "Sudhir Babu" <[email protected]> wrote:
    Hi Sergi,
    I just checked the things you mentioned. The connection pool starts correctly
    without
    any errors. I also made sure SELECT previlege was granted to DBA_PENDING_TRANSACTIONS.
    I do have the JAVA_XA package installed and it has EXECUTE permission
    to
    PUBLIC.
    I actually tried using the Weblogic JDriver (weblogic.jdbc.oci.xa.XADataSource)
    and
    it works perfect without any issue. The only consideration is that itis
    a Type 2
    Driver and needs to have the Oracle Client installed. But right now Ido
    have it
    installed on the same machine.
    Do you know any known issues with Weblogic JDriver. Do you think it'sa
    good idea
    to go with it ?
    Thanks,
    Sudhir.
    "Sergi Vaz" <[email protected]> wrote:
    Hi Sudhir,
    does your connection pool start correctly ?
    Check the setup of your Oracle server too:
    1) grant select on DBA_PENDING_TRANSACTIONS table to PUBLIC
    2) package JAVA_XA installed (with grant execute to PUBLIC)
    Sergi
    "Sudhir Babu" <[email protected]> wrote:
    Hi Sergi,
    Thanks for the response. I downloaded the driver for 8.1.7 from Oraclesite
    and put
    it in classpath in front of weblogic.jar. I still get the same problem.
    Is there
    another location where we can download the Oracle driver with the bug
    fixed
    Regards, Sudhir.
    "Sergi Vaz" <[email protected]> wrote:
    Hi Sudhir,
    I think you are using Oracle JDBC drivers 8.1.6.
    They have a bug, they do not accept a foreign XID.
    Use 8.1.7 or higher to solve this problem.
    Sergi
    Sudhir Babu <[email protected]> wrote:
    Hi,
    I am using Weblogic 6.1 and Oracle 8.1.6.
    I have configured JDBC XA Connection Pool with Oracle thin driver.
    These
    are my settings...
    Connection Pool:
    Name - myXAPool
    URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource:
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    I get the following error when I try to lookup the datasource. I amnot
    sure where the problem is as I have configured Connection Pool and
    TXDataSource
    as mentioned in the documentation.
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager errorhas
    occured in the transaction branch start() failed on resource 'myXAPool'
    Unexpected error during start for XAResource 'myXAPool': null
    It would be really great if you can help me out.
    Thanks in Advance,
    Sudhir.

  • Help!.... XA error: using Weblogic 6.1 and Oracle 8.1.6

              Hi,
              I am using Weblogic 6.1 with Oracle 8.1.7. I configured a TXDataSource as I wanted
              to use Container Managed Transaction through a Session Bean.
              Connection Pool Settings: -------------------------
              Name - myXAPool URL - jdbc:oracle:thin:@myServer:1521:myDb DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
              TXDataSource Settings : -----------------------
              Name - myXADS
              JNDIName - myXADS
              PoolName - myXAPool
              Everything works fine but once in a while I get the following exception:
              java.sql.SQLException: XA error: XAER_RMERR : A resource manager error has occured
              in the transaction branch start() failed on resource 'myXAPool' Unexpected error
              during start for XAResource 'myXAPool': null
              The connection pool size is 30 and the number connections high reached was 5,
              which means there are enough connections in the pool available at all time.
              It would be really great if you can help me out.
              Thanks in Advance, Sudhir.
              

    Hi Slava,
    Sorry about that Oracle instance I am using is 8.1.7.
    For the XA Driver I am using the one that comes with Weblogic in weblogic.jar.
    And my Weblogic version 6.1 Sp3.
    Thanks,
    Sudhir.
    "Slava Imeshev" <[email protected]> wrote:
    Hi Sudhir,
    Are you using an instance of 8.1.6 or 8.1.7? In the message header you
    say
    8.1.6.
    Regards,
    Slava Imeshev
    "Sudhir Babu" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I am using Weblogic 6.1 with Oracle 8.1.7. I configured a TXDataSourceas
    I wanted
    to use Container Managed Transaction through a Session Bean.
    Connection Pool Settings: -------------------------
    Name - myXAPool URL - jdbc:oracle:thin:@myServer:1521:myDb
    DriverClassname - oracle.jdbc.xa.client.OracleXADataSource
    TXDataSource Settings : -----------------------
    Name - myXADS
    JNDIName - myXADS
    PoolName - myXAPool
    Everything works fine but once in a while I get the following exception:
    java.sql.SQLException: XA error: XAER_RMERR : A resource manager errorhas
    occured
    in the transaction branch start() failed on resource 'myXAPool' Unexpectederror
    during start for XAResource 'myXAPool': null
    The connection pool size is 30 and the number connections high reachedwas
    5,
    which means there are enough connections in the pool available at alltime.
    It would be really great if you can help me out.
    Thanks in Advance, Sudhir.

Maybe you are looking for