You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Siri C. (JIRA)" <de...@velocity.apache.org> on 2009/06/22 10:02:07 UTC
[jira] Created: (VELOCITY-727) ArrayIndexOutOfBoundsException when
#define without parameter
ArrayIndexOutOfBoundsException when #define without parameter
-------------------------------------------------------------
Key: VELOCITY-727
URL: https://issues.apache.org/jira/browse/VELOCITY-727
Project: Velocity
Issue Type: Bug
Components: Engine
Affects Versions: 1.6.2
Reporter: Siri C.
{code}
#define()
Hello
#end
{code}
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at org.apache.velocity.runtime.parser.node.SimpleNode.jjtGetChild(SimpleNode.java:177)
at org.apache.velocity.runtime.directive.Define.init(Define.java:96)
at org.apache.velocity.runtime.parser.node.ASTDirective.init(ASTDirective.java:125)
at org.apache.velocity.runtime.parser.node.SimpleNode.init(SimpleNode.java:303)
at org.apache.velocity.runtime.RuntimeInstance.render(RuntimeInstance.java:1254)
at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Updated: (VELOCITY-727) ArrayIndexOutOfBoundsException when
#define without parameter
Posted by "Jarkko Viinamäki (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarkko Viinamäki updated VELOCITY-727:
--------------------------------------
Attachment: velocity-727.patch
This should fix it.
> ArrayIndexOutOfBoundsException when #define without parameter
> -------------------------------------------------------------
>
> Key: VELOCITY-727
> URL: https://issues.apache.org/jira/browse/VELOCITY-727
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6.2
> Reporter: Siri C.
> Attachments: velocity-727.patch
>
>
> {code}
> #define()
> Hello
> #end
> {code}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
> at org.apache.velocity.runtime.parser.node.SimpleNode.jjtGetChild(SimpleNode.java:177)
> at org.apache.velocity.runtime.directive.Define.init(Define.java:96)
> at org.apache.velocity.runtime.parser.node.ASTDirective.init(ASTDirective.java:125)
> at org.apache.velocity.runtime.parser.node.SimpleNode.init(SimpleNode.java:303)
> at org.apache.velocity.runtime.RuntimeInstance.render(RuntimeInstance.java:1254)
> at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Resolved: (VELOCITY-727) ArrayIndexOutOfBoundsException when
#define without parameter
Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nathan Bubna resolved VELOCITY-727.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.7
Thanks, again!
> ArrayIndexOutOfBoundsException when #define without parameter
> -------------------------------------------------------------
>
> Key: VELOCITY-727
> URL: https://issues.apache.org/jira/browse/VELOCITY-727
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6.2
> Reporter: Siri C.
> Fix For: 1.7
>
> Attachments: velocity-727.patch
>
>
> {code}
> #define()
> Hello
> #end
> {code}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
> at org.apache.velocity.runtime.parser.node.SimpleNode.jjtGetChild(SimpleNode.java:177)
> at org.apache.velocity.runtime.directive.Define.init(Define.java:96)
> at org.apache.velocity.runtime.parser.node.ASTDirective.init(ASTDirective.java:125)
> at org.apache.velocity.runtime.parser.node.SimpleNode.init(SimpleNode.java:303)
> at org.apache.velocity.runtime.RuntimeInstance.render(RuntimeInstance.java:1254)
> at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Commented: (VELOCITY-727) ArrayIndexOutOfBoundsException
when #define without parameter
Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722606#action_12722606 ]
Nathan Bubna commented on VELOCITY-727:
---------------------------------------
Just to make sure you know, you can't use #define without a name argument for the block you are defining.
What were you hoping/expecting to happen? A better error message? That's a fine idea, but that hardly qualifies as a "Major" bug.
> ArrayIndexOutOfBoundsException when #define without parameter
> -------------------------------------------------------------
>
> Key: VELOCITY-727
> URL: https://issues.apache.org/jira/browse/VELOCITY-727
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6.2
> Reporter: Siri C.
>
> {code}
> #define()
> Hello
> #end
> {code}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
> at org.apache.velocity.runtime.parser.node.SimpleNode.jjtGetChild(SimpleNode.java:177)
> at org.apache.velocity.runtime.directive.Define.init(Define.java:96)
> at org.apache.velocity.runtime.parser.node.ASTDirective.init(ASTDirective.java:125)
> at org.apache.velocity.runtime.parser.node.SimpleNode.init(SimpleNode.java:303)
> at org.apache.velocity.runtime.RuntimeInstance.render(RuntimeInstance.java:1254)
> at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Commented: (VELOCITY-727) ArrayIndexOutOfBoundsException
when #define without parameter
Posted by "Siri C. (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765966#action_12765966 ]
Siri C. commented on VELOCITY-727:
----------------------------------
Yes, please improve an error message.
Because we can't find a position of error on template code.
> ArrayIndexOutOfBoundsException when #define without parameter
> -------------------------------------------------------------
>
> Key: VELOCITY-727
> URL: https://issues.apache.org/jira/browse/VELOCITY-727
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6.2
> Reporter: Siri C.
>
> {code}
> #define()
> Hello
> #end
> {code}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
> at org.apache.velocity.runtime.parser.node.SimpleNode.jjtGetChild(SimpleNode.java:177)
> at org.apache.velocity.runtime.directive.Define.init(Define.java:96)
> at org.apache.velocity.runtime.parser.node.ASTDirective.init(ASTDirective.java:125)
> at org.apache.velocity.runtime.parser.node.SimpleNode.init(SimpleNode.java:303)
> at org.apache.velocity.runtime.RuntimeInstance.render(RuntimeInstance.java:1254)
> at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org