Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 46482 invoked from network); 19 Dec 2005 06:26:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Dec 2005 06:26:45 -0000 Received: (qmail 26196 invoked by uid 500); 19 Dec 2005 06:26:44 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 26166 invoked by uid 500); 19 Dec 2005 06:26:43 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 26146 invoked by uid 99); 19 Dec 2005 06:26:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2005 22:26:43 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [68.142.198.209] (HELO smtp110.sbc.mail.mud.yahoo.com) (68.142.198.209) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 18 Dec 2005 22:26:42 -0800 Received: (qmail 66457 invoked from network); 19 Dec 2005 06:26:21 -0000 Received: from unknown (HELO ?127.0.0.1?) (ddebrunner@sbcglobal.net@71.131.184.19 with plain) by smtp110.sbc.mail.mud.yahoo.com with SMTP; 19 Dec 2005 06:26:20 -0000 Message-ID: <43A65286.9010004@debrunners.com> Date: Sun, 18 Dec 2005 22:26:14 -0800 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en, de MIME-Version: 1.0 To: Derby Discussion Subject: Re: NPE in Derby References: In-Reply-To: X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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.