Re: setup() called twice in one request

2006-01-26 Thread Tilman Rassy
Hello, On Wednesday 25 January 2006 16:22, Carsten Ziegeler wrote: > We have fixed several problems/bugs in the sitemap source and pipeline > implementations after the 2.1.3 release. So I think the best thing for > you is to test your test case with the most recent version (2.1.8) and > see if thi

Re: setup() called twice in one request

2006-01-25 Thread Jean-Baptiste Quenot
* Carsten Ziegeler: > > From a quick glance at the stack traces I think this might be a bug in > > the sitemap source implementation when getInputStream() is used. Is the problem related to the following bug: Calling SitemapSource.getInputStream() twice http://issues.apache.org/jira/browse/COCOO

Re: setup() called twice in one request

2006-01-25 Thread Carsten Ziegeler
We have fixed several problems/bugs in the sitemap source and pipeline implementations after the 2.1.3 release. So I think the best thing for you is to test your test case with the most recent version (2.1.8) and see if this problem still exists. Carsten Ralph Goers wrote: > OK. I have no idea how

Re: setup() called twice in one request

2006-01-25 Thread Ralph Goers
OK. I have no idea how to get the source for xmlutil-1.0-dev. I was looking at the current source and the 2.1.7 source (the oldest I have) and it looks to me that if there is a problem it is most likely in XSLTProcessorImpl. However, I'd suggest you look at SitemapSource and AbstractProcessin

Re: setup() called twice in one request

2006-01-25 Thread Tilman Rassy
Hello Ralph, On Tuesday 24 January 2006 23:14, Ralph Goers wrote: > Can you send the source for the DocumentGenerator? I'd love to see it. Yes, of course. Shall I send it to the dev list or to your private address? (The source is about 400 lines long.) On Wednesday 25 January 2006 09:11, Ralph

Re: setup() called twice in one request

2006-01-25 Thread Ralph Goers
What version of Cocoon is this? The source for excalibur xmlutils 2.1 and 1.0 doesn't match the line numbers in your stack traces. What version is in your lib/core? Ralph Tilman Rassy wrote: Hello, On Tuesday 24 January 2006 13:32, Carsten Ziegeler wrote: Tilman Rassy wrote: Hel

Re: setup() called twice in one request

2006-01-24 Thread Ralph Goers
Can you send the source for the DocumentGenerator? I'd love to see it. Ralph Tilman Rassy said: > Hello, > > On Tuesday 24 January 2006 13:32, Carsten Ziegeler wrote: >> Tilman Rassy wrote: >> > Hello Carsten, >> > >> > On Monday 23 January 2006 12:17, Carsten Ziegeler wrote: >> >> Can you prov

Re: setup() called twice in one request

2006-01-24 Thread Carsten Ziegeler
>From a quick glance at the stack traces I think this might be a bug in the sitemap source implementation when getInputStream() is used. Carsten Tilman Rassy wrote: > Hello, > > On Tuesday 24 January 2006 13:32, Carsten Ziegeler wrote: >> Tilman Rassy wrote: >>> Hello Carsten, >>> >>> On Monday 2

Re: setup() called twice in one request

2006-01-24 Thread Tilman Rassy
Hello, On Tuesday 24 January 2006 14:29, Giacomo Pati wrote: > > Is there a way to create a stack trace and insert it into the logs? I > > could do something like > > > > try > > { > >throw new MyExcpetion(); > > } > > catch (MyException myExcpetion) > > { > >this.getLogger.debug( /* ge

Re: setup() called twice in one request

2006-01-24 Thread Tilman Rassy
Hello, On Tuesday 24 January 2006 13:32, Carsten Ziegeler wrote: > Tilman Rassy wrote: > > Hello Carsten, > > > > On Monday 23 January 2006 12:17, Carsten Ziegeler wrote: > >> Can you provide a stack trace for the two calls of the setup() method, > >> so we can see from where this method is called

Re: setup() called twice in one request

2006-01-24 Thread Ralph Goers
You can also just do new Throwable() and then print it. Carsten Ziegeler wrote: Tilman Rassy wrote: Hello Carsten, On Monday 23 January 2006 12:17, Carsten Ziegeler wrote: Can you provide a stack trace for the two calls of the setup() method, so we can see from where this method is

Re: setup() called twice in one request

2006-01-24 Thread Giacomo Pati
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 24 Jan 2006, Tilman Rassy wrote: Date: Tue, 24 Jan 2006 13:15:01 +0100 From: Tilman Rassy <[EMAIL PROTECTED]> Reply-To: dev@cocoon.apache.org To: dev@cocoon.apache.org Subject: Re: setup() called twice in one request Hello Carste

Re: setup() called twice in one request

2006-01-24 Thread Carsten Ziegeler
Tilman Rassy wrote: > Hello Carsten, > > On Monday 23 January 2006 12:17, Carsten Ziegeler wrote: > >> Can you provide a stack trace for the two calls of the setup() method, >> so we can see from where this method is called. > > Is there a way to create a stack trace and insert it into the logs?

Re: setup() called twice in one request

2006-01-24 Thread Tilman Rassy
Hello Carsten, On Monday 23 January 2006 12:17, Carsten Ziegeler wrote: > Can you provide a stack trace for the two calls of the setup() method, > so we can see from where this method is called. Is there a way to create a stack trace and insert it into the logs? I could do something like try

Re: setup() called twice in one request

2006-01-23 Thread Carsten Ziegeler
Tilman Rassy schrieb: > On Monday 23 January 2006 09:38, Carsten Ziegeler wrote: >> Tilman Rassy wrote: >>> Hello, >>> >>> On Thursday 19 January 2006 23:43, Joerg Heinicke wrote: On 19.01.2006 19:01, Tilman Rassy wrote: > we discovered that the setup() method of a custom generator is some

Re: setup() called twice in one request

2006-01-23 Thread Tilman Rassy
On Monday 23 January 2006 09:38, Carsten Ziegeler wrote: > Tilman Rassy wrote: > > Hello, > > > > On Thursday 19 January 2006 23:43, Joerg Heinicke wrote: > >>On 19.01.2006 19:01, Tilman Rassy wrote: > >>>we discovered that the setup() method of a custom generator is sometimes > >>>called twice in

Re: setup() called twice in one request

2006-01-23 Thread Carsten Ziegeler
Tilman Rassy wrote: > Hello, > > On Thursday 19 January 2006 23:43, Joerg Heinicke wrote: > >>On 19.01.2006 19:01, Tilman Rassy wrote: >> >>>we discovered that the setup() method of a custom generator is sometimes >>>called twice in one request. >> >>Are you sure that it is only one request. For

Re: setup() called twice in one request

2006-01-20 Thread Tilman Rassy
On Friday 20 January 2006 10:34, Carsten Ziegeler wrote: > Tilman Rassy wrote: > > I think we can change our code so that multiple setup() calls are not a > > problem any longer. The reasons why I posted anyway are: If there is a > > bug, the Cocoon developers might want to know about it. Secondly,

Re: setup() called twice in one request

2006-01-20 Thread Tilman Rassy
On Friday 20 January 2006 01:22, Ralph Goers wrote: > Joerg Heinicke wrote: > > On 19.01.2006 19:01, Tilman Rassy wrote: > >> Our XSL stylesheets usually include other stylesheets. As far as I > >> know, the caching mechanism takes this into account. May the problem > >> have something to do with t

Re: setup() called twice in one request

2006-01-20 Thread Tilman Rassy
Hello, On Thursday 19 January 2006 23:43, Joerg Heinicke wrote: > On 19.01.2006 19:01, Tilman Rassy wrote: > > we discovered that the setup() method of a custom generator is sometimes > > called twice in one request. > > Are you sure that it is only one request. For example using the Acrobat > Rea

Re: setup() called twice in one request

2006-01-20 Thread Carsten Ziegeler
Tilman Rassy wrote: > I think we can change our code so that multiple setup() calls are not a > problem any longer. The reasons why I posted anyway are: If there is a bug, > the Cocoon developers might want to know about it. Secondly, we do a lot of > Cocoon programming in our project, and it wo

Re: setup() called twice in one request

2006-01-19 Thread Ralph Goers
Joerg Heinicke wrote: On 19.01.2006 19:01, Tilman Rassy wrote: Our XSL stylesheets usually include other stylesheets. As far as I know, the caching mechanism takes this into account. May the problem have something to do with that? Are you including the other stylesheets using a cocoon p

Re: setup() called twice in one request

2006-01-19 Thread Joerg Heinicke
On 19.01.2006 19:01, Tilman Rassy wrote: we discovered that the setup() method of a custom generator is sometimes called twice in one request. Are you sure that it is only one request. For example using the Acrobat Reader in IE results in two requests. in fact, it seem to happens only if th

Re: setup() called twice in one request

2006-01-19 Thread Tilman Rassy
On Thursday 19 January 2006 19:13, Jean-Baptiste Quenot wrote: > * Tilman Rassy: > > we discovered that the setup() method of a custom generator is > > sometimes called twice in one request. > > Hello, > > Assuming it is the case, why is it a problem? Can you elaborate > on that? Thank you fo

Re: setup() called twice in one request

2006-01-19 Thread Jean-Baptiste Quenot
* Tilman Rassy: > we discovered that the setup() method of a custom generator is > sometimes called twice in one request. Hello, Assuming it is the case, why is it a problem? Can you elaborate on that? -- Jean-Baptiste Quenot http://caraldi.com/jbq/

setup() called twice in one request

2006-01-19 Thread Tilman Rassy
Hello, we discovered that the setup() method of a custom generator is sometimes called twice in one request. We saw in the logs that the following methods were called in that order: setup getKey getValidity getValidity setup ... This does not always happen; in fact, it seem to happens only if t