permaculture playing cards*
The moose likes EJB and other Java EE Technologies and the fly likes Transactions aborted Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Transactions aborted" Watch "Transactions aborted" New topic
Author

Transactions aborted

Michal Glowacki
Ranch Hand

Joined: Mar 14, 2006
Posts: 114
hi,

I have a busy and complex system running on JBoss, with Seam and EJB 3.0. I deployed there 2 applications, admin and customer sites. When admin is launching some big computations (several thousand database select and updates inside 20-30 seconds), both applications are inaccessible. In the server logs I see hundreds of:


20:01:45,007 ERROR [org.hibernate.util.JDBCExceptionReporter] (ajp-192.168.0.171-8109-1130) Transaction is not active: tx=TransactionImple < ac, BasicAction: -5601a088:ddb4:4ee392ca:1496952 status: ActionStatus.ABORTED >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -5601a088:ddb4:4ee392ca:1496952 status: ActionStatus.ABORTED >)

Then after 2-3 minutes pages are accessible again. I've checked database (postgres) logs, they are empty, no problems there. The machine is very powerful, 80 cores, so I don't believe it's hardware problem. Do you think, that moving those computations I mentioned, to another instance of JBoss should help? Or do you have any other ideas what could be the problem? Perhaps I did some big mistakes in my transaction management in session beans?

Regards,
Michal
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

I see this happen in my job when a transacion takes to long to finish, and the it reaches the jboss transaction time.

In my Job is 5min and after that time, the transaction will timeout like your exception message.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Michal Glowacki
Ranch Hand

Joined: Mar 14, 2006
Posts: 114
interesting, but why customer's page goes down as well? jboss too busy with those transactions rollbacks?
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

I think so.

I know that is a way do set up the JBoss transaction timed out, but I can not tell you now because I do not remember. =P
Waclaw Borowiec
Greenhorn

Joined: Dec 14, 2009
Posts: 21
I also had timeout related problem with EJB 3.0 application deployed on JBoss 4.2.3 that manifested with this kind of logs. DB transaction timeout can be set in datasource descriptor:



What doesn't fit here is that your transaction lasts below 1 minute where transaction timeout default is something around 10 minutes. But still you may have some weird settings. Besides, if it's only one transaction, only one JBoss thread should be involved in it (also during rollback), so your application should be responsive. Check which processes (JBoss, DB?) consume which resources (CPU, memory, IO?).
lokesh sree
Ranch Hand

Joined: Oct 27, 2009
Posts: 99

You can also use the @TransactionTimeout annotation.


Lokesh
( SCBCD 5, CCENT, SCJP 5 )
Andrew Moko
Ranch Hand

Joined: Dec 16, 2011
Posts: 55
You may want to turn off the debug appenders under config. Not so long ago i had timeout and memory issues of a J2EE Seam app running on jboss 4.2 and turning off the debug mode on production did it for me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transactions aborted
 
Similar Threads
session interrupe for the big file
JBoss XA Transactions
Help Please, Problems connecting to multiple datasources
Getting ' Transaction is not active: tx=TransactionImple' error...?
Strange transaction timeout