cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tsoloane Moahloli <tsolo...@zen.co.za>
Subject Formatter funnies!!!
Date Mon, 03 Apr 2000 12:27:08 GMT
Hi all,

I get the following error when removing the xslt processor from my
processor list in my xml file.  I do this because I need to see the XML
that is generated by the previous DCP process in order to tweak my
stylesheets.

java.lang.NullPointerException:
                          at
org.apache.xml.serialize.BaseMarkupSerializer.escape(BaseMarkupSerializer.java:1287)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.characters(BaseMarkupSerializer.java:902)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:732)

                          at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:464)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:754)

                          at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:464)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:754)

                          at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:464)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:754)

                          at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:464)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:754)

                          at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:464)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:754)

                          at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:464)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:754)

                          at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:464)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:754)

                          at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:464)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:754)

                          at
org.apache.xml.serialize.XMLSerializer.serializeElement(XMLSerializer.java:464)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:754)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(BaseMarkupSerializer.java:795)

                          at
org.apache.xml.serialize.BaseMarkupSerializer.serialize(BaseMarkupSerializer.java:385)

                          at
org.apache.cocoon.formatter.XMLFormatter.format(XMLFormatter.java:79)
                          at
org.apache.cocoon.Engine.handle(Engine.java:296)
                          at
org.apache.cocoon.Cocoon.service(Cocoon.java:145)
                          at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
                          at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)

                          at
org.apache.jserv.JServConnection.run(JServConnection.java:188)
                          at java.lang.Thread.run(Thread.java)

Here is the appropriate XML file.

<?xml version="1.0"?>
<?xml-stylesheet href="ShowArticle.xsl" type="text/xsl"?>
<?cocoon-format type="text/xml"?>
<?cocoon-process type="dcp"?>
<!--<?cocoon-process type="xslt"?>-->

<document >
<?dcp-object name="util" language="java" code="zen.publisher.Article"?>
<?dcp-object name="cats" language="java" code="zen.publisher.Category"?>

<topcategories>
<?dcp-content method="cats.getList" parentID="NULL" link="ShowArticle.xml" deep="true"
bogusTag="false"?>
</topcategories>
<subcategories>
<?dcp-content method="cats.getList" link="ShowArticle.xml" deep="false" category="school"
bogusTag="false"?></subcategories>
<articles>
<?dcp-content method="cats.ArticleList" bogusTag="false" category="school"?>
</articles>
<?dcp-content method="util.getArticle" bogusTag="false"?>
</document>

Thanks for any comments.

Tsoloane

--
Dream what you want to dream; go where you want to go; be what you want to be;
because you have only one life and one chance to do all the things you want to do.

Tsoloane Moahloli
Zen Computing (Pty) Ltd.
tsoloane@zen.co.za   tel:(011) 706-7504




Mime
View raw message