Subject | Re: IllegalStateException (JBoss, Timeout) |
---|---|
Author | tdtappe |
Post date | 2009-05-28T11:09:03Z |
Hi Roman,
so far I couldn't build a simple sample application that shows this behaviour. But I found out that commenting line #285 in AbstractPingablePooledConnection.java seems to "solve" the problem.
Maybe "someone" in the JBoss environment is closing an already closed connection. Maybe it's possible to make the code a bit more robust for scenarios like this? What do you think? Maybe via some configuration value!?
--Heiko
protected void internalClose() throws SQLException {
/* checkValidity(); */
if (currentConnection != null)
currentConnection.deallocate();
jdbcConnection.close();
statements.clear();
invalidate();
}
so far I couldn't build a simple sample application that shows this behaviour. But I found out that commenting line #285 in AbstractPingablePooledConnection.java seems to "solve" the problem.
Maybe "someone" in the JBoss environment is closing an already closed connection. Maybe it's possible to make the code a bit more robust for scenarios like this? What do you think? Maybe via some configuration value!?
--Heiko
protected void internalClose() throws SQLException {
/* checkValidity(); */
if (currentConnection != null)
currentConnection.deallocate();
jdbcConnection.close();
statements.clear();
invalidate();
}