You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sven Kuenzler <sv...@tzi.de> on 2000/03/08 11:43:30 UTC

Nullpointer Exception when is omitted

Hello

we are using Cocoon 1.7 for our homepage.

When we forget to add the line

<?cocoon-process type="xslt"?>

to an xml document, cocoon  generates the following error:

---
Cocoon 1.7

     Error found handling the request.

     java.lang.NullPointerException: 
             at
org.apache.xml.serialize.BaseMarkupSerializer.printDoctypeURL(BaseMarkupSerializer.java:1261)
             at
org.apache.xml.serialize.BaseMarkupSerializer.unparsedEntityDecl(BaseMarkupSerializer.java:638)
             at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:773)
             at
org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer.java:385)
             at
org.apache.cocoon.formatter.HTMLFormatter.format(HTMLFormatter.java:80)
             at org.apache.cocoon.Engine.handle(Engine.java:296)
[...]

---

This error message is hard to understand, it would be nice if Cocoon
would say what it was missing.

Is there a way to configure Cocoon so that it takes xslt processing as
default?

	Regards, Sven....