cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/language/markup/xsp/java xsp.xsl
Date Wed, 26 Mar 2003 16:41:08 GMT
Marcus Crafter wrote:

>Hi Vadim,
>
>	Does the attached patch fix it ?
>

No. You forgot type cast :)
this.manager.release((Component)this.captureParser);

> I don't have a test case for the logic sheet.	
>

Take simple.xsp, replace fragment-variable with dom-variable:
   <capture:dom-variable name="page_part">
     <para>These 2 paragraphs were generated at the start of the XSP, 
and captured for insertion at the end.</para>

     <para>Brought to you by Cocoon at <xsp:expr>new 
Date()</xsp:expr>.</para>
   </capture:dom-variable>

Error I'm getting is:
-----------------------

Original Exception: java.lang.NullPointerException
	at org.apache.xalan.transformer.TransformerIdentityImpl.flushStartDoc(TransformerIdentityImpl.java:888)
	at org.apache.xalan.transformer.TransformerIdentityImpl.characters(TransformerIdentityImpl.java:1073)
	at org.apache.cocoon.xml.AbstractXMLPipe.characters(AbstractXMLPipe.java:159)
	at org.apache.cocoon.generation.AbstractServerPage.characters(AbstractServerPage.java:210)
	at org.apache.cocoon.www.samples.docs.samples.xsp.simple_xsp.generate(org.apache.cocoon.www.samples.docs.samples.xsp.simple_xsp:209)

-----------------------

Relevant lines from the source:
-----------------------
    // Create a DOMBuilder that will feed a DocumentFragment
    DocumentFragment fragment_N1001F =
      this.captureParser.createDocument().createDocumentFragment();
    DOMBuilder builder_N1001F = new DOMBuilder(fragment_N1001F);
    try {
      this.contentHandler = builder_N1001F;
      this.lexicalHandler = builder_N1001F;
     
        this.characters("\n     ");
-----------------------


Seems like an issue with DOMBuilder. Anybody has an idea how to fix this?

Vadim



Mime
View raw message