Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 45171 invoked from network); 20 Jan 2006 13:34:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jan 2006 13:34:33 -0000 Received: (qmail 99191 invoked by uid 500); 20 Jan 2006 13:34:30 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 99127 invoked by uid 500); 20 Jan 2006 13:34:30 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 99116 invoked by uid 99); 20 Jan 2006 13:34:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2006 05:34:30 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [130.149.12.212] (HELO mail.math.TU-Berlin.DE) (130.149.12.212) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2006 05:34:28 -0800 Received: from localhost (localhost [127.0.0.1]) by mail.math.TU-Berlin.DE (8.13.5/8.13.3) with ESMTP id k0KDY7kO013827 for ; Fri, 20 Jan 2006 14:34:07 +0100 (MET) Received: from mail.math.TU-Berlin.DE ([127.0.0.1]) by localhost (mail.math.tu-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13606-06 for ; Fri, 20 Jan 2006 14:34:05 +0100 (MET) Received: from teefix.math.tu-berlin.de (teefix.math.TU-Berlin.DE [130.149.13.13]) by mail.math.TU-Berlin.DE (8.13.5/8.13.3) with ESMTP id k0KDY378013814 for ; Fri, 20 Jan 2006 14:34:03 +0100 (MET) Received: from localhost (localhost [[UNIX: localhost]]) by teefix.math.tu-berlin.de (8.9.3/8.8.8) id OAA09721 for dev@cocoon.apache.org; Fri, 20 Jan 2006 14:34:03 +0100 From: Tilman Rassy Organization: TU Berlin To: dev@cocoon.apache.org Subject: Re: setup() called twice in one request Date: Fri, 20 Jan 2006 14:34:02 +0100 User-Agent: KMail/1.5.4 References: <200601191901.58102.rassy@math.tu-berlin.de> <200601191928.19109.rassy@math.tu-berlin.de> <43D0AEC1.6030906@apache.org> In-Reply-To: <43D0AEC1.6030906@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601201434.02941.rassy@math.tu-berlin.de> X-Virus-Scanned: amavisd-new at math.tu-berlin.de X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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, we do a > > lot of Cocoon programming in our project, and it would be easier for my > > collegues and me if we knew the exact rules that apply to the setup() > > calls. > > Yes, you're right: now, the contract is that setup() is only called once > per request per component instance in the pipeline. So, if you have a > pipeline with one generator, one transformer and one serializer, setup() > is called once on the generator, once on the transformer and once on the > serializer (per request for this pipeline). > Now, if you happen to have the same transformer twice in the pipeline, > like applying two xslts, then of course setup is called twice for the > xslt transformer but on two different instances/objects. Thank you very mutch for these explanations. Unfortunately, I'm quite sure that the two setup() calls are from the same instance and in the same request. We can see that very clearly in the logs. I included an excerpt from the logs in my reply to the mail from Joerg Heinicke in this matter. You will find further explanations there, too. If you are interested in my problem further on, please look there. Best regards, Tilman Rassy