This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection already associated with transaction  RSS feed

 
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!