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

      The code snipet:
      The line, where getting exception is marked in Red

      public static void relaseDBResources(Statement stmt, ResultSet rs) {
      try {
      if (stmt != null) {

      if (rs != null) {
      } catch (SQLException sqle) {

      The same code woking perfectly with Jboss-402.

      Can anyone help me in this regard. ?
      Thanks in advance!!.