org.apache.velocity.runtime.parser.ParseException: Encountered "#end\n" at line 52, column 1. Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ...

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 JIRA by Andy Brook, 1 year ago
Encountered "#end\n" at line 52, column 1. Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT
via JIRA by Andy Brook, 1 year ago
Encountered "#end\n" at line 52, column 1. Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT
via Stack Overflow by ddd
, 7 months ago
Encountered "+artifactId.toLowerCase().substring(1)}" at line 1, column 55. Was expecting one of: "[" ... "}" ...
via GitHub by jeremylong
, 1 year ago
Encountered "[" at line 32, column 58144. Was expecting one of: "," ... ")" ... <WHITESPACE> ... <DOT> ...
via GitHub by imbeyondboredom
, 1 year ago
Encountered "[" at line 32, column 58144. Was expecting one of: "," ... ")" ... <WHITESPACE> ... <DOT> ...
via Google Groups by Nadeem Jawaid, 3 months ago
Encountered ")" at line 103, column 82. Was expecting one of: "[" ... "{" ... <STRING_LITERAL> ... "true" ... "false" ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <IDENTIFIER> ... "{" ...
org.apache.velocity.runtime.parser.ParseException: Encountered "#end\n" at line 52, column 1. Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <STOP_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ...
at org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3441)
at org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3318)
at org.apache.velocity.runtime.parser.Parser.process(Parser.java:313)
at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:105)
at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1131)
at org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1086)

Users with the same issue

3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

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