You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Victor Salaman <vs...@hotmail.com> on 2002/02/23 06:42:28 UTC
Incompatibility introduced in CVS (ASTStringLiteral.java)
Hi:
Just updated to cvs current, I am now getting some errors in the log.
I have a macro defined as
#macro(categoryLink $id)#ilink("category.qsp?cid=$id")#end
when invoked,
I get this in the log,
2/23/02 1:13 AM elamal-commerce: Velocity [error] Error in interpolating
string literal : java.lang.NullPointerException
2/23/02 1:13 AM elamal-commerce: Velocity [error] VMProxyArg.setup() :
exception "category.qsp?cid=$id" : java.lang.NullPointerException
at
org.apache.velocity.runtime.parser.node.ASTStringLiteral.init(ASTStringLiteral.java:146)
at
org.apache.velocity.runtime.directive.VMProxyArg.setup(VMProxyArg.java:441)
at
org.apache.velocity.runtime.directive.VMProxyArg.<init>(VMProxyArg.java:173)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.setupProxyArgs(VelocimacroProxy.java:361)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.setupMacro(VelocimacroProxy.java:289)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.init(VelocimacroProxy.java:279)
at
org.apache.velocity.runtime.parser.node.ASTDirective.init(ASTDirective.java:133)
at
org.apache.velocity.runtime.parser.node.SimpleNode.init(SimpleNode.java:242)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:190)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
at org.apache.velocity.Template.merge(Template.java:296)
...
If I switch back, it works...
Cheers,
/V
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Incompatibility introduced in CVS (ASTStringLiteral.java)
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 2/23/02 12:42 AM, "Victor Salaman" <vs...@hotmail.com> wrote:
>
> Hi:
>
> Just updated to cvs current, I am now getting some errors in the log.
Thanks for the heads up, this will be fixed immediately.
>
> I have a macro defined as
>
> #macro(categoryLink $id)#ilink("category.qsp?cid=$id")#end
>
> when invoked,
>
> I get this in the log,
>
> 2/23/02 1:13 AM elamal-commerce: Velocity [error] Error in interpolating
> string literal : java.lang.NullPointerException
> 2/23/02 1:13 AM elamal-commerce: Velocity [error] VMProxyArg.setup() :
> exception "category.qsp?cid=$id" : java.lang.NullPointerException
> at
> org.apache.velocity.runtime.parser.node.ASTStringLiteral.init(ASTStringLiteral
> .java:146)
> at
> org.apache.velocity.runtime.directive.VMProxyArg.setup(VMProxyArg.java:441)
> at
> org.apache.velocity.runtime.directive.VMProxyArg.<init>(VMProxyArg.java:173)
> at
> org.apache.velocity.runtime.directive.VelocimacroProxy.setupProxyArgs(Velocima
> croProxy.java:361)
> at
> org.apache.velocity.runtime.directive.VelocimacroProxy.setupMacro(VelocimacroP
> roxy.java:289)
> at
> org.apache.velocity.runtime.directive.VelocimacroProxy.init(VelocimacroProxy.j
> ava:279)
> at
> org.apache.velocity.runtime.parser.node.ASTDirective.init(ASTDirective.java:13
> 3)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.init(SimpleNode.java:242)
> at
> org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy
> .java:190)
> at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:
> 153)
> at
> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
> at org.apache.velocity.Template.merge(Template.java:296)
> ...
>
> If I switch back, it works...
>
> Cheers,
>
> /V
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
"We will be judged not by the monuments we build, but by the monuments we
destroy" - Ada Louise Huxtable
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Incompatibility introduced in CVS (ASTStringLiteral.java)
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 2/23/02 12:42 AM, "Victor Salaman" <vs...@hotmail.com> wrote:
>
> Hi:
>
> Just updated to cvs current, I am now getting some errors in the log.
>
> I have a macro defined as
>
> #macro(categoryLink $id)#ilink("category.qsp?cid=$id")#end
>
> when invoked,
>
> I get this in the log,
>
> 2/23/02 1:13 AM elamal-commerce: Velocity [error] Error in interpolating
> string literal : java.lang.NullPointerException
[SNIP]
> If I switch back, it works...
>
Much apologies. All fixed now. I believed I had thought through all the
possibilities of where this could go wrong, but I was, of course, wrong.
Thanks for finding it, and if you could give it another try, that would be
great. (That goes for everyone who has a moment)
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
You're going to end up getting pissed at your software
anyway, so you might as well not pay for it. Try Open Source.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>