cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Tańczyk <golia...@polzone.pl>
Subject Fwd: SAXParser.parse alternative?
Date Thu, 03 Mar 2005 21:42:53 GMT
This is a forwarded message
From: Grzegorz Tańczyk <goliatus@polzone.pl>
To: users@cocoon.apache.org
Date: Wednesday, March 2, 2005, 1:31:21 AM
Subject: SAXParser.parse alternative?

===8<==============Original message text===============
Hello!

  I'm trying to code a simple custom generator and I have problem
  which I can't fix.

  Main functionaliity of this generator is to get text from external resource,
  parse it and put it into content handler. But when I use:

  (SAXParser)parser.parse(new InputSource(new StringReader("<Element></Element>")),
this.contentHandler);

  I got exception:
java.lang.RuntimeException
        at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3364)
        at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.ja
va:427)
        at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)
        at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:549)
        at mycustomgenerator.generate(mycustomgenerator.java:123)
        [...]

  Is this problem common for someone? How to fix it or walk around it?

  Maybe this could be some clue: I have NullPointerException if I switch to XSLTC.

  Thanks for any help.

-- 
Best regards,
 Grzegorz                          mailto:goliatus@polzone.pl


===8<===========End of original message text===========



-- 
Best regards,
 Grzegorz                            mailto:goliatus@polzone.pl


Mime
View raw message