Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 91669 invoked from network); 16 Oct 2006 05:23:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Oct 2006 05:23:33 -0000 Received: (qmail 60175 invoked by uid 500); 16 Oct 2006 05:23:31 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 60115 invoked by uid 500); 16 Oct 2006 05:23:31 -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 60104 invoked by uid 99); 16 Oct 2006 05:23:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Oct 2006 22:23:31 -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, 15 Oct 2006 22:23:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8A684714201 for ; Sun, 15 Oct 2006 22:22:41 -0700 (PDT) Message-ID: <27991941.1160976161564.JavaMail.jira@brutus> Date: Sun, 15 Oct 2006 22:22:41 -0700 (PDT) From: "Antonio Gallardo (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Commented: (COCOON-1931) Provide more information when compiling a Flowscript fails In-Reply-To: <5030806.1160562079476.JavaMail.root@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-1931?page=3Dcomments#acti= on_12442465 ]=20 =20 Antonio Gallardo commented on COCOON-1931: ------------------------------------------ Would you test the 2.1.10 branch on subversion. I think it was fixed just f= ew days ago. I tried to reproduce the issue using the calculator flow sampl= e: http://cocoon.zones.apache.org/demos/21branch/samples/flow/ Here is what I did: 1. When I removed the file, I got:=20 java.io.FileNotFoundException: /home/agallardo/svn/cocoon-2.1/build/webapp/= samples/flow/jxcalc/calc.js (No such file or directory) 2. When I remove a closing ")" for a funtion call I got: Missing ")" etc. Would you try the newest version and try to provide an NPE? If you are not = able, please let us know to close this issue. Many thanks in advance. > Provide more information when compiling a Flowscript fails > ---------------------------------------------------------- > > Key: COCOON-1931 > URL: http://issues.apache.org/jira/browse/COCOON-1931 > Project: Cocoon > Issue Type: Improvement > Components: - Flowscript > Affects Versions: 2.1.8, 2.1.9, 2.2-dev (Current SVN), 2.1.10-dev (cur= rent SVN) > Reporter: Georg H=C3=BCttenegger > Priority: Minor > Attachments: FOM_JavaScriptInterpreter.java.MoreErrorInfoPatch > > > When a flowscript defined in the sitemap cannot be loaded a NullPointerEx= ception is thrown without telling the developer the real cause of the issue= . > The same is true for certain Javascript coding errors (at least missing c= losing bracket of a for loop). > The provided patch throws a CascadingRuntimeException with the name of th= e flowscript instead of just a simple NullPointerException. In that way the= developer is lead directly to the cause of the problem instead of wonderin= g what the real issue might be. --=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