Unable to enlist XAResource

Hi,
I'm new to Weblogic JTA when I'm trying to enlist XAResource -I'm getting an error-------:javax.transaction.SystemException: You may enlist a resource only on a server
     at weblogic.transaction.internal.TransactionImpl.enlistResource(TransactionImpl.java:467)
If I don't enlist the xaResource then at the time of -commit()------xaRes.commit(xid, false); it's giving XAException-------
oracle.jdbc.xa.OracleXAException
     at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:938)
In case, I use only Transaction object and not the XAResource objcet for commit() or Rollback(); then no errror is giben but the change is not reflecting in at the DB end.
I'm attaching the class that I've written for JTA connection---
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.XAConnection;
import weblogic.transaction.TransactionManager;
//import javax.transaction.Transaction;
//import javax.transaction.TransactionManager;
//import javax.transaction.UserTransaction;
import javax.transaction.Status;
import javax.transaction.xa.XAResource;
import javax.transaction.xa.Xid;
import weblogic.transaction.ClientTxHelper;
import weblogic.transaction.ServerTransactionInterceptor;
import weblogic.transaction.ServerTransactionManager;
import weblogic.transaction.Transaction;
import weblogic.transaction.TransactionHelper;
import weblogic.transaction.internal.ClientTransactionManagerImpl;
import weblogic.transaction.internal.ServerTransactionManagerImpl;
import weblogic.transaction.internal.TransactionHelperImpl;
public class _JTAConnectionUtility  {
     Connection conn = null;
     public void testJTA()
          try{
               oracle.jdbc.xa.client.OracleXADataSource xadsOra = new oracle.jdbc.xa.client.OracleXADataSource();
               String url = "jdbc:oracle:thin:@it12:1521:orcl";
               xadsOra.setURL(url);
               xadsOra.setDatabaseName("orcl");
               xadsOra.setDataSourceName("jdbc/testDS");
               xadsOra.setDriverType("thin");
               XAConnection xaConn = xadsOra.getXAConnection("hr", "hr");
               System.out.println("XAConnection----->" +xaConn.toString());
               conn= xaConn.getConnection();
               System.out.println("Connection value --------------->" +conn.toString());
               XAResource xaRes = xaConn.getXAResource();
               System.out.println("XAResource----------->" +xaRes.toString());
               System.out.println("Data Source Name------>" xadsOra.getDataSourceName()"DB name----->"+xadsOra.getDatabaseName());
               Hashtable env = new Hashtable();
               env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
               env.put(Context.PROVIDER_URL, "t3://localhost:7001");
               env.put(Context.SECURITY_PRINCIPAL, "weblogic");
               env.put(Context.SECURITY_CREDENTIALS, "weblogic");
               Context ctx = new InitialContext(env);
               System.out.println("Before lookup to User Transaction & Transaction Manager");
               //javax.transaction.UserTransaction transaction = (UserTransaction) ctx.lookup("javax.transaction.UserTransaction");
               //System.out.println("After Lookup status of User Transaction is ------>" +transaction.getStatus());
               weblogic.transaction.TransactionManager transactionManager = (TransactionManager) ctx.lookup("weblogic.transaction.TransactionManager");//"javax.transaction.TransactionManager"
               System.out.println("After Lookup status of Transaction Manager is ------>" +transactionManager.getStatus());
               try{
                    transactionManager.begin();
                    //transactionManager.registerResource("", xaRes);
                    weblogic.transaction.Transaction transaction = (Transaction) TransactionHelper.getTransactionHelper().getTransaction();
                    //weblogic.transaction.Transaction transaction =(Transaction) ServerTransactionManagerImpl.getTransactionManager().getTransaction();
                    System.out.println("Transaction Object is ----------->" + transaction);
                    Xid xid = transaction.getXid();
                    System.out.println("XID is------>"+xid);
                    System.out.println("Value of XAResource inside 2nd try bolck is-------->" +xaRes);
                    boolean enlistRes = transaction.enlistResource(xaRes);
                    System.out.println("Enlisted Resource----------->" + enlistRes);
                    System.out.println("Value os connection inside 2nd try block is-------->" +conn);
                    System.out.println("Transaction Manager status is ---------------->" +transactionManager.getStatus());
// simple insert query.
                    if(Status.STATUS_ACTIVE==transactionManager.getStatus()){
                         System.out.println("Inside if");
                         int ret=xaRes.prepare(xid);
                         if(ret==XAResource.XA_OK)
                              xaRes.commit(xid, false);
                         transaction.commit();
                    }else if(Status.STATUS_ROLLEDBACK==transactionManager.getStatus()){
                         System.out.println("Inside else block");
                         xaRes.rollback(xid);
                         transaction.rollback();
               } catch (Exception e){
                    e.printStackTrace();
     } catch (Exception e){
          e.printStackTrace();
     }finally {
          try{
               if(conn!= null)
                    conn.close();
          }catch(SQLException e){
               e.printStackTrace();
     public static void main(String[] args) {
          new _JTAConnectionUtility().testJTA();
          System.out.println("CHECK");
}

Hi,
I'm new to Weblogic JTA when I'm trying to enlist XAResource -I'm getting an error-------:javax.transaction.SystemException: You may enlist a resource only on a server
     at weblogic.transaction.internal.TransactionImpl.enlistResource(TransactionImpl.java:467)
If I don't enlist the xaResource then at the time of -commit()------xaRes.commit(xid, false); it's giving XAException-------
oracle.jdbc.xa.OracleXAException
     at oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:938)
In case, I use only Transaction object and not the XAResource objcet for commit() or Rollback(); then no errror is giben but the change is not reflecting in at the DB end.
I'm attaching the class that I've written for JTA connection---
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.XAConnection;
import weblogic.transaction.TransactionManager;
//import javax.transaction.Transaction;
//import javax.transaction.TransactionManager;
//import javax.transaction.UserTransaction;
import javax.transaction.Status;
import javax.transaction.xa.XAResource;
import javax.transaction.xa.Xid;
import weblogic.transaction.ClientTxHelper;
import weblogic.transaction.ServerTransactionInterceptor;
import weblogic.transaction.ServerTransactionManager;
import weblogic.transaction.Transaction;
import weblogic.transaction.TransactionHelper;
import weblogic.transaction.internal.ClientTransactionManagerImpl;
import weblogic.transaction.internal.ServerTransactionManagerImpl;
import weblogic.transaction.internal.TransactionHelperImpl;
public class _JTAConnectionUtility  {
     Connection conn = null;
     public void testJTA()
          try{
               oracle.jdbc.xa.client.OracleXADataSource xadsOra = new oracle.jdbc.xa.client.OracleXADataSource();
               String url = "jdbc:oracle:thin:@it12:1521:orcl";
               xadsOra.setURL(url);
               xadsOra.setDatabaseName("orcl");
               xadsOra.setDataSourceName("jdbc/testDS");
               xadsOra.setDriverType("thin");
               XAConnection xaConn = xadsOra.getXAConnection("hr", "hr");
               System.out.println("XAConnection----->" +xaConn.toString());
               conn= xaConn.getConnection();
               System.out.println("Connection value --------------->" +conn.toString());
               XAResource xaRes = xaConn.getXAResource();
               System.out.println("XAResource----------->" +xaRes.toString());
               System.out.println("Data Source Name------>" xadsOra.getDataSourceName()"DB name----->"+xadsOra.getDatabaseName());
               Hashtable env = new Hashtable();
               env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
               env.put(Context.PROVIDER_URL, "t3://localhost:7001");
               env.put(Context.SECURITY_PRINCIPAL, "weblogic");
               env.put(Context.SECURITY_CREDENTIALS, "weblogic");
               Context ctx = new InitialContext(env);
               System.out.println("Before lookup to User Transaction & Transaction Manager");
               //javax.transaction.UserTransaction transaction = (UserTransaction) ctx.lookup("javax.transaction.UserTransaction");
               //System.out.println("After Lookup status of User Transaction is ------>" +transaction.getStatus());
               weblogic.transaction.TransactionManager transactionManager = (TransactionManager) ctx.lookup("weblogic.transaction.TransactionManager");//"javax.transaction.TransactionManager"
               System.out.println("After Lookup status of Transaction Manager is ------>" +transactionManager.getStatus());
               try{
                    transactionManager.begin();
                    //transactionManager.registerResource("", xaRes);
                    weblogic.transaction.Transaction transaction = (Transaction) TransactionHelper.getTransactionHelper().getTransaction();
                    //weblogic.transaction.Transaction transaction =(Transaction) ServerTransactionManagerImpl.getTransactionManager().getTransaction();
                    System.out.println("Transaction Object is ----------->" + transaction);
                    Xid xid = transaction.getXid();
                    System.out.println("XID is------>"+xid);
                    System.out.println("Value of XAResource inside 2nd try bolck is-------->" +xaRes);
                    boolean enlistRes = transaction.enlistResource(xaRes);
                    System.out.println("Enlisted Resource----------->" + enlistRes);
                    System.out.println("Value os connection inside 2nd try block is-------->" +conn);
                    System.out.println("Transaction Manager status is ---------------->" +transactionManager.getStatus());
// simple insert query.
                    if(Status.STATUS_ACTIVE==transactionManager.getStatus()){
                         System.out.println("Inside if");
                         int ret=xaRes.prepare(xid);
                         if(ret==XAResource.XA_OK)
                              xaRes.commit(xid, false);
                         transaction.commit();
                    }else if(Status.STATUS_ROLLEDBACK==transactionManager.getStatus()){
                         System.out.println("Inside else block");
                         xaRes.rollback(xid);
                         transaction.rollback();
               } catch (Exception e){
                    e.printStackTrace();
     } catch (Exception e){
          e.printStackTrace();
     }finally {
          try{
               if(conn!= null)
                    conn.close();
          }catch(SQLException e){
               e.printStackTrace();
     public static void main(String[] args) {
          new _JTAConnectionUtility().testJTA();
          System.out.println("CHECK");
}

Similar Messages

  • ORA-00603 by using transactions. Unable to enlist in distributed transactio

    I have a test application built with odp.net which does batches of inserts. The program might call a method that inserts 1000 rows ten times. I want all of these to be in one transaction so if I want to rollback I can restart the whole procedure. So I started a transaction and enlisted each connection to use it.
    This seems to work OK for a while, but maybe after 5-10 calls to my batch-insert method I receive an ORA-00603 exception. In some rare cases I also get "Unable to enlist connection in distributed transaction."
    Can someone help me or shed some light in how to get this to work?
    From alert.log:
    Incident details in: d:\app\exkatr\diag\rdbms\testdb\testdb\incident\incdir_63768\testdb_ora_8848_i63768.trc
    Errors in file d:\app\exkatr\diag\rdbms\testdb\testdb\incident\incdir_63768\testdb_ora_8848_i63768.trc:
    ORA-00603: ORACLE server session terminated by fatal error
    ORA-00600: internal error code, arguments: [ktcirs:hds], [0x01AF68078], [0x006F10BF0], [0x021728078], [], [], [], [], [], [], [], []
    ORA-00600: internal error code, arguments: [ktcirs:hds], [0x01AF68078], [0x006F10BF0], [0x021728078], [], [], [], [], [], [], [], []
    ORA-00600: internal error code, arguments: [ktcirs:hds], [0x01AF68078], [0x006F10BF0], [0x021728078], [], [], [], [], [], [], [], []I tried running tkprof on the trc file but it didn't do anything. The generated file only looks like this:
    TKPROF: Release 11.1.0.7.0 - Production on On Jul 21 11:40:37 2010
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Trace file: d:\app\exkatr\diag\rdbms\testdb\testdb\incident\incdir_63768\testdb_ora_8848_i63768.trc
    Sort options: default
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    Trace file: d:\app\exkatr\diag\rdbms\testdb\testdb\incident\incdir_63768\testdb_ora_8848_i63768.trc
    Trace file compatibility: 10.01.00
    Sort options: default
           0  session in tracefile.
           0  user  SQL statements in trace file.
           0  internal SQL statements in trace file.
           0  SQL statements in trace file.
           0  unique SQL statements in trace file.
        7741  lines in trace file.
           0  elapsed seconds in trace file.

    Have a look at Bug 8539335 (or 7510712)

  • Unable to enlist in a distributed transaction (Windows7, Oracle 11G R1)

    Hi,
    I have a .Net application running on Windows 7 x64 using VisualStudio2008 and Oracle 11G R1 32bit client
    In it I call a webservice calling another webservice, this requires to use oramts that interfaces with Microsoft DTC. However I'm getting the following error when calling the service method:
    "Unable to enlist in a distributed transaction"
    I have checked the following:
    - Ora MTS is installed
    - DTC is running, the security settings allow AX transactions (in fact I just allowed everything)
    - Network services have the permission to access oracle dlls
    - The registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI contains the following: "OracleXaLib"="xa80.dll" "OracleSqlLib"="SQLLib80.dll" "OracleOciLib"="oci.dll" (not sure if this is right)
    What is it I'm doing wrong ? Does this version of Oracle work correctly on W7 ?
    By the way it works fine on Windows XP !
    I've spend quite some time trying to find a resolution..
    Thanks!

    I think I answered my own question
    It seems that MSDTC is not supported by Oracle 11G R1 on Windows x64 !
    All Oracle Database components are supported on Windows x64 with the following exceptions:
    •Oracle Services for Microsoft Transaction Server are not supported on Windows Vista. As a result, all Oracle Windows data access drivers on Windows Vista that use Oracle Services for Microsoft Transaction Server to enlist in Microsoft Distributed Transaction Coordinator (MSDTC) coordinated transactions cannot participate in those coordinated transactions. These data access drivers include Oracle Data Provider for .NET, Oracle Provider for OLE DB, Oracle Objects for OLE, and ODBC. Check OracleMetaLink for up to date information on Oracle Services for Microsoft Transaction Server certification with Windows Vista.
    http://download.oracle.com/docs/cd/B28359_01/install.111/b32006/reqs.htm#CHDCEFIJ
    Edited by: 845528 on 18 mars 2011 05:05

  • Could not enlist XAResource!

    Hello All,
    I am using JBoss.3.2.X and we have more than one database in application. We are getting this exception. We are not facing any probelms when we getting the connection for the first database , but when i am trying to get the connection for the second database we are getting this exception . We are using a local-tx-datasource and we are also using springs framework for databased operations.
    Can any one please help us on this.
    Awaiting Reply,
    Anand
    org.jboss.resource.connectionmanager.TxConnectionManager] Could not enlist XAResource!
    javax.transaction.RollbackException: Already marked for rollback
         at org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:596)
         at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:448)
         at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:337)
         at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:502)
         at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:887)
         at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)
         at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:112)
         at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
         at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:810)
         at org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:856)
         at org.springframework.jdbc.object.StoredProcedure.execute(StoredProcedure.java:102)
    --------------------------------------------------------------------------------------------

    Claudio-
    Could you post the complete stack trace, as well as your Kodo
    configuration, details about the JDBC drivers you are using, and
    information about when the error occurs (e.g., during the commit
    process)?
    In article <c9kuho$149$[email protected]>, Claudio Tasso wrote:
    Hi!
    I'm trying the latest version of Kodo (as a JCA connector) with JBoss 3.2.x,
    but the following error occurs:
    17:56:36,168 INFO [TxConnectionManager] Could not enlist XAResource!
    javax.transaction.RollbackException: Already marked for rollback
    at
    org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:588)
    at
    org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:455)
    at
    org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:343)
    at
    org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:483)
    at
    org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814)
    Any ideas?--
    Marc Prud'hommeaux
    SolarMetric Inc.

  • SQL Anywhere 12 (12.0.1.4155) using EF : Unable to enlist transaction; DTC may be down

    What may be causing this error??
    Sometimes the transactions runs fine, and other times I get this error message.
    Database.SqlQuery<int>("select dba.getnextid()");
    NativeError: -803
    Message: Unable to enlist transaction; DTC may be down
    Source: SQL Anywhere .NET Data Provider
    StackTrace:
    at iAnywhere.Data.SQLAnywhere.SAException.CheckException(Int32 idEx)
       at iAnywhere.Data.SQLAnywhere.DurableResourceManager.Enlist(SAInternalConnection conn, Transaction tran)
       at iAnywhere.Data.SQLAnywhere.SAInternalConnection.Enlist(Transaction tran)
       at iAnywhere.Data.SQLAnywhere.SAConnection._EnlistTransaction(Transaction tran)
       at iAnywhere.Data.SQLAnywhere.SAConnection.EnlistTransaction(Transaction transaction)
       at System.Data.EntityClient.EntityConnection.EnlistTransaction(Transaction transaction)
    Can't seem to figure out how to resolve this issue, nor what's causing it.

    Enabling the MSDTC service solved it.  (Distributed Transaction Coordinator)

  • Confusion about DTC/enlisting transactions

    Hi everyone, our organisation uses Oracle 11g R2 and ODP.Net v4 11.2 in a .Net 4 app and I've been asked to run some tests to see how it copes with connection pooling switched off. While it's unlikely a customer would want to turn off connection pooling, I nevertheless have to test this scenario.
    When I change the connection string to "Pooling=false" the app throws the exception "Unable to enlist in a distributed transaction" when attempting to open a connection. The connection string includes "Enlist=true" by the way, and if I change this to false it works. The confusing part is that the connection isn't wrapped in a System.Transactions.TransactionScope() - it's only reading data. We do use TransactionScope elsewhere however. The documentation around DTC, the "enlist" setting, and promotable transactions are a bit unclear, but almost suggests that when enlist=true the connection will be enlisted in an implicit transaction, even if it's not wrapped in a TransactionScope?
    And why does ODP.Net seem to rely on connection pooling in order to enlist a transaction?
    I've also tried using the Component Services MMC snap-in to view the DTC transactions, and regardless of whether connection pooling is on or off, enlist is true or false, or a TransactionScope has been used or not, a transaction still seems to appear in the console whenever our app performs some database operation. Or am I misunderstanding something?
    Our app only connects to a single database, although it may have two or three connections open under different user accounts. I've read somewhere that we shouldn't even need to use DTC when connecting to a single database. Is this correct, and if so what connection string settings should be used regards the above?
    Many thanks in anticipation
    Andrew

    Hi everyone, our organisation uses Oracle 11g R2 and ODP.Net v4 11.2 in a .Net 4 app and I've been asked to run some tests to see how it copes with connection pooling switched off. While it's unlikely a customer would want to turn off connection pooling, I nevertheless have to test this scenario.
    When I change the connection string to "Pooling=false" the app throws the exception "Unable to enlist in a distributed transaction" when attempting to open a connection. The connection string includes "Enlist=true" by the way, and if I change this to false it works. The confusing part is that the connection isn't wrapped in a System.Transactions.TransactionScope() - it's only reading data. We do use TransactionScope elsewhere however. The documentation around DTC, the "enlist" setting, and promotable transactions are a bit unclear, but almost suggests that when enlist=true the connection will be enlisted in an implicit transaction, even if it's not wrapped in a TransactionScope?
    And why does ODP.Net seem to rely on connection pooling in order to enlist a transaction?
    I've also tried using the Component Services MMC snap-in to view the DTC transactions, and regardless of whether connection pooling is on or off, enlist is true or false, or a TransactionScope has been used or not, a transaction still seems to appear in the console whenever our app performs some database operation. Or am I misunderstanding something?
    Our app only connects to a single database, although it may have two or three connections open under different user accounts. I've read somewhere that we shouldn't even need to use DTC when connecting to a single database. Is this correct, and if so what connection string settings should be used regards the above?
    Many thanks in anticipation
    Andrew

  • I get 'Failed to enlist global transaction with DTC'

    Hi..
    has anybody seen the message '[ODBC][Oracle]Failed to enlist global transaction with DTC' when using Oracle Service for MTS?
    Server : Oracle 8.1.7.4 on Solaris 2.8
    Client : - 8.1.7.4 Windows 2000 SP4
    - ODBC : Oracle ODBC Driver 8.1.7.10
    Application : COM+ with new transaction
    i get the message sometimes, but not always, when conneting to oracle via odbc
    any comments would be appreciated, thanks.

    We used to get the same error with VB-6, MTS and Oracle 8.1.6. Although our environment was Win NT, our solution may work for you. (We got this solution via Metalink from a programmer in England.)
    1) We stopped using Oracle Services for MTS and switched to Oracle's XA functionality. To activate XA functionality, please search the Microsoft web-site. (I don't have the specific URL at hand.)
    2) You can use either the Microsoft ODBC driver or Oracle's, or OLEDB, depending on what your COM+ components are doing. Because 2 of our Packages returned REF_CURSORs to COM+, we had to use OLEDB. The Microsoft web site has information about this.
    3) This solution stopped the "unable to enlist" errors and seemed to run faster than using Oracle Services for MTS.
    Hope this helps,
    CCV

  • Transaction aborts after installing ODAC 12c Release 3

    I have .net code that used a transaction scope which works fine using ODAC 11g Release 4, but fails with "Unable to enlist in a distributed transaction" using ODAC 12c Release 1,2, or 3.  The transaction to a single database.  I am at a loss for what could be the issue.
    This issue occurs on both Windows 7 and Windows Server 2008 R2.
    I have reviewed the trace logs for both the Microsoft Distributed Transaction Server, and the Oracle Services for Microsoft Transactions Services.  The MSDTC trace logs indicate that the transaction abort was request was received from the calling application ("RECEIVED_ABORT_REQUEST_FROM_BEGINNER").  The ORAMTS trace logs indicate an OCI error and that there was an attempt to begin a distributed transaction with out logging on ("OCI_ERROR - 2048." ,  "ORA-02048: attempt to begin distributed transaction without logging on")
    I can reproduce this error with a simple code example with just tried to insert records into a table.  If I change the data provider to "System.Data.OracleClient", or uninstall 12c and install 11g this code works fine.
    DataSet1TableAdapters.DataTable1TableAdapter da = new DataSet1TableAdapters.DataTable1TableAdapter();
                using (TransactionScope scope = new TransactionScope())
                    Transaction txn = Transaction.Current;
                    try
                       da.Insert(0, "This ia a title");
                        scope.Complete();
                        lblmessage.Text = "Transaction Succeeded.";
                    catch (Exception ex)
                        txn.Rollback();
                        lblmessage.Text = "Transaction Failed.";
    Can anyone provide any ideas what is happening?  I really would like to use ODAC 12c.
    Thanks.

    Moving to the ODP.NET forum to get a wider audience.

  • Combining single transaction between session bean & application client

    Hi All,
    The following transaction exception was encountered when trying to combine a EmployeeSessionBean.create(Employee) method in an application client:
    Application Client output
    SEVERE: null
    javax.transaction.SystemException: org.omg.CORBA.UNKNOWN: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.UNKNOWN: WARNING: IOP00010002: Unknown user exception thrown by the server - exception: org.eclipse.persistence.exceptions.DatabaseException; message:
    Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: java.lang.IllegalStateException: cannot add non-XA Resource to global JTS transaction.
    Error Code: 0
    Call: INSERT INTO EmployeeDB.Project (ID, NAME) VALUES (?, ?)
    bind => [2 parameters bound]
    Query: InsertObjectQuery(domain.Project@19d2d53) vmcid: OMG minor code: 2 completed: Maybe
    at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:117)
    at org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:126)
    ----------END server-side stack trace---------- vmcid: OMG minor code: 2 completed: Maybe
    at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:332)
    at com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate.commitDistributedTransaction(JavaEETransactionManagerJTSDelegate.java:184)
    at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.commit(JavaEETransactionManagerSimplified.java:873)
    at com.sun.enterprise.transaction.UserTransactionImpl.commit(UserTransactionImpl.java:208)
    at applicationClient(*applicationClient.java:229*)
    GF 3.1 Server log
    WARNING: A system exception occurred during an invocation on EJB EmployeeSessionBean method public void ejb.EmployeeSessionBean.create(Employee) javax.ejb.EJBException
    Caused by: javax.persistence.TransactionRequiredException
    at ejb.EmployeeSessionBean.create(*EmployeeSessionBean.java:27*)
    SEVERE: RAR5027:Unexpected exception in resource pooling
    java.lang.IllegalStateException: cannot add non-XA Resource to global JTS transaction.
    WARNING: RAR7132: Unable to enlist the resource in transaction. Returned resource to pool. Pool name: [ mysqlPool ]
    WARNING: RAR5117 : Failed to obtain/create connection from connection pool [ mysqlPool ]. Reason : com.sun.appserv.connectors.internal.api.PoolingException: java.lang.IllegalStateException: cannot add non-XA Resource to global JTS transaction.
    WARNING: RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: java.lang.IllegalStateException: cannot add non-XA Resource to global JTS transaction.]
    WARNING: Local Exception Stack:
    Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: java.lang.IllegalStateException: cannot add non-XA Resource to global JTS transaction.
    Below is the code snippet of EmployeeSessionBean & client.applicationClient:
    @Stateless
    //@TransactionManagement(TransactionManagementType.BEAN)
    public class EmployeeSessionBean implements EmployeeService {   
        @PersistenceContext(unitName="EmployeeDB-PU")
        private EntityManager manager;
        public void create(Employee employee) {
            manager.persist(employee);  // line 27
    import javax.transaction.UserTransaction;
    public class applicationClient {
    @Resource UserTransaction tx;
    @EJB private static EmployeeService bean;
    try {
        tx.begin();
        Employee employee = new Employee()
            bean.create(employee);
    } finally {
           try {
                 tx.commit();  // line 229
    }How to relinguish transaction on EmployeeSessionBean so that all transaction could take place in applicationClient side only?
    I am trying to apply examples in Pro JPA 2 to a Java EE 6 ManyToMany application.
    Your assistance would be much appreciated.
    Thanks,
    Jack

    Hi r035198x,
    Thank you for some solid advice and would rather JPA take care of all the special cases such as keeping the records unique.
    Below are the changes made as suggested in ( 1 ), ( 2 ), ( 3 ):
    @Entity
    @IdClass(EmployeePK.class)
    @Table(name="EMPLOYEE", catalog="EmployeeDB", schema="")
    public class Employee implements Serializable {
        @Id
        @Column(name="FIRSTNAME")
        private String firstName;
        @Id
        @Column(name="SURNAME")
        private String surName;
        @Id
        @Column(name="DOB")
        @Temporal(TemporalType.DATE)
        private Date dob;
        @ManyToMany(cascade={CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH}, fetch=FetchType.EAGER)
        @JoinTable(name="EMPLOYEE_PROJECT", catalog="EmployeeDB", schema="",
               joinColumns={@JoinColumn(name="FIRSTNAME_ID", referencedColumnName="FIRSTNAME"),
                            @JoinColumn(name="SURNAME_ID", referencedColumnName="SURNAME"),
                            @JoinColumn(name="DOB", referencedColumnName="DOB")},
               inverseJoinColumns={@JoinColumn(name="PROJECT_ID")})
            private Set<Project> projects = new HashSet<Project>();
    @Entity
    @Table(name="PROJECT", catalog="EmployeeDB", schema="")
    public class Project implements Serializable {
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        @Column(name="ID")
        private int id;
        @ManyToMany(mappedBy="projects", cascade={CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH}, fetch=FetchType.EAGER)
            @JoinTable(name="EMPLOYEE_PROJECT", catalog="EmployeeDB", schema="",
               joinColumns={@JoinColumn(name="PROJECT_ID", referencedColumnName="PROJECT_ID")},
               inverseJoinColumns={@JoinColumn(name="FIRSTNAME_ID", referencedColumnName="FIRSTNAME"),
                            @JoinColumn(name="SURNAME_ID", referencedColumnName="SURNAME"),
                            @JoinColumn(name="DOB_ID", referencedColumnName="DOB")})
        private Set<Employee> employees = new HashSet<Employee>();
    @Stateless
    public class EmployeeSessionBean implements EmployeeService {
        @PersistenceContext(unitName="EmployeeDB-PU") private EntityManager manager;
        public void create(Employee employee)
            manager.persist(employee);
    public class applicationClient {
        @EJB
        private static EmployeeService bean;
        public static void main(String[] args) {
        Employee employee = new Employee()
        bean.create(employee);   // line 209
    } I have diverged slightly from using simple primary key (EMPLOYEE_ID) to composite key class (FIRSTNAME, SURNAME, DOB) to resemble the actual application.
    Also gone back to using non - XADatasources since I am depending on JTA to do all the hardwork on the server side.
    Unfortunately, we have hit a snag once again with the following exception still:
    Application Client Output
    java.lang.reflect.InvocationTargetException
    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:597)
    at org.glassfish.appclient.client.acc.AppClientContainer.launch(AppClientContainer.java:432)
    at org.glassfish.appclient.client.AppClientFacade.launch(AppClientFacade.java:182)
    at org.glassfish.appclient.client.AppClientGroupFacade.main(AppClientGroupFacade.java:65)
    Caused by: javax.ejb.EJBException: java.rmi.MarshalException: CORBA MARSHAL 1330446347 Maybe; nested exception is:
    org.omg.CORBA.MARSHAL: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.MARSHAL: WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream vmcid: OMG minor code: 11 completed: Maybe
    Caused by: java.io.StreamCorruptedException: WARNING: ORBIO00013: Stream corrupted
    ----------END server-side stack trace---------- vmcid: OMG minor code: 11 completed: Maybe
    at ejb._EmployeeService_Wrapper.create(ejb/_EmployeeService_Wrapper.java)
    at applicationClient(applicationClient.java:209)
    GF 3.1 Server log
    WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream
    org.omg.CORBA.MARSHAL: WARNING: IOP00810011: Exception from readValue on ValueHandler in CDRInputStream vmcid: OMG minor code: 11 completed: Maybe
    Caused by: java.lang.NullPointerException
    WARNING: ORBIO00013: Stream corrupted
    java.io.StreamCorruptedException: WARNING: ORBIO00013: Stream corrupted
    Your valuable input would be very appreciated.
    Thanks,
    Jack

  • Custom component: porting from lc 8.0 to lc 8.2

    hello
    i developed a java pojo custom component for lc 8.0, essentially it connected to a db and returned a complex object. Now the environment has been upgraded to lc 8.2 . I've loaded my processes (which include my custom component) on the new environment. When i start the process , my component reaches the finally block where i've logged the db connections closing. Immediatly after the system crushes with the following error(i haven't added the whole stack trace because its huge): 
    2009-04-10 13:11:21,422 WARN  [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@2ac6fb1
    2009-04-10 13:11:21,431 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract com.adobe.pof.GenericObject com.adobe.pof.omapi.POFObjectManagerLocal.writeObject(com.adobe.pof.GenericObject,com.ado be.idp.Context) throws com.adobe.pof.POFException, causedBy:
    org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 643401bb:6b45:49df1884:29cb status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 643401bb:6b45:49df1884:29cb status: ActionStatus.ABORT_ONLY >))
        at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94 )
        at com.adobe.pof.ConnectionWrapper.getConnection(ConnectionWrapper.java:45)
        at com.adobe.pof.ConnectionWrapper.prepareStatement(ConnectionWrapper.java:179)
        at com.adobe.pof.adapter.JDBCAdapter.prepareStatement(JDBCAdapter.java:5299)
    After that jboss get stucked, printing exceptions every 2 minutes, and i need to stop and restart it. I don't see anything wrong with my code: i get the datasource object, i get a coonettin from it, make my queries/updates and finally i close the connection.
    googling i've found this might be due to datasource item being local-tx-datasource instead of xa-datasource, but all datasources are of this kind.
    Any hint about this problem will be greatly appreciated
    thank you in advance
    Stefano

    hi Steve
    thank you for your answer. Unluckly i'm not using mysql but oracle 9i (or 10i i don't know since i'm just a poor programmer). Anyway i did a test : i've bypassed the datasource file , hardcoding the connection parameters in my custom component and it has got executed without problem, then process has crushed again on a query done by some adobe component. there are many adobe sql component instances to read/write from the same schema my compnent uses, so i suppose the problem is inside datasource configuration. There's a datasource sample for oracle too?
    I cannot give much details, since the new system has been recently installed and i don't know all info (i think jboss is 4.2 but i'm not sure)
    thanks again
    regards
    Stfano

  • Limit on connections?

         From a class that requires transactions, I invoke a routine in a class that supports transactions. That second routine, in turn, opens up a database connection, invokes a stored procedure (which, by the way, is completely empty -- it just has a "return" statement), then closes the database connection.
         I call this second routine eight times in a row, without any problems. But when I invoke it for the ninth time, I get the following error when trying to open the connection:
         "Unable to enlist in a distributed transaction"
         Is there a limit on the number of times a database can be accessed within a transaction? Is there a way to raise, or eliminate, this limit?

    You're not exceeding the number of network connections for a workstation, which is 10 computers, so I don't believe you've hit any limits. I suspect you're running into inherent problems with Mac OS X's implementation of SMB, which I sometimes find flaky.
    See what happens when you take the following code and put it into the Applescript Script Editor found inside the Applications folder:
    mount volume "smb://servername/sharename" as user name userName with password password
    Add a new line of code for each share you're trying to access. Click the Run button to execute the script. If this works then you can save the script as a double-clickable application.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.7)  

  • JBoss TxConnectionManager problem

    Hi!
    I'm trying the latest version of Kodo (as a JCA connector) with JBoss 3.2.x,
    but the following error occurs:
    17:56:36,168 INFO [TxConnectionManager] Could not enlist XAResource!
    javax.transaction.RollbackException: Already marked for rollback
    at
    org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:588)
    at
    org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:455)
    at
    org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:343)
    at
    org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:483)
    at
    org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814)
    Any ideas?

    Claudio-
    Could you post the complete stack trace, as well as your Kodo
    configuration, details about the JDBC drivers you are using, and
    information about when the error occurs (e.g., during the commit
    process)?
    In article <c9kuho$149$[email protected]>, Claudio Tasso wrote:
    Hi!
    I'm trying the latest version of Kodo (as a JCA connector) with JBoss 3.2.x,
    but the following error occurs:
    17:56:36,168 INFO [TxConnectionManager] Could not enlist XAResource!
    javax.transaction.RollbackException: Already marked for rollback
    at
    org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:588)
    at
    org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:455)
    at
    org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:343)
    at
    org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:483)
    at
    org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:814)
    Any ideas?--
    Marc Prud'hommeaux
    SolarMetric Inc.

  • The AcquireConnection method call failed with error code 0xC0202009.

    I've seen the previous threads on this (although maybe not all of them). However, i don't think I'm getting the error for the same reason. The full error I'm getting is:
    - Pre-execute (Error)
    Messages
    Error 0xc0202009: {F1B3B35C-FAE3-48F6-A169-4E4D8D99F9B6}: An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft JET Database Engine"  Hresult: 0x80004005  Description: "Unspecified error".
     (SQL Server Import and Export Wizard)
    Error 0xc020801c: Data Flow Task: The AcquireConnection method call to the connection manager "DestinationConnectionExcel" failed with error code 0xC0202009.
     (SQL Server Import and Export Wizard)
    Error 0xc004701a: Data Flow Task: component "Destination 64 - production_effectivities" (7042) failed the pre-execute phase and returned error code 0xC020801C.
     (SQL Server Import and Export Wizard)
    The entire package is running on one machine. The data source is SQL Server 2005 and the destination (this happens with both of them) is Excel or Access. Either way I cannot get the package which the wizard generated to run at all. This error occurs after the first table is exported. I'm running on WinXP SP2 with 2005 Developer and ALL components installed except analysis services.
    Anyone else have this problem or know the solution?
    Jeff

    I am getting the same error. My Destination and source both are on SQL Server 2005 on the same box.
    I am using SQL- Code for Source and and table as destination. When the package runnes under Transaction- TransactionOption-Supported then the packages excuted fine but it fails when i change the Transaction- TransactionOption to Required.
    It fails with following error code.
    [OLE DB Destination [22]] Error: The AcquireConnection method call to the connection manager "FMFCLSQADB01.DWH_Rakesh" failed with error code 0xC0202009.
    [DTS.Pipeline] Error: component "OLE DB Destination" (22) failed the pre-execute phase and returned error code 0xC020801C.
    [Connection manager "FMFCLSQADB01.DWH_Rakesh"] Error: The SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D00A "Unable to enlist in the transaction.".
    [Connection manager "FMFCLSQADB01.DWH_Rakesh"] Error: An OLE DB error has occurred. Error code: 0x8004D00A.
    When i change the source SQL query to Table or View then it works fine.
    Thanks for any suggestion.
    Regards
    Rakesh
    Now, my issues related to “SSIS Runtime has failed to enlist the OLE DB connection in a distributed transaction with error 0x8004D00A "Unable to enlist in the transaction."…..”. are fixed.
    This is one of the very common errors that comes up in SSIS (SQL Server Integration service) 
    I have faced this issue for at-least two occasions. Both of them have one common setting: “TransactionOption” was set to “Required”.
    In first case, I had multiple dataflow tasks but there were no sequence given. There were no error if I ran the package with TransactionOption=Supported. But when I ran the package in TransactionOption= Required, it got failed.
    To fix the issue I have changed my package and put the entire dataflow task one after another (connected thru Constraint).  
    In another case, where I was doing data transfer from one server to another, I had to configure the MSDTC.

  • TransactionAttibuteType.NOT_SUPPORTED required in this scenario?

    This is a problem I'm facing with my Seam 2.0 app running on JBoss 4.2. If I don't use
    @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
         public void searchSerialNumbers()(i.e. it will default to TransactionAttributeType.REQUIRED as per spec), I get this stack trace when I run a test case:
    14:54:35,818 INFO  [ProfilingInterceptor] *** Entering method: getTopOneWorkOrdersBySerialNumber
    14:54:35,834 WARN  [loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@108c175
    14:54:36,178 ERROR [STDERR] java.lang.Exception: JdbcUtils: getConnection: exception occurred: org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a2e052a:b3a:49c0048d:381 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: a2e052a:b3a:49c0048d:381 status: ActionStatus.ABORT_ONLY >))Consider the following public method which is executed by a HtmlCommandButton click in a JSF:
    @Stateful
    public class BulkCreateRepairCaseAction implements BulkCreateRepairCaseLocal {
           @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
         public void searchSerialNumbers()
              getSiteId();
              //parse serial numbers from HtmlInputTextarea control....
              List<String> serialNumberList = parseSerialNumber();
              if (serialNumberList != null && serialNumberList.size() > 0)
                   for (String serialNumber : serialNumberList)  //persist records one serialNumber at a time...
                        List<NewWorkOrdersBean> topOneWorkOrdersList = storedProcedureDAO.getTopOneWorkOrdersBySerialNumber(serialNumber, siteId);
    }

    and this class:
    @Stateless
    public class StoredProcedureDAO implements StoredProcedureLocalDAO
    public List<NewWorkOrdersBean> getTopOneWorkOrdersBySerialNumber(String serialNumber, Short siteId)
              List<NewWorkOrdersBean> workOrderList = null;
              try
                   con = jdbcUtils.getConnection(DATASOURCE_NAME_FOR_SPROC);
                   if (con != null)
                        cstmt = con.prepareCall("{call [dbo].[usp_getTopOneWorkOrdersBySerialNumber](?,?)}");
                        cstmt.setString(1, serialNumber);
                        cstmt.setShort(2, siteId);
                        cstmt.execute();
                        rs = (ResultSet) cstmt.getResultSet();
                        workOrderList = new ArrayList();
                        //get all EquipmentRepair entities
                        List<EquipmentRepair> equipmentRepairList = entityManager.createQuery("select er from EquipmentRepair er").getResultList();
                        while (rs.next())
                             serialNumber                     = rs.getString("SERIAL_NUMBER");
                             String workOrderNo                = rs.getString("WORK_ORDER_NUMBER");
                             String techId                     = rs.getString("ASSIGNED_INSTALLER");
                             String checkInDate                = rs.getString("DateTimeEntered");
                             String findingCodes           = rs.getString("FindingCode");
                             String macAddress                = rs.getString("EQUIPMENT_ADDRESS");
                             String workOrderType         = rs.getString("WO_TYPE");
                             String modelNumber               = rs.getString("ITEM_NUMBER");
                             java.util.Date inventoryReceiptDate   = new java.util.Date(rs.getString("INVENTORY_RECEIPT_DATE"));
                             NewWorkOrdersBean newWorkOrdersBean = new NewWorkOrdersBean();
                             newWorkOrdersBean.setSerialNumber(serialNumber);
                             newWorkOrdersBean.setWorkOrderNo(workOrderNo);
                             newWorkOrdersBean.setTechId(techId);
                             newWorkOrdersBean.setCheckInDate(checkInDate);
                             newWorkOrdersBean.setFindingCodes(findingCodes);
                             newWorkOrdersBean.setMacAddress(macAddress);
                             newWorkOrdersBean.setWorkOrderType(workOrderType);
                             newWorkOrdersBean.setModelNumber(modelNumber);
                             newWorkOrdersBean.setInventoryReceiptDate(inventoryReceiptDate);
                             if (!workOrderExists(equipmentRepairList, newWorkOrdersBean))                         
                                  workOrderList.add(newWorkOrdersBean);                         
                        if (workOrderList != null)
                             log.info("execStoredProc(): workOrderList.size() = " + workOrderList.size());
              catch (Exception e)
                   e.printStackTrace();
              finally
                   try
                        jdbcUtils.cleanUp(con, cstmt, rs);
                   catch (SQLException e)
                        log.error("execStoredProc: SQLException caught: ", e);
              return workOrderList;
    }Can someone plz explain why this is happening? And what I should do to fix this and/or best practice? We need to use JDBC to access stored procs b/c JPA does not support stored procs (and won't in 2.0 either). thx.

  • Java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_RMFAIL start() failed on resource 'myDomain': XAER_RMFAIL : Resource manager is unavailable

    Hi All,
    I am facing below issue without any change in the config from weblogic
    Managed servers are coming up and running without any issue
    But when we are doing any operation from application then its failing
    java.sql.SQLException: Unexpected exception while enlisting XAConnection java.sql.SQLException: XA error: XAResource.XAER_RMFAIL start() failed on resource 'myDomain': XAER_RMFAIL : Resource manager is unavailable
    Regards
    Lokesh

    Hi,
    Can you please try increase the below MaxXACallMillis setting in Weblogic set 'Maximum Duration of XA Calls' to a bigger value
    MaxXACallMillis: Sets the maximum allowed duration (in milliseconds) of XA calls to XA resources. This setting applies to the entire domain.
    http://docs.oracle.com/cd/E12840_01/wls/docs103/jta/trxcon.html
    The parameter is exposed through administration console: services --> jta --> advanced --> "Maximum Duration of XA Calls:"
    Check the below docs for more information
    WLS 10.3: Intermittent XA error: XAResource.XAER_RMERR (Doc ID 1118264.1)
    Hope it Helps

Maybe you are looking for

  • Horizontal jagged lines in ProRes conversion from MPEG-2

    I converted an MPEG-2 from a DVD into a ProRes 422 Quick time through MPEG Streamclip in order to edit excerpts in FCP 7.  When imported in FCP it shows horizontal broken layers when I stop playing it, and full image when it runs.  The specs of the M

  • Metadata values?

    Can anyone please tell me where I can find info as to what the different numbers in the Metadata fields of Exposure program, Exposure mode and metering mode represent. I can not find anything in Aperture or my camera manual that explains this. Thanks

  • IPhoto file organising

    hello, I was just wondering if it is possible to turn off the file organising that iPhoto uses (like you can in itunes)... Because i have already organised my photos into files, and named the files... and i like to be able to browse through the folde

  • Select only numbers from database

    Hi All, I need to retrieve numerical data's from the database. Data base table has both numerical and text values. now I want to retrieve only numerical data's. Can any one help me on this, Thanks and helps will be appreciated.

  • The best shipping Example

    I've run across what may be the best shipping example in LabVIEW, that is if your .dll'ly challenged like me. It's an example called "Call DLL.vi". You can find through the Example Finder or directly at "...National Instruments\LabVIEW 7.1\examples\d