You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Grzegorz Tańczyk <go...@polzone.pl> on 2005/03/03 22:42:53 UTC

Fwd: SAXParser.parse alternative?

This is a forwarded message
From: Grzegorz Tańczyk <go...@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


Re: SAXParser.parse alternative?

Posted by Jorg Heymans <jh...@domek.be>.
Upayavira wrote:
> Daniel McOrmond wrote:
> 
>> I guess I just don't like seeing two copies of the same thing in my 
>> inbox. ;)

you could subscribe through gmane to read the list. It makes reading the 
list just like reading a newsgroup. Now if only thunderbird had better 
newsgroup support <sigh>

cheers
Jorg


Re: SAXParser.parse alternative?

Posted by Upayavira <uv...@upaya.co.uk>.
Daniel McOrmond wrote:
> Ok. But, don't you guys also monitor the users@ list as well?
> 
> I guess I just don't like seeing two copies of the same thing in my inbox. ;)

Some do, not all. It is a lot of stuff to take in, hence it being worth 
going to the dev list if no resolution comes.

Regards, Upayavira

Re: SAXParser.parse alternative?

Posted by Daniel McOrmond <dm...@gmail.com>.
Ok. But, don't you guys also monitor the users@ list as well?

I guess I just don't like seeing two copies of the same thing in my inbox. ;)

-Daniel


On Fri, 04 Mar 2005 09:06:24 +0100, Jorg Heymans <jh...@domek.be> wrote:
> A lot of users bring their issues to dev@ when they don't get an answer
> on user@. This is quite allright, no need to play spamcop here :)

Re: SAXParser.parse alternative?

Posted by Jorg Heymans <jh...@domek.be>.
Daniel McOrmond wrote:
> Grzegorz,
> 
> The dev list is for discussion about development _of_ Cocoon itself,
> not development _using_ Cocoon.
> 
> Most members of the development team keep an eye on the users list, so
> you won't gain anything by spamming this dev list.

A lot of users bring their issues to dev@ when they don't get an answer 
on user@. This is quite allright, no need to play spamcop here :)

> 
> -Daniel
Jorg


Re: SAXParser.parse alternative?

Posted by Daniel McOrmond <dm...@gmail.com>.
Grzegorz,

The dev list is for discussion about development _of_ Cocoon itself,
not development _using_ Cocoon.

Most members of the development team keep an eye on the users list, so
you won't gain anything by spamming this dev list.

-Daniel