[
https://issues.apache.org/jira/browse/DERBY-3823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13119767#comment-13119767
]
Dag H. Wanvik commented on DERBY-3823:
--------------------------------------
Here is the NPE with line numbers:
java.lang.NullPointerException
at
org.apache.derby.impl.jdbc.EmbedPreparedStatement.getMetaData(EmbedPreparedStatement.java:1095)
at
org.apache.derby.impl.drda.DRDAConnThread.writeSQLDARD(DRDAConnThread.java:6608)
at
org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:1018)
at
org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:295)
this is the line in question in getMetaData:
if (gcDuringGetMetaData == null ||
gcDuringGetMetaData.equals(execp.getActivationClass().getName()) == false)
{
rMetaData = null;
gcDuringGetMetaData = execp.getActivationClass().getName(); //
<*******************
execp is just a cast of preparedStatement which has been accessed earlier in
the method, e.g. preparedStatement.isValid()
so either it has changed under our feet, or it is its activationClass that's
null...
> NullPointerException in stress.multi test
> -----------------------------------------
>
> Key: DERBY-3823
> URL: https://issues.apache.org/jira/browse/DERBY-3823
> Project: Derby
> Issue Type: Bug
> Components: Network Server
> Affects Versions: 10.3.3.1, 10.7.1.1
> Reporter: Kathey Marsden
> Labels: derby_triage10_5_2
> Attachments: derby.log
>
>
> I saw the following NPE in stress.multi running on 10.3 with derbyclient.
> java.lang.NullPointerException
> at
> org.apache.derby.impl.jdbc.EmbedPreparedStatement.getMetaData(Unknown
> Source)
> at org.apache.derby.impl.drda.DRDAConnThread.writeSQLDARD(Unknown
> Source
> )
> at org.apache.derby.impl.drda.DRDAConnThread.processCommands(Unknown
> Sou
> rce)
> at org.apache.derby.impl.drda.DRDAConnThread.run(Unknown Source)
> Cleanup action completed
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira