• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jboss + Hibernate + unclosed Transaction Exception  RSS feed

 
abhijit Ohal
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

i am getting following exception on server




I have verified the code & found that all the connections are closed properly.
i am also not able to reproduced this on my local system.
is there any solution this problem?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well it is getting a transaction/connection that is still open. So there must be a missing commit on a transaction or rollback. Or you didn't call session.close() somewhere, there must be a path in your code somewhere where that doesn't happen. Maybe you have close within the try portion of your code so if a different exception occurs it never gets to that close() call.

Can't know for sure since we can't see any of your code.

Mark
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!