-
1. Re: Could not enlist in transaction on entering meta-aware o
andycooper Oct 1, 2002 3:21 PM (in response to andycooper)Hmm, well. Taking a look at JBoss 3.0.3, I see the following:
Revision 1.34.2.8 / (view) - annotate - [select for diffs] , Wed Sep 25 18:39:22 2002 UTC (5 days, 23 hours ago) by patriot1burke
Branch: Branch_3_0
CVS Tags: JBoss_3_0_3
Changes since 1.34.2.7: +5 -1 lines
Diff to previous 1.34.2.7 to branch point 1.34 to next main 1.35
call Thread.interrupted on disassociation to clear a marked for rollback interrupt. We
want to avoid putting an interrupted thread in a thread pool
Anyone want to confirm that my diagnosis is a likelihood? -
2. Re: Could not enlist in transaction on entering meta-aware o
andycooper Oct 1, 2002 3:49 PM (in response to andycooper)Ok, so I downloaded 3.0.3 and installed it with great hopes for it fixing my problem. No such joy. I get exactly the same error message.
Anybody got any thoughts? -
3. Re: Could not enlist in transaction on entering meta-aware o
davidjencks Oct 9, 2002 9:08 PM (in response to andycooper)Ummm its a dumb question but are you certain that your transaction is not marked for rollback?
-
4. Re: Could not enlist in transaction on entering meta-aware o
jlmartinez Oct 22, 2002 6:08 PM (in response to andycooper)The big problem...
We have had that problem for a long time and we have not found solution for CMT.
So, the advice is that delege the transactions to the database. that works correctly.
conn.setAutoCommit(false);
//sentences
conn.commit(); -
5. Re: Could not enlist in transaction on entering meta-aware o
raj_kkp Oct 29, 2002 11:52 AM (in response to andycooper)Hi ,
I am getting same the error. I am using jboss 3.0.3 and oracle. My connection pool works fine but occasionally it start throwing an error---->
org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object !
javax.transaction.SystemException: Could not enlist XAResource! .......
I am closing all ResultSet, Statements and Connection in finnaly method.
Can any one suggest some solution?
Thanks in advance. -
6. Re: Could not enlist in transaction on entering meta-aware o
vickyk Oct 30, 2002 6:53 AM (in response to andycooper)> Hi ,
> I am getting same the error. I am using jboss 3.0.3
> and oracle. My connection pool works fine but
> occasionally it start throwing an error---->
>
> org.jboss.util.NestedSQLException: Could not enlist
> in transaction on entering meta-aware object !
> javax.transaction.SystemException: Could not enlist
> XAResource! .......
>
> I am closing all ResultSet, Statements and Connection
> in finnaly method.
>
> Can any one suggest some solution?
>
> Thanks in advance. -
7. Re: Could not enlist in transaction on entering meta-aware o
vickyk Oct 30, 2002 6:53 AM (in response to andycooper)Hi,
> I am getting same the error. I am using jboss 3.0.3
> and oracle. My connection pool works fine but
> occasionally it start throwing an error
>
> org.jboss.util.NestedSQLException: Could not enlist
> in transaction on entering meta-aware object !
> javax.transaction.SystemException: Could not enlist
> XAResource! .......
>
> I am closing all ResultSet, Statements and Connection
> in finnaly method.
I think you are trying to refresh the page very fast and it just opens the other Transaction before Closing the older one,the default time for ending the transaction is 300 secinds which is specified in the jboss-server.xml.
Try setting the transaction in the code by
setTransactionTimeout(10) and see the results.....
In fact it is happenning to my app also ,I am trying to get the XSDataSource from the JNDI.After getting the special DataSource I am going for the Transaction with JTA but once it does not make the changes.....
I will give the code snipper
**********************************************************
Context ocontext=new InitialContext();
DataSource ods=(DataSource)ocontext.lookup("java:/XAOracleDS");
//DataSource ods=(DataSource)ocontext.lookup("java:/OracleDSI");
System.out.println("Data Source is "+ods);
System.out.println("Before getting UserTransaction");
Connection ocon=ods.getConnection();
//ocon.setAutoCommit(true);
PreparedStatement ostmt=ocon.prepareStatement("update gangsterejb set name=? where id = ? ");
ostmt.setString(1,"VK1");
ostmt.setString(2,"3");
ostmt.executeUpdate();
UserTransaction trans=(UserTransaction)ocontext.lookup("UserTransaction");
//ResultSet ors=ostmt.executeQuery("select * from tab");
int i=10;
trans.setTransactionTimeout(60);
System.out.println("After Timeout");
out.println("Value Of i before begin:"+i+"");
trans.begin();
System.out.println("After Begin");
//trans.setRollbackOnly();
System.out.println("STATUS_ACTIVE "+Status.STATUS_ACTIVE);
System.out.println("Get Status "+trans.getStatus());
//ostmt.executeUpdate("update gangsterejb set name='1' where id = 3 ");
System.out.println("After update");
i++;
//trans.commit();
System.out.println("Before Commit "+ocon.getAutoCommit());
//trans.rollback();
trans.commit();
System.out.println("After Commit");
**********************************************************
regards
Vicky