db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: Strange NPE in 10.1
Date Fri, 25 Jan 2008 19:25:29 GMT
Kathey Marsden wrote:
> I am working with a user who is getting a NullPointerException in 10.1.  
> Below is the Derby
> part of the trace:
> 
>   [1/24/08 14:25:59:741 EST] 0000002b SystemErr
> R java.lang.NullPointerException
> org.apache.derby.iapi.jdbc.BrokeredConnection.newBrokeredStatement(BrokeredConnection.java:448)

> 
> org.apache.derby.jdbc.XAStatementControl.<init>(XAStatementControl.java:62)   
 
> org.apache.derby.jdbc.EmbedXAConnection.wrapStatement(EmbedXAConnection.java:827)  
> 
> org.apache.derby.iapi.jdbc.BrokeredConnection.createStatement(BrokeredConnection.java:296)

> 
> ....
> 
> 
> Looking though at the code, I don't really see how we can get a NPE at 
> this point.
>    public BrokeredStatement 
> newBrokeredStatement(BrokeredStatementControl statementControl) throws 
> SQLException {
>        return new BrokeredStatement(statementControl, getJDBCLevel());  
> << line 448
>    }
> 
> I've been assured that we are not missing the top of the trace.  The 
> issue is intermittent and it happens in a complex environment for which 
> we don't have a simple repro at this point.  We've asked them to try 
> with JIT turned off in case it is a JIT issue.  Any other thoughts on 
> this error and how to debug?

Could it be DERBY-2142, which has a valid fix described.

Dan.

Mime
View raw message