title: SQL exception occurs when trying to close the connection in finally clause
body: <p>I have some OAF code inside that i am initiating sql connection but when i am trying to close it , it throws sql exception . here is the code.</p>
  
  <pre><code>    try
      {
          conn = 
          (OracleConnection)oadbtransactionimpl.getJdbcConnection();
          String queryForEmpty = 
              "select ... query here"; 
          projectDetailsStatment = 
                  conn.prepareStatement(queryForEmpty);
          projectDetailsStatment.setString(1,sprojectid);
          ResultSet rs = projectDetailsStatment.executeQuery();
  
      }
      catch(SQLException e)
     {
         String sqlErrMsg = e.getMessage();
         throw new OAException((new StringBuilder()).append("handle exception here:").append(sqlErrMsg).toString(), (byte)0);
     }
     finally
     {
        conn.close(); // throws exception here
     }
  </code></pre>