Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 45635 invoked from network); 12 May 2006 14:04:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 May 2006 14:04:10 -0000 Received: (qmail 29734 invoked by uid 500); 12 May 2006 14:04:02 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 29651 invoked by uid 500); 12 May 2006 14:04:02 -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 29629 invoked by uid 99); 12 May 2006 14:04:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 May 2006 07:04:02 -0700 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 includes SPF record at spf.trusted-forwarder.org) Received: from [217.12.11.35] (HELO smtp004.mail.ukl.yahoo.com) (217.12.11.35) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 12 May 2006 07:04:00 -0700 Received: (qmail 29909 invoked from network); 12 May 2006 14:03:39 -0000 Received: from unknown (HELO ?10.4.1.249?) (reinhard?poetz@86.59.20.138 with plain) by smtp004.mail.ukl.yahoo.com with SMTP; 12 May 2006 14:03:39 -0000 Message-ID: <446495B9.3070707@apache.org> Date: Fri, 12 May 2006 16:03:37 +0200 From: Reinhard Poetz User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: CallFunctionNode problems in trunk References: <446473E9.6060207@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Giacomo Pati wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > I'm hunting that bug too ;-) > > My observation until now is that: > > a) SitemapLanguage#createNodeBuilder creates the CallNodeBuilder > b) it seems (during my debugging) there is only one CallNodeBuilder in > the system (even though it is not marked ThreadSafe as other > NodeBuilders) > c) in CallNodeBuilder#buildNode the member variable node will be > overwritten each time that method is called (and it is called for > each element) > > I don't know what a NodeBuilder should do in its buildNode method but I > think there might be the problem. Later in the processings the linkNode > method on the CallNodeBuilder gets called where the interpreter is set > on the node. But because of c) only one instance gets the interpreter > and if one of the other Nodes created gets processed in a pipeline we'll > have a NPE. > > Hope that helps other bug hunters a bid as I don't now how to proceed > ATM (is there a problem with non ThreadSave components?) The problem is that the builder objects mustn't be threadsafe but the container always returns the same instance. Though I have no idea how/where to change this ... -- Reinhard P�tz Independent Consultant, Trainer & (IT)-Coach {Software Engineering, Open Source, Web Applications, Apache Cocoon} web(log): http://www.poetz.cc -------------------------------------------------------------------- ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de