Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 21111 invoked from network); 8 Jul 2004 07:07: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 07:07:13 -0000 Received: (qmail 15781 invoked by uid 500); 8 Jul 2004 07:07:11 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 15527 invoked by uid 500); 8 Jul 2004 07:07:09 -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 15513 invoked by uid 99); 8 Jul 2004 07:07:09 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=WEIRD_PORT X-Spam-Check-By: apache.org Received: from [212.8.217.2] (HELO mail.s-und-n.de) (212.8.217.2) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 08 Jul 2004 00:07:08 -0700 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id 109EC19F5A2 for ; Thu, 8 Jul 2004 09:07:06 +0200 (CEST) Received: from hw0386 ([10.10.2.43]) by notes.sundn.de (Lotus Domino Release 6.5) with ESMTP id 2004070808565366-30827 ; Thu, 8 Jul 2004 08:56:53 +0200 From: "Carsten Ziegeler" To: Subject: RE: Cocoon JSR 168 Portlet in Cocoon Portal Date: Thu, 8 Jul 2004 09:07:21 +0200 Organization: S&N AG MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcRkLtzdawtWoy8KQCSXXw2PHQZKqwAiu75A In-Reply-To: <40EBD5E0.40007@reverycodes.com> X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 08.07.2004 08:56:53, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 08.07.2004 08:56:53, Serialize complete at 08.07.2004 08:56:53 Message-ID: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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? Carsten