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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Transaction Time out error.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi,

I am getting this transaction timeout error with the following stack trace:

javax.transaction.TransactionRolledbackException: Transaction is ended due to timeout
at com.ibm.ws.Transaction.JTA.TranManagerImpl.completeTxTimeout(TranManagerImpl.java:559)
at com.ibm.ws.Transaction.JTA.TranManagerSet.completeTxTimeout(TranManagerSet.java:605)
at com.ibm.ejs.csi.TransactionControlImpl.completeTxTimeout(TransactionControlImpl.java:1369)
at com.ibm.ejs.csi.TransactionControlImpl.preInvoke(TransactionControlImpl.java:283)
at com.ibm.ejs.container.EJSContainer.preInvokeActivate(EJSContainer.java(Compiled Code))
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2831)
at com.ibm.ejs.container.EJSContainer.preInvoke(EJSContainer.java:2759)

This is in websphere 6.0

Please let me know if anyone has insight into this.

Thanks,
Prashant
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Well, at some point you're starting a transaction, and it's going on too long, so the transaction manager times it out.

How are you demarcating transacations - programatically or declaratively? Do you have EJBs declaratively using transactions? You might want to look there. Perhaps even you have Hibernate code that programatically starts a transaction but does not finish it. Maybe even you have code sometimes starting a transaction, but an exception gets thrown, and the transaction doesn't get closed in a catch or finally block.

These are just 'kicks at the can.' It's hard to say exactly without digging into the code. I can tell you that a transaction is being started without being ended within the appropriate amount of time.

-Cameron McKenzie
 
Sheriff
Posts: 28346
97
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
"prashant kk", please check your private messages regarding an important administrative matter.

Thank you.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
[question removed]
 
Sheriff
Posts: 7386
1412
IntelliJ IDE jQuery Eclipse IDE Postgres Database Tomcat Server Chrome Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Nirmal, please continue the discussion on your other topic. Closing this one.
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
    Bookmark Topic Watch Topic
  • New Topic