cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Ulrich Niedermann <niederm...@isd.uni-stuttgart.de>
Subject Re: BUG: Engine.java version 1.30
Date Mon, 19 Jun 2000 19:13:08 GMT
"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 " : "")

Mime
View raw message