You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2008/05/28 16:03:44 UTC
[jira] Created: (DERBY-3695) NullPointerException when invoking
statement event listeners if one of the listeners is null
NullPointerException when invoking statement event listeners if one of the listeners is null
--------------------------------------------------------------------------------------------
Key: DERBY-3695
URL: https://issues.apache.org/jira/browse/DERBY-3695
Project: Derby
Issue Type: Bug
Components: JDBC, Network Client
Affects Versions: 10.4.1.3
Reporter: Knut Anders Hatlen
Assignee: Knut Anders Hatlen
Priority: Minor
If PooledConnection.addStatementEventListener() is called with a null argument, the client driver throws a NullPointerException when the listeners are invoked. Embedded does not throw an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (DERBY-3695) NullPointerException when invoking
statement event listeners if one of the listeners is null
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-3695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen closed DERBY-3695.
-------------------------------------
Resolution: Fixed
Fix Version/s: 10.5.0.0
10.4.1.4
Merged to 10.4 and committed revision 664708.
I'm closing the issue since the remaining work can be performed as part of DERBY-3307.
> NullPointerException when invoking statement event listeners if one of the listeners is null
> --------------------------------------------------------------------------------------------
>
> Key: DERBY-3695
> URL: https://issues.apache.org/jira/browse/DERBY-3695
> Project: Derby
> Issue Type: Bug
> Components: JDBC, Network Client
> Affects Versions: 10.4.1.3
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Fix For: 10.4.1.4, 10.5.0.0
>
> Attachments: d3695.diff, d3695.stat, repro.diff
>
>
> If PooledConnection.addStatementEventListener() is called with a null argument, the client driver throws a NullPointerException when the listeners are invoked. Embedded does not throw an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-3695) NullPointerException when invoking
statement event listeners if one of the listeners is null
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-3695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-3695:
--------------------------------------
Attachment: d3695.stat
d3695.diff
The attached patch adds a null check in Client{XA,Pooled}Connection40.addStatementEventListener() and makes the test case in repro.diff pass.
> NullPointerException when invoking statement event listeners if one of the listeners is null
> --------------------------------------------------------------------------------------------
>
> Key: DERBY-3695
> URL: https://issues.apache.org/jira/browse/DERBY-3695
> Project: Derby
> Issue Type: Bug
> Components: JDBC, Network Client
> Affects Versions: 10.4.1.3
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Attachments: d3695.diff, d3695.stat, repro.diff
>
>
> If PooledConnection.addStatementEventListener() is called with a null argument, the client driver throws a NullPointerException when the listeners are invoked. Embedded does not throw an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-3695) NullPointerException when invoking
statement event listeners if one of the listeners is null
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-3695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-3695:
--------------------------------------
Attachment: repro.diff
Attaching patch which adds a JUnit test case that reproduces the problem.
> NullPointerException when invoking statement event listeners if one of the listeners is null
> --------------------------------------------------------------------------------------------
>
> Key: DERBY-3695
> URL: https://issues.apache.org/jira/browse/DERBY-3695
> Project: Derby
> Issue Type: Bug
> Components: JDBC, Network Client
> Affects Versions: 10.4.1.3
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Attachments: repro.diff
>
>
> If PooledConnection.addStatementEventListener() is called with a null argument, the client driver throws a NullPointerException when the listeners are invoked. Embedded does not throw an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-3695) NullPointerException when invoking
statement event listeners if one of the listeners is null
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-3695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-3695:
--------------------------------------
Derby Info: [Patch Available]
All the regression tests passed with d3695.diff.
> NullPointerException when invoking statement event listeners if one of the listeners is null
> --------------------------------------------------------------------------------------------
>
> Key: DERBY-3695
> URL: https://issues.apache.org/jira/browse/DERBY-3695
> Project: Derby
> Issue Type: Bug
> Components: JDBC, Network Client
> Affects Versions: 10.4.1.3
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Attachments: d3695.diff, d3695.stat, repro.diff
>
>
> If PooledConnection.addStatementEventListener() is called with a null argument, the client driver throws a NullPointerException when the listeners are invoked. Embedded does not throw an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-3695) NullPointerException when invoking
statement event listeners if one of the listeners is null
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-3695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-3695:
--------------------------------------
Derby Info: (was: [Patch Available])
Committed revision 661292.
I noticed that addConnectionEventListener() has the same mismatch between embedded and client, so I'll leave the issue open until that has been fixed too.
> NullPointerException when invoking statement event listeners if one of the listeners is null
> --------------------------------------------------------------------------------------------
>
> Key: DERBY-3695
> URL: https://issues.apache.org/jira/browse/DERBY-3695
> Project: Derby
> Issue Type: Bug
> Components: JDBC, Network Client
> Affects Versions: 10.4.1.3
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Minor
> Attachments: d3695.diff, d3695.stat, repro.diff
>
>
> If PooledConnection.addStatementEventListener() is called with a null argument, the client driver throws a NullPointerException when the listeners are invoked. Embedded does not throw an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.