org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 1, column 2. Encountered: <EOF> after : ""

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Matthew Erickson [Atlassian], 1 year ago
Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 1, column 2. Encountered: <EOF> after : ""
via Atlassian JIRA by Matthew Erickson [Atlassian], 1 year ago
Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 1, column 2. Encountered: <EOF> after : ""
via Stack Overflow by Unknown author, 2 years ago
Lexical error, Encountered: "l" (108), after : "." at *unset*[line 23, column 53]
via atlassian.com by Unknown author, 1 year ago
Encountered "#end\n" at getEncodedBodyFromContent[line 68, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL
org.apache.velocity.exception.ParseErrorException: Lexical error: org.apache.velocity.runtime.parser.TokenMgrError: Lexical error at line 1, column 2. Encountered: <EOF> after : ""
at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1202)
at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1164)
at com.atlassian.confluence.util.velocity.VelocityUtils.writeRenderedContent(VelocityUtils.java:179)
at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedContent(VelocityUtils.java:157)
at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedContent(VelocityUtils.java:142)
at com.atlassian.confluence.util.velocity.VelocityUtils.getRenderedContent(VelocityUtils.java:137)
at com.atlassian.confluence.plugin.descriptor.web.ConfluenceWebFragmentHelper.renderVelocityFragment(ConfluenceWebFragmentHelper.java:78)
at com.atlassian.plugin.web.model.DefaultWebLink.getRenderedUrl(DefaultWebLink.java:35)
at com.atlassian.plugin.web.model.DefaultWebLink.getDisplayableUrl(DefaultWebLink.java:45)
at com.atlassian.confluence.plugin.descriptor.web.model.ConfluenceWebLink.getDisplayableUrl(ConfluenceWebLink.java:92)
at com.atlassian.confluence.plugin.descriptor.web.model.ConfluenceWebLink.getDisplayableUrl(ConfluenceWebLink.java:79)
at sun.reflect.GeneratedMethodAccessor457.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:385)
at com.atlassian.confluence.velocity.introspection.UnboxingMethod.invoke(UnboxingMethod.java:34)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.