cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: setup() called twice in one request
Date Tue, 24 Jan 2006 13:29:37 GMT
-----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 <rassy@math.TU-Berlin.DE>
> Reply-To: dev@cocoon.apache.org
> To: dev@cocoon.apache.org
> Subject: Re: setup() called twice in one request
> 
> 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
>  {
>    throw new MyExcpetion();
>  }
> catch (MyException myExcpetion)
>  {
>    this.getLogger.debug( /* get stack trace from myException */ );
>  }

You don't have to throw it. Just

    getLogger.debug("myException", new MyExcpetion());

should be enought.

- -- 
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD1ivDLNdJvZjjVZARAv9sAJ4rNxIl/K9/Y7xjuyNAO+YSFmfo5gCfdARl
vLaBDxe7Dfv5tVSxQiGk4Kg=
=iqTr
-----END PGP SIGNATURE-----

Mime
View raw message