db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: NPE in Derby
Date Mon, 19 Dec 2005 06:26:14 GMT
Noel J. Bergman wrote:

> Any idea what would cause:
> 
> 17/12/05 11:26:36 ERROR mailstore: Error retrieving pending messages
> java.lang.NullPointerException
>         at
> org.apache.derby.impl.store.access.conglomerate.GenericConglomerateControlle
> r.fetch(Unknown Source)
>         at

[stack snipped]

> Our code is the loadPendingMessages method in JDBCSpoolRepository, which
> executes the listMessagesSQL query found in sqlResources.xml.
> 
> ref:
> http://svn.apache.org/repos/asf/james/server/trunk/src/java/org/apache/james
> /mailrepository/JDBCSpoolRepository.java
>      http://svn.apache.org/repos/asf/james/server/trunk/src/conf/sqlResource
> s.xml
> 
> I don't see anything the SQL statement that I would expect to cause a
> problem.  Internal race condition?

Most likely a race condition, a JDBC request to Derby should never
receive a NPE. I looked at the code briefly and nothing jumped out as
wrong. I'l see if I can reproduce it in my messing around with James.

Dan.


Mime
View raw message