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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to