[
https://issues.apache.org/jira/browse/VELOCITY-272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484478
]
Jean Seurin commented on VELOCITY-272:
--------------------------------------
I suddenly receive a similar exception:
org.apache.velocity.exception.ParseErrorException: Encountered "<EOF>" at...
I can add ## at the end of the file, or several blank lines, nothing works.
It's very odd that it just stopped working, everything went really smoothly.
Nothing significantly changed before and and after the exception occurred.
Does this belongs to the current issue? Is it worth reopening?
> EOF exception when last line is commented out and has no new line at end
> ------------------------------------------------------------------------
>
> Key: VELOCITY-272
> URL: https://issues.apache.org/jira/browse/VELOCITY-272
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Environment: Operating System: other
> Platform: Other
> Reporter: Zoltan Luspai
> Fix For: 1.5
>
>
> So if this is the last line of a template:
> ## something....<EOF>
> Then we'll get an exception:
> org.apache.velocity.exception.ParseErrorException: Lexical error:
> org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 8,
> column 110. Encountered: <EOF> after : ""
> at org.apache.velocity.Template.process(Template.java:181)
> at
> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:466)
> at
> org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:384)
> at
> org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:814)
> at org.apache.velocity.runtime.directive.Parse.render(Parse.java:196)
> at
> org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:153)
> at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
> at
> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)
> at
> org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]