Return-Path: Delivered-To: apmail-velocity-dev-archive@www.apache.org Received: (qmail 31977 invoked from network); 2 Oct 2008 10:33:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2008 10:33:32 -0000 Received: (qmail 65937 invoked by uid 500); 2 Oct 2008 10:33:31 -0000 Delivered-To: apmail-velocity-dev-archive@velocity.apache.org Received: (qmail 65794 invoked by uid 500); 2 Oct 2008 10:33:29 -0000 Mailing-List: contact dev-help@velocity.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Velocity Developers List" Delivered-To: mailing list dev@velocity.apache.org Received: (qmail 65783 invoked by uid 99); 2 Oct 2008 10:33:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2008 03:33:29 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of byron@base2.cc designates 62.13.129.150 as permitted sender) Received: from [62.13.129.150] (HELO outmail129150.authsmtp.net) (62.13.129.150) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Oct 2008 10:32:26 +0000 Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt8.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m92AWcxV030851 for ; Thu, 2 Oct 2008 11:32:38 +0100 (BST) Received: from base2.cc (ec2-75-101-141-241.compute-1.amazonaws.com [75.101.141.241]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m92AWZCd069331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 2 Oct 2008 11:32:36 +0100 (BST) Message-Id: From: Byron Foster To: "Velocity Developers List" In-Reply-To: <1287991226.1222898024464.JavaMail.jira@brutus> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [jira] Updated: (VELOCITY-620) Parse error creates an obscure error message Date: Thu, 2 Oct 2008 03:32:33 -0700 References: <1287991226.1222898024464.JavaMail.jira@brutus> X-Mailer: Apple Mail (2.929.2) X-Server-Quench: 6e363787-906d-11dd-8155-001185d377ca X-AuthRoute: OCdxZgkQAVZfXR4d DAsOBTRNE0MuLQtA DAErMwZeJ1EISRUX O15TJVpedloGSkcB AXl0CBBLUl1xUXN0 agBSbw9eZARJWhtr UElXQ1ZTCgdsAAMD AwEfHER7dXQhEg0k ZUBrXXNaEkZyfUEz RBtXE24BbWB9YWAZ BF1ZdlcAbQtLexpY alB+VXsINWYAYSkx CTU+bXgCPzRFIREd fxkBJE4fTRRDXgAR YzcpPAkeWBNfH2R7 FxU8MVNUEVwLNV96 OkEsUE4VKFcbDEVZ FVpGHTVUb1QbXS0x RQZXRlUXHzA1 X-Authentic-SMTP: 61633236313532.squirrel.dmpriest.net.uk:1378/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! X-Virus-Checked: Checked by ClamAV on apache.org I need a sanity check. I tested this with an unmodified checkout from svn: URL: http://svn.apache.org/repos/asf/velocity/engine/trunk Last Changed Author: nbubna Last Changed Rev: 700847 Last Changed Date: 2008-10-01 10:39:45 -0700 (Wed, 01 Oct 2008) This is the latest as of now on trunk. I tested the below case with no velocity properties set (running with defaults), and I still get my original reported results (Bad Reference "null"). In fact, I tracked down the problem (An exception was getting dropped). So I'm wondering if we are looking at the same source base, or maybe there is still some condition in my environment that is not in yours. Can you verify that you are using the same source snapshot as myself? On Oct 1, 2008, at 14:53 , Nathan Bubna (JIRA) wrote: > > [ https://issues.apache.org/jira/browse/VELOCITY-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > ] > > Nathan Bubna updated VELOCITY-620: > ---------------------------------- > > Attachment: Velocity620TestCase.java > > For the first of your examples, 1.6-dev (with the standard > velocity.properties) works fine, and for the second, i get this > helpful error: > > org.apache.velocity.exception.ParseErrorException: Encountered "=" > at line 1, column 9 of #if ($x = "a") > #end > Was expecting one of: > ... > "-" ... > "+" ... > "*" ... > "/" ... > "%" ... > ... > ... > ... > ... > ... > ... > ... > ... > > >> Parse error creates an obscure error message >> -------------------------------------------- >> >> Key: VELOCITY-620 >> URL: https://issues.apache.org/jira/browse/ >> VELOCITY-620 >> Project: Velocity >> Issue Type: Bug >> Components: Engine >> Affects Versions: 1.6 >> Reporter: Byron Foster >> Fix For: 1.6 >> >> Attachments: Velocity620TestCase.java >> >> >> The following incorrect velocity usage: >> #macro(foo $a) >> blaa >> #end >> #foo("b" "c") >> or ... >> #if ($x = "a") >> #end >> will create the obscure error message in the exception: >>> Bad Reference "null" in /foo.vm:18 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org For additional commands, e-mail: dev-help@velocity.apache.org