You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dan <da...@porkfriedrice.net> on 2004/03/21 02:05:37 UTC

something wrong with xinclude in 2.1.4?

Hello,

I have a setup using xinclude that I know should work but I get the 
following error when I run it:

ERROR   (2004-03-20) 19:25.16:809   [access] (/app/xincludetest) 
http8080-Processor23/CocoonServlet: Internal Cocoon Problem
org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
java.lang.RuntimeException: java.lang.NullPointerException
	at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:293)

...

Caused by: java.lang.RuntimeException: java.lang.NullPointerException
	at org.apache.xalan.transformer.TransformerImpl.run(Unknown Source)
	at 
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(Unknown 
Source)
	
...

and later:

FATAL_E (2004-03-20) 19:40.36:942   [core.xslt-processor] 
(/app/xincludetest) http8080-Processor25/TraxErrorHandler: Error in 
TraxTransformer: javax.xml.transform.TransformerException: 
java.lang.NullPointerException
javax.xml.transform.TransformerException: java.lang.NullPointerException


My pipeline is:

   <map:pipeline>
     <map:match pattern="xincludetest">
           <map:generate src="page.xml"/>
	  <map:transform type="xinclude"/>
           <map:serialize type="xml"/>
     </map:match>
   </map:pipeline>

and page.xml is:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<page xmlns:xi="http://www.w3.org/2001/XInclude">

<file file="file1.xml">
     <xi:include href="cocoon:/docs/file1.xml"/>
</file>

</page>

and i have an appropriate pipeline for accessing /docs/file1.xml

I'm running with Cocoon 2.1.4 under Tomcat 5.0.19, Windows.

Any suggestions as to what this could be would be appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: something wrong with xinclude in 2.1.4?

Posted by Joerg Heinicke <jo...@gmx.de>.
On 21.03.2004 02:05, Dan wrote:

> Hello,
> 
> I have a setup using xinclude that I know should work but I get the 
> following error when I run it:
> 
> ERROR   (2004-03-20) 19:25.16:809   [access] (/app/xincludetest) 
> http8080-Processor23/CocoonServlet: Internal Cocoon Problem

> FATAL_E (2004-03-20) 19:40.36:942   [core.xslt-processor] 
> (/app/xincludetest) http8080-Processor25/TraxErrorHandler: Error in 
> TraxTransformer: javax.xml.transform.TransformerException: 
> java.lang.NullPointerException
> javax.xml.transform.TransformerException: java.lang.NullPointerException

> and i have an appropriate pipeline for accessing /docs/file1.xml
> 
> I'm running with Cocoon 2.1.4 under Tomcat 5.0.19, Windows.
> 
> Any suggestions as to what this could be would be appreciated.

No problem that I'm aware of. Maybe endorsed libs? Try the Xalan 
environment check: http://xml.apache.org/xalan-j/faq.html#environmentcheck.

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org