aspose file tools*
The moose likes JBoss/WildFly and the fly likes Could not enlist in transaction on entering meta-aware object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Could not enlist in transaction on entering meta-aware object" Watch "Could not enlist in transaction on entering meta-aware object" New topic
Author

Could not enlist in transaction on entering meta-aware object

Anton Lokotsch
Greenhorn

Joined: Feb 05, 2004
Posts: 3
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

Joined: Feb 20, 2004
Posts: 2
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

Joined: Feb 20, 2004
Posts: 2
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

Joined: Feb 23, 2005
Posts: 1
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

Joined: Jul 05, 2005
Posts: 1
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

Joined: Jul 03, 2006
Posts: 1
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

Joined: Jul 20, 2005
Posts: 10210
    
166

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 ]

[My Blog] [JavaRanch Journal]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Praveen KumarKumar,
Your post was moved to a new topic.
Please don't ask additoional questions in threads that are ancient.


JBoss In Action
 
 
subject: Could not enlist in transaction on entering meta-aware object