Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1389

NullPointerException raised when calling isWrapperFor(...) on a closed connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • 1.4.9
    • JDBC
    • User Experience

    Description

      When calling Connection.isWrapperFor(...) on a connection which has been closed (i.e. returned to the pool, managed connection disassociated) previously, a NullPointerException is raised. The exception should be "Connection is not associated with a managed connection: ..."

      ... java.lang.NullPointerException
              at org.jboss.jca.adapters.jdbc.WrappedConnection.getWrappedObject(WrappedConnection.java:1914)
              at org.jboss.jca.adapters.jdbc.WrappedConnection.getWrappedObject(WrappedConnection.java:64)
              at org.jboss.jca.adapters.jdbc.JBossWrapper.isWrapperFor(JBossWrapper.java:68)
      

      The NPE obscures the usage issue.

      Attachments

        Issue Links

          Activity

            People

              thofman Tomas Hofman
              rhn-support-sfikes Stephen Fikes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: