cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: appendChild
Date Tue, 16 May 2000 13:13:59 GMT
Are you explicitly calling appendChild in your code? If so, you must create 
the element(s) using the XSP "document" object, not some other document 
object.

If not, that's bizarre. Could you post your XSP page?


"Alain Tixier" <alain.tixier@laposte.net> wrote:
>I'm trying to migrate from cocoon 1.7.2 to 1.7.3. Everything is OK except
>for one document where I get the following error message whith 
>Xerces.1.0.3:
>
>org.apache.xerces.dom.DOMExceptionImpl: DOM005 Wrong document
>         at java.lang.Throwable.fillInStackTrace(Native Method)
>         at java.lang.Throwable.fillInStackTrace(Compiled Code)
>         at java.lang.Throwable.(Compiled Code)
>         at java.lang.Exception.(Compiled Code)
>         at java.lang.RuntimeException.(RuntimeException.java:47)
>         at org.w3c.dom.DOMException.(DOMException.java:33)
>         at org.apache.xerces.domx.DOMException.(DOMException.java:83)
>         at 
>org.apache.xerces.dom.DOMExceptionImpl.(DOMExceptionImpl.java:119)
>         at
>org.apache.xerces.dom.NodeContainer.internalInsertBefore(Compiled Code)
>         at org.apache.xerces.dom.NodeContainer.insertBefore(Compiled Code)
>         at org.apache.xerces.dom.NodeContainer.appendChild(Compiled Code)
>         at _app._apache._htdocs._xml._flv03i_PI.populateDocument(Compiled
>Code)
>         at
>org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
>         at org.apache.cocoon.processor.xsp.XSPProcessor.process(Compiled 
>Code)
>         at org.apache.cocoon.Engine.handle(Compiled Code)
>         at org.apache.cocoon.Cocoon.service(Cocoon.java:166)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at
>org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
>         at org.apache.jserv.JServConnection.run(Compiled Code)
>         at java.lang.Thread.run(Compiled Code)
>
>with Xerces.1.0.4, the message is only:
>
>java.lang.NullPointerException
>         at
>org.apache.xerces.dom.ChildAndParentNode.internalInsertBefore(Compiled 
>Code)
>         at org.apache.xerces.dom.ChildAndParentNode.insertBefore(Compiled
>Code)
>         at org.apache.xerces.dom.NodeImpl.appendChild(Compiled Code)
>         at _app._apache._htdocs._xml._flv03i_PI.populateDocument(Compiled
>Code)
>         at
>org.apache.cocoon.processor.xsp.XSPPage.getDocument(XSPPage.java:96)
>         at org.apache.cocoon.processor.xsp.XSPProcessor.process(Compiled 
>Code)
>         at org.apache.cocoon.Engine.handle(Compiled Code)
>         at org.apache.cocoon.Cocoon.service(Cocoon.java:166)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
>         at org.apache.jserv.JServConnection.processRequest(Compiled Code)
>         at org.apache.jserv.JServConnection.run(Compiled Code)
>         at java.lang.Thread.run(Compiled Code)
>
>Any idea ?
>Thank you for your help.
>
>Alain Tixier
>alain.tixier@laposte.net
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>For additional commands, e-mail: cocoon-users-help@xml.apache.org
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Mime
View raw message