• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jboss + Hibernate + unclosed Transaction Exception

 
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: 17278
6
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic