Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 25639 invoked from network); 1 Feb 2008 00:43:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2008 00:43:32 -0000 Received: (qmail 91864 invoked by uid 500); 1 Feb 2008 00:43:21 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 91768 invoked by uid 500); 1 Feb 2008 00:43:21 -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 91724 invoked by uid 99); 1 Feb 2008 00:43:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2008 16:43:20 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of joerg.heinicke@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 01 Feb 2008 00:42:52 +0000 Received: (qmail invoked by alias); 01 Feb 2008 00:42:57 -0000 Received: from c-76-116-243-84.hsd1.pa.comcast.net (EHLO c-76-116-243-84.hsd1.pa.comcast.net) [76.116.243.84] by mail.gmx.net (mp052) with SMTP; 01 Feb 2008 01:42:57 +0100 X-Authenticated: #3483660 X-Provags-ID: V01U2FsdGVkX1/HksJO5FbHWqhUDvhRwkXex9NqlCd58Ws83A3LrC nSNeh7/J3gJv3v Message-ID: <47A26B12.6080805@gmx.de> Date: Thu, 31 Jan 2008 19:42:58 -0500 From: Joerg Heinicke User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.11) Gecko/20071128 SeaMonkey/1.1.7 MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [2.2] Weird NPE when concurrency References: <1201780772.8350.9.camel@localhost> <47A23275.3030708@apache.org> <1201815318.6380.15.camel@cartman> In-Reply-To: <1201815318.6380.15.camel@cartman> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org On 31.01.2008 16:35, Thorsten Scherler wrote: >> Have you made sure that your dispatcher transformer is configured correctly? If >> it is *not* threadsafe, you have to use the "prototype" scope. Otherwise you can >> use the "singleton" scope (which is actually the default!). > > This is what I always thought and how it is in 2.1 and the old 2.2. > version of cocoon that forrest is using. > > name="org.apache.cocoon.transformation.Transformer/dispatcher" > class="org.apache.forrest.dispatcher.transformation.DispatcherTransformer"> > > > > We made a test with forrest trunk and this fixed the errors but before > migrating the app I will test with defining the "singleton" scope. If you have already concurrency issues then you might try the prototype scope! With the above setup the DispatcherTransformer IS in singleton scope. Joerg