Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 54294 invoked from network); 31 Jan 2005 14:27:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 Jan 2005 14:27:40 -0000 Received: (qmail 67941 invoked by uid 500); 31 Jan 2005 14:27:36 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 67906 invoked by uid 500); 31 Jan 2005 14:27:36 -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 67891 invoked by uid 99); 31 Jan 2005 14:27:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from Unknown (HELO blossom.betaversion.org) (62.140.213.100) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 31 Jan 2005 06:27:35 -0800 Received: by blossom.betaversion.org (Postfix, from userid 101) id 7501C964AB; Mon, 31 Jan 2005 14:24:38 +0000 (GMT) X-AntiVirus-Version: ClamAV 0.81/694 X-AntiSpam-Version: SpamAssassin 3.0.2 X-AntiSpam-Status: No (score=1.7/limit=7.5) X-AntiSpam-Rules: rcvd_in_njabl_dul, listed Received: from [192.168.1.102] (h-68-166-234-42.cmbrmaor.dynamic.covad.net [68.166.234.42]) by blossom.betaversion.org (Postfix) with ESMTP id DA702964A5 for ; Mon, 31 Jan 2005 14:24:37 +0000 (GMT) Message-ID: <41FE4055.7070006@apache.org> Date: Mon, 31 Jan 2005 09:27:33 -0500 From: Stefano Mazzocchi Organization: Apache Software Foundation User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: NPE with global input module References: <6839c98f50b4783f50b30c62d5ce12c4@apache.org> In-Reply-To: <6839c98f50b4783f50b30c62d5ce12c4@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ugo Cei wrote: > Dear Cocooners, > > today, after having upgraded our Cocoon build to the latest revision > from trunk, we started getting NPEs from a project that had worked > perfectly until then. Turns out the NPE was caused in a subsitemap > while trying to use the global input module to reference the value of a > global variable that was defined in the same subsitemap. > > I started looking for differences between our app and the Cocoon > samples, where the global input module seems to work fine, and I > concluded that the only difference was the the samples' top sitemap had a > > > > > > section, whereas our toplevel sitemap did not. So I added an empty > element to ours too and the NPE went away! > > So, apparently, you MUST put a element in the > toplevel sitemap in order to declare global variables in a subsitemap. > Is this a bug or is this intended behaviour? Looks like a bug to me. -- Stefano.