[jboss-jira] [JBoss JIRA] (JBJCA-1389) NullPointerException raised when calling isWrapperFor(...) on a closed connection
Stephen Fikes (Jira)
issues at jboss.org
Tue Apr 30 12:38:00 EDT 2019
[ https://issues.jboss.org/browse/JBJCA-1389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephen Fikes updated JBJCA-1389:
---------------------------------
Description:
When calling {{Connection.isWrapperFor(...)}} on a connection which has been closed previously, a {{NullPointerException}} is raised. The exception should be "Connection is not associated with a managed connection: ..."
{code}
... 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)
{code}
The NPE obscures the usage issue.
was:
When calling {{Connection.isWrapperFor(...)}} on a connection which has been closed previously, a {{NullPointerException}} is raised. The exception should be "Connection is not associated with a managed connection: ..."
{code}
... 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)
{code}
> NullPointerException raised when calling isWrapperFor(...) on a closed connection
> ---------------------------------------------------------------------------------
>
> Key: JBJCA-1389
> URL: https://issues.jboss.org/browse/JBJCA-1389
> Project: IronJacamar
> Issue Type: Bug
> Components: JDBC
> Affects Versions: 1.4.9
> Reporter: Stephen Fikes
> Priority: Major
>
> When calling {{Connection.isWrapperFor(...)}} on a connection which has been closed previously, a {{NullPointerException}} is raised. The exception should be "Connection is not associated with a managed connection: ..."
> {code}
> ... 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)
> {code}
> The NPE obscures the usage issue.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list