Thursday, 12 September 2013

jdbc connection error: not associated with a managed connection

jdbc connection error: not associated with a managed connection

My application is trowing the following exception:
java.sql.SQLException: Connection is not associated with a managed
connection.org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6@4fe91321

This is happening in production I'm not able to get this problem in
development and for that I'm not able to solve it.
The root of the exception is code line dbConn.prepareStatement(sql);

From what I was able to find in the web, the cause for this can be:
1. Over jdbc connection, a jboss connection is wrapped but the wrapper
is empty. The original jdbc connection inside is no longer there.
2. JDBC Connection is already closed and trying to work with close
connection is the reason why I'm getting this exception
3. The transaction manger detects transaction that is taking to long
then the transaction timeout,

So if someone can point me what is the problem because I'm not able to get
this problem in mine development environment.
Also what logs can I add that will help me detect the problem in
production - I'm using Java, JBoss, Postgres
I'have enable connection close monitoringa, and also to add is that the
issue is not consistent

No comments:

Post a Comment