Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 67098 invoked from network); 30 Jul 2006 07:43:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jul 2006 07:43:58 -0000 Received: (qmail 22640 invoked by uid 500); 30 Jul 2006 07:43:44 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 22578 invoked by uid 500); 30 Jul 2006 07:43:44 -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 22498 invoked by uid 99); 30 Jul 2006 07:43:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jul 2006 00:43:43 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Jul 2006 00:43:42 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C79E471429F for ; Sun, 30 Jul 2006 07:41:14 +0000 (GMT) Message-ID: <24080891.1154245274815.JavaMail.jira@brutus> Date: Sun, 30 Jul 2006 00:41:14 -0700 (PDT) From: "Antonio Gallardo (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Updated: (COCOON-1886) NPE when attempting to access cocoon.request from within a nested JS function In-Reply-To: <14653045.1154030413839.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1886?page=3Dall ] Antonio Gallardo updated COCOON-1886: ------------------------------------- Would you provide a test case? > NPE when attempting to access cocoon.request from within a nested JS func= tion > -------------------------------------------------------------------------= ---- > > Key: COCOON-1886 > URL: http://issues.apache.org/jira/browse/COCOON-1886 > Project: Cocoon > Issue Type: Bug > Components: - Flowscript > Affects Versions: 2.1.8 > Reporter: Mark Lundquist > Priority: Minor > > ? Confirmed in 2.1.8; probably affects subsequent versions as well > ?=C2=A0Prioritized as "minor" because it can be worked around in most cas= es > This causes an NPE: > function outer() { > function inner() { > var x =3D cocoon.request; > } > } > java.lang.NullPointerException > at org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.js= Get_request(FOM_Cocoon.java:574) > at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.mozilla.javascript.ScriptableObject.getByGetter(Scriptable= Object.java:200) > etc... --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira