• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection already associated with transaction

 
Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody has any idea about this type of exception

java.lang.IllegalStateException: Connection already associated with transaction

I am getting this exception when i try to do some database manupulation in a bean method.

Cheers,
Rahul
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may be trying to use an instance or class variable for the Connection. You must always use a local variable for this, and close the Connection in the same method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!