cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dafang Zhang <dafang.zh...@wcom.com>
Subject C1.8.2 XInclude Processor failed on URL, but fine with local file uri
Date Thu, 15 Feb 2001 21:01:32 GMT
Hi,

I'm using XInclude processor in either xsp page or non-xsp xml:

1. Fine with file uri, even relative path:
   <xinclude:include xinclude:parse="xml"
                     xinclude:href="../../../usr/bar/foo.xml"/>

2. Failed on a URL (it _IS_ a valid url):
   <xinclude:include xinclude:parse="xml"
                     xinclude:href="http://hostname/foo.xml"/>

After tracking down to the source code, the included_document variable in
line 396 is null:

line 396: result =
document.importNode(included_document.getDocumentElement(),true);

java.lang.NullPointerException
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.processXIncludeElement(XIncludeProcessor.java:396)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor$XIncludeProcessorWork
er.process(XIncludeProcessor.java:227)
	at
org.apache.cocoon.processor.xinclude.XIncludeProcessor.process(XIncludeProce
ssor.java:139)
	at org.apache.cocoon.Engine.handle(Engine.java:384)
	at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
	at com.livesoftware.jrun.JRun.runServlet(JRun.java:321)
	at com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:116)
	at
com.livesoftware.jrun.service.web.JRunWebServiceHandler.handleOutput(JRunWeb
ServiceHandler.java:266)
	at
com.livesoftware.jrun.service.web.JRunWebServiceHandler.handleRequest(JRunWe
bServiceHandler.java:234)
	at
com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.ja
va:96)


Thanks.
Dafang


Mime
View raw message