cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: BUG: Engine.java version 1.30
Date Mon, 19 Jun 2000 21:38:29 GMT
Hans Ulrich Niedermann wrote:
> 
> "Jerome Jacobsen" <jerome.jacobsen@gentootech.com> writes:
> 
> > Problem:
> > When running cocoon from the command line a NullPointerException is thrown.
> > Output is shown below for the sample 'hello'.
> >
> > C:\cocoon-1.7.4\myprojects\hello>java org.apache.cocoon.Cocoon -p
> > C:\cocoon-1.7.4\conf\cocoon.properties hello-page.xml hello-page.html
> > java.lang.NullPointerException
> >         at org.apache.cocoon.Engine.handle(Engine.java)
> >         at org.apache.cocoon.EngineWrapper.handle(EngineWrapper.java)
> >         at org.apache.cocoon.Cocoon.main(Cocoon.java)
> >
> > This problem does not appear in Engine.java version 1.29.
> 
> Some side effect of my last offline patch and some not-so-clean old
> code somewhere else. Patch against Engine.java 1.30 is attached.
> 
> Please note that just now I cannot test the resulting cocoon.jar in
> online mode, but for offline mode the patch works.
> 
> Uli
> 
> *** src/org/apache/cocoon/Engine.java~  Fri Jun  9 00:36:16 2000
> --- src/org/apache/cocoon/Engine.java   Mon Jun 19 20:58:04 2000
> ***************
> *** 367,373 ****
>               // if verbose mode is on the the output type allows it
>                         // and the HTTP request isn't a HEAD
>               // print some processing info as a comment
> !             if (VERBOSE && (page.isText()) && !request.getMethod().equals("HEAD"))
{
>                   time = System.currentTimeMillis() - time;
>                   out.println("<!-- This page was served "
>                       + (page.isCached() ? "from cache " : "")
> --- 367,373 ----
>               // if verbose mode is on the the output type allows it
>                         // and the HTTP request isn't a HEAD
>               // print some processing info as a comment
> !             if (VERBOSE && (page.isText()) && !"HEAD".equals(request.getMethod()))
{
>                   time = System.currentTimeMillis() - time;
>                   out.println("<!-- This page was served "
>                       + (page.isCached() ? "from cache " : "")

Thanks, I'll fix this right away.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message