I added this without any success (although this method is called):
/**
* Recycle the component
*/
public void recycle() {
System.out.println("recycle");
super.recycle();
this.current_xmlbase_uri = null;
this.base_xmlbase_uri = null;
this.xmlbase_element_name_stack.clear();
this.xmlbase_element_uri_stack.clear();
this.last_xmlbase_element_name = "";
}
The problem is that there are two instances of the transformer. On one
'setDocumentLocator' is called, on the other one not.
Thanks anyway.
JOERN_HEID
-----Ursprüngliche Nachricht-----
Von: Carsten Ziegeler [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 24. Juli 2001 15:26
An: [EMAIL PROTECTED]
Betreff: AW: [C2.0b2] Bug in XIncludeTransformer
I don't know the real problem for this, but the XIncludeTransformer
does not implement the recycle() method to reset the stack for
a new processing round.
If someone has the time to fix this, I would be very glad. (Resetting
the stack and setting all other instance variables to null).
Carsten
Open Source Group sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de mailto: [EMAIL PROTECTED]
================================================================
> -----Ursprüngliche Nachricht-----
> Von: Jörn Heid [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 24. Juli 2001 10:29
> An: Cocoon-Dev
> Betreff: [C2.0b2] Bug in XIncludeTransformer
>
>
> As I do not exactly know if it's a problem of my application (I
> use the same
> xconf but not the /cocoon webapp) I hope I get an answer so I can solve it
> or write a bug report. But for me it's quite a huge bug so I would have to
> go back to b1 to make it work again (I wrote fixed the XIncludeTransformer
> in b1 but now it's incompatible).
>
> The problem is a nullpointer exception in the last line of this:
>
> protected void processXIncludeElement(String href, String
> parse) throws
> SAXException,MalformedURLException,IOException {
> if (getLogger().isDebugEnabled()) {
> getLogger().debug("Processing XInclude element: href="+href+",
> parse="+parse);
> getLogger().debug("Base URI: " +
> current_xmlbase_uri.toExternalForm());
>
> The current_xmlbase_uri (btw, not the Java standard for
> attributes) is null.
> It's qzuite funny: If I delete the tmp dir in WEB-INF and start again, it
> works. When I hit reload the nullpointer exception occurs. If I hit reload
> again, it works again. And so on. So I put a System.out.println(this) into
> it and as I thought, there are two instances of the transformer. One is
> initialised - the other not.
> But the real problem is, if I do not delete the tmp dir and start
> the server
> again, I only get the exception.
>
> So, I think it's a problem of the component or the caching. Sorry, I'm not
> as far in C2 to know why.
>
> Please help.
>
> JOERN_HEID
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]