• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Could not enlist in transaction on entering meta-aware object

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic