Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 47032 invoked by uid 500); 3 Feb 2003 11:32:13 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 47018 invoked from network); 3 Feb 2003 11:32:12 -0000 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.0.2 Date: Mon, 03 Feb 2003 13:31:49 +0200 From: "Derek Hohls" To: Subject: Battling with null pointer exception Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_134C1E28.55344F08" X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (score=0.8, required 9, SPAM_PHRASE_00_01) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=_134C1E28.55344F08 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I am looking for help tryhing to track down the cause of null pointer exception (my worst type of error to solve). I have an XSP page, containing ESQL; it works fine on my test machine which has a relatively small subset of data, but gives errors on the production machine with the full database. Any general or specific ideas on how to solve this would be welcome! The error is:
Original exception : java.lang.NullPointerException
 at
org.apache.cocoon.components.language.markup.xsp.EsqlQuery.hasGroupingVarChanged(EsqlQuery.java:266)
 at
org.apache.cocoon.www.stell.reports.reportA_xsp.generate(/usr/local/jakarta-tomcat-4.0.4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/stell/reports/reportA_xsp.java:2733)
 
and the section of code is:
 
     if (_esql_query.getMaxRows() != -1 && _esql_query.getCurrentRow()
- _esql_query.getSkipRows() == _esql_query.getMaxRows()) \{
       _esql_query.setKeepGoing( false );
     \} else \{\tab //if not, advance normally
       _esql_query.setKeepGoing( _esql_query.nextRow() );  <-- this is
line 2733
     \}
 
 

-- 
This message has been scanned for viruses and dangerous content by 
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.  
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and 
Internet Policy."


--=_134C1E28.55344F08
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit






I am looking for help tryhing to track down the cause of 
null pointer exception (my worst type of error to solve).
 
I have an XSP page, containing ESQL; it works fine on my
test machine which has a relatively small subset of data,
but gives errors on the production machine with the full
database.
 
Any general or specific ideas on how to solve this would
be welcome!
 
The error is:
 
<pre>Original exception : java.lang.NullPointerException
 at org.apache.cocoon.components.language.markup.xsp.EsqlQuery.hasGroupingVarChanged(EsqlQuery.java:266)
 at org.apache.cocoon.www.stell.reports.reportA_xsp.generate(/usr/local/jakarta-tomcat-4.0.4/work/Standalone/localhost/cocoon/cocoon-files/org/apache/cocoon/www/stell/reports/reportA_xsp.java:2733)
 
and the section of code is:
 
     if (_esql_query.getMaxRows() != -1 && _esql_query.getCurrentRow() - _esql_query.getSkipRows() == _esql_query.getMaxRows()) \{
       _esql_query.setKeepGoing( false );
     \} else \{\tab //if not, advance normally
       _esql_query.setKeepGoing( _esql_query.nextRow() );  <-- this is line 2733
     \}
 
 

--
This message has been scanned for viruses and dangerous content by
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and
Internet Policy." --=_134C1E28.55344F08--