[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - JBoss-4.0.4-GA and Hibernate-3.1.3
ShanR
do-not-reply at jboss.com
Mon Jul 17 08:14:43 EDT 2006
I am using Jboss-404-GA appliocation server and hibernate-3.1.3 for my appliction.
When closing the resultset getting the following exception
[12:34:55] - java.sql.SQLException: Already closed
[12:34:55] - at org.jboss.resource.adapter.jdbc.WrappedResultSet.close(Wrappe
dResultSet.java:178)
The code snipet:
The line, where getting exception is marked in Red
public static void relaseDBResources(Statement stmt, ResultSet rs) {
try {
if (stmt != null) {
stmt.close();
}
if (rs != null) {
rs.close();
}
} catch (SQLException sqle) {
sqle.printStackTrace();
}
}
The same code woking perfectly with Jboss-402.
Can anyone help me in this regard. ?
Thanks in advance!!.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958439#3958439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958439
More information about the jboss-user
mailing list