6 Replies Latest reply on Sep 21, 2006 4:29 PM by Rahul Prasad

    JBoss-4.0.4-GA and Hibernate-3.1.3

    Shan R Newbie

      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!!.