Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 27779 invoked from network); 30 Nov 2000 21:52:35 -0000 Received: from unknown (HELO akira.webslingerZ.com) (216.27.73.2) by locus.apache.org with SMTP; 30 Nov 2000 21:52:35 -0000 Received: by akira.webslingerZ.com (Postfix, from userid 501) id 8987B13084; Thu, 30 Nov 2000 16:53:47 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by akira.webslingerZ.com (Postfix) with ESMTP id 257426145 for ; Thu, 30 Nov 2000 16:53:47 -0500 (EST) Date: Thu, 30 Nov 2000 16:53:47 -0500 (EST) From: Donald Ball X-Sender: balld@localhost.localdomain To: cocoon-users@xml.apache.org Subject: Re: [C1.8.1-dev] NullPointerException in ESQL code In-Reply-To: <20001130112207.14462.qmail@web2004.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Thu, 30 Nov 2000, Drasko Kokic wrote: > Hi *, > > I am getting often this error: > > java.lang.NullPointerException > at > _D_._kodra._test._case_007.populateDocument(_case_007.java:349) > > the line where it breaks is: > > if(!_esql_connection.connection.getAutoCommit()) { > > in the following block: > > if (_esql_queries.empty()) { > _esql_query = null; > } else { > _esql_query = (EsqlQuery)_esql_queries.pop(); > } > > > } finally { > if(!_esql_connection.connection.getAutoCommit()) > { > _esql_connection.connection.commit(); > } > > > _esql_pool.releaseConnection(_esql_connection.db_connection); tell me - is it always the case when you get these NPEs that an exception has occured, or does it also happen when a connection is closing normally? - donald