Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 22932 invoked from network); 8 Jul 2004 12:43:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Jul 2004 12:43:13 -0000 Received: (qmail 99921 invoked by uid 500); 8 Jul 2004 12:43:07 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 99856 invoked by uid 500); 8 Jul 2004 12:43:07 -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 Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 99842 invoked by uid 99); 8 Jul 2004 12:43:06 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=WEIRD_PORT X-Spam-Check-By: apache.org Received: from [217.160.230.40] (HELO mout.perfora.net) (217.160.230.40) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 08 Jul 2004 05:43:05 -0700 Received: from minotaur.apache.org[209.237.227.194] (helo=[127.0.0.1]) by mrelay.perfora.net with ESMTP (Nemesis), id 1BiYEx-1lre-0MKyxe-0001Kz; Thu, 08 Jul 2004 08:43:03 -0400 Message-ID: <40ED4156.2080807@reverycodes.com> Date: Thu, 08 Jul 2004 08:43:02 -0400 From: Vadim Gritsenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Cocoon JSR 168 Portlet in Cocoon Portal References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Carsten Ziegeler wrote: >Vadim Gritsenko wrote: > > >>It's actually very easy to reproduce: >>1. cvs up >>2. build clean; build >>3. cocoon servlet >>4. http://localhost:8888/samples/blocks/portal/portal >>5. login >>6. JSR-168 tab >> >>Exception is printed neatly within "JSR-168 Cocoon Portlet" >>content pane. >> >>Please bear in mind, call stack here is the following: >> CocoonServlet >> Cocoon (1) >> Treeprocessor, ... >> CopletSource >> ManagedCocoonPortlet >> Cocoon (2) >> EnvironmentHelper >> >>Where, (1) and (2) are the same instance of the Cocoon class, >>on the same thread. I think that's why it is confused. Here >>is head of trace. >> >> >> >Ah, ok, than life is much simpler :) >The check currently assumes that on method entry the stack >stored in the thread local is empty. Thus it checks on exit >if the stack is empty again. >We could store the current number of elements in the stack >on method entry and check if the stack has the same size >on exit. This would just be a local int variable. >WDYT? > > Done, please double check :-) Demo works out of the box now. Vadim