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

Solution Verified - Updated -

Issue

  • Application called Connection.close() on a connection managed by the JBoss EAP pool
  • Subsequently, an attempt made to call isWrapperFor(...) on that connection results in an NPE

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

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 7
  • IronJacamar 1.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content