Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Could not enlist in transaction on entering meta-aware object

 
Anton Lokotsch
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please tell me why I get this strange error and how to solve it?
On rare occasions I am getting the below error output from JBOSS.
This is when I attempt to load a hibernate encapsulated object from the DB.
The load is requested by a servlet which references methods in a stateless session bean, but in this case does not use any of the referenced methods.
The load is also not explicitly enclosed in a transaction.
JBOSS 3.0.4
Hibernate 1.0
MYSQL Connector 3.0.8

2004-02-05 10:19:20,546 WARN [org.jboss.tm.TxCapsule] Transaction XidImpl [FormatId=257,
GlobalId=idmnet//1813, BranchQual=] timed out. status=STATUS_ACTIVE
2004-02-05 10:20:01,015 WARN [cirrus.hibernate.helpers.JDBCExceptionReporter] SQL Error:
0, SQLState: null
2004-02-05 10:20:01,015 ERROR [cirrus.hibernate.helpers.JDBCExceptionReporter] Could not
enlist in transaction on entering meta-aware object!javax.transaction.SystemException:
Could not enlist XAResource!javax.transaction.RollbackException: Already marked for
rollback; - nested throwable: (javax.resource.ResourceException: Could not enlist in
transaction on entering meta-aware object!javax.transaction.SystemException: Could not
enlist XAResource!javax.transaction.RollbackException: Already marked for rollback)
 
Paul Farrar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have the same problem. I can't find any help on the web for this and am in some real trouble if I can't find a solution.
Does anyone know about this error?
Thanks,
Paul.
 
Paul Farrar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I don't know how you would fix it in MYSQL but in Oracle I was able to increase java_pool_size parameter.
Paul.
 
Daniel Ronde
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can specify the pool size in the xml file in the deploy directory of JBoss:

<datasources>

<local-tx-datasource>
<jndi-name>...</jndi-name>
<connection-url>jdbc:mysql://...</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>...</user-name>
<password>...</password>
<min-pool-size>10</min-pool-size>
<max-pool-size>50</max-pool-size>
</local-tx-datasource>

</datasources>

I have the same Exception and tried the above settings, but they don't seem to help...
 
aubert anthony
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same problem, with Oracle 8i, i aleready increase the javapool per 3 in oracle but i have the same the problem.

If somebody already resolve this problem?

Thanks
 
Subramaniam Venkatachalam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I too have same probelm can anyone in this world where Java is spreading day by day find a solution and let us all know.

Take Care
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2004-02-05 10:19:20,546 WARN [org.jboss.tm.TxCapsule] Transaction XidImpl [FormatId=257,

GlobalId=idmnet//1813, BranchQual=] timed out. status=STATUS_ACTIVE


This message in the log clearly states that the transaction(through which the load of the hibernate object or some other operation was being carried out) has timed-out. As a result the state of the transaction has been set to MARKED_FOR_ROLLBACK. Further operations in context of this timed-out transaction, will lead to the exception mentioned in the stack trace.

Solution to such problems is, either reduce the amount of activity being carried out as part of a transaction or increase the transaction timeout on the EJB(which is by default 5 minutes, set in the jboss-service.xml present in %JBOSS_HOME%/server/default/conf directory)
[ July 03, 2006: Message edited by: jaikiran pai ]
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Praveen KumarKumar,
Your post was moved to a new topic.
Please don't ask additoional questions in threads that are ancient.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic