NullPointerException raised when calling isWrapperFor(...) on a closed connection in JBoss EAP
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.