org.apache.velocity.exception.ParseErrorException: Encountered "#end" at page.vm[line 4, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... "]]#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... <EMPTY_INDEX> ...

velocity-user | Ben Short | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: Possible with Velocity

    velocity-user | 7 years ago | Ben Short
    org.apache.velocity.exception.ParseErrorException: Encountered "#end" at page.vm[line 4, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... "]]#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... <EMPTY_INDEX> ...
  2. 0

    Re: Possible with Velocity

    velocity-user | 7 years ago | Ben Short
    org.apache.velocity.exception.ParseErrorException: Encountered "#end" at page.vm[line 4, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... "]]#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... <EMPTY_INDEX> ...
  3. 0

    Java: Apache Velocity Parser Error on Curly Brace

    Stack Overflow | 3 years ago | David Williams
    org.apache.velocity.exception.ParseErrorException: Encountered ")\n .attr(\'title\', congifMap.extendedTitle);\n return true;\n } else if(sliderHeight === configMap.extendedHeight) {\n " at vml/Slider.vml[line 45, column 71] Was expecting one of: "," ... ")" ... &lt;WHITESPACE&gt; ...
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Struts2 velocity tag problem (org.apache.velocity.exception.ParseErrorException: Encountered "#end)

    Stack Overflow | 8 years ago | T.Thamilvaanan
    java.lang.RuntimeException: org.apache.velocity.exception.ParseErrorException: Encountered "#end\n" at /velocityArea/ammaMessage.vm[line 24, column 5] Was expecting one of: &lt;EOF&gt; "(" ... &lt;RPAREN&gt; ... &lt;ESCAPE_DIRECTIVE&gt; ... &lt;SET_DIRECTIVE&gt; ... "##" ... "\\\\" ... "\\" ... &lt;TEXT&gt; ... "*#" ... "*#" ... &lt;STRING_LITERAL&gt; ... &lt;IF_DIRECTIVE&gt; ... &lt;STOP_DIRECTIVE&gt; ... &lt;INTEGER_LITERAL&gt; ... &lt;FLOATING_POINT_LITERAL&gt; ... &lt;WORD&gt; ... &lt;BRACKETED_WORD&gt; ... &lt;IDENTIFIER&gt; ... &lt;DOT&gt; ... "{" ... "}" ...
  6. 0

    velocity template and javascript

    Stack Overflow | 7 years ago | Adi Sembiring
    org.apache.velocity.exception.ParseErrorException: Encountered "," at line 28, column 29 of currencyDetail.html Was expecting one of: &lt;EOF&gt; "(" ... &lt;RPAREN&gt; ... &lt;ESCAPE_DIRECTIVE&gt; ... &lt;SET_DIRECTIVE&gt; ... "##" ... "\\\\" ... "\\" ... &lt;TEXT&gt; ... "*#" ... "*#" ... &lt;STRING_LITERAL&gt; ... &lt;IF_DIRECTIVE&gt; ... &lt;STOP_DIRECTIVE&gt; ... &lt;INTEGER_LITERAL&gt; ... &lt;FLOATING_POINT_LITERAL&gt; ... &lt;WORD&gt; ... &lt;BRACKETED_WORD&gt; ... &lt;IDENTIFIER&gt; ... &lt;DOT&gt; ... "{" ... "}" ...

  1. treefolk 4 times, last 4 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.velocity.exception.ParseErrorException

    Encountered "#end" at page.vm[line 4, column 1] Was expecting one of: <EOF> "(" ... <RPAREN> ... <ESCAPE_DIRECTIVE> ... <SET_DIRECTIVE> ... "##" ... "\\\\" ... "\\" ... <TEXT> ... "*#" ... "*#" ... "]]#" ... <STRING_LITERAL> ... <IF_DIRECTIVE> ... <INTEGER_LITERAL> ... <FLOATING_POINT_LITERAL> ... <WORD> ... <BRACKETED_WORD> ... <IDENTIFIER> ... <DOT> ... "{" ... "}" ... <EMPTY_INDEX> ...

    at org.apache.velocity.Template.process()
  2. Apache Velocity
    VelocityEngine.getTemplate
    1. org.apache.velocity.Template.process(Template.java:151)
    2. org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:437)
    3. org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:352)
    4. org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1520)
    5. org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1501)
    6. org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:373)
    6 frames
  3. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.view.velocity.VelocityView.getTemplate(VelocityView.java:501)
    2. org.springframework.web.servlet.view.velocity.VelocityView.checkResource(VelocityView.java:260)
    3. org.springframework.web.servlet.view.velocity.VelocityLayoutView.checkResource(VelocityLayoutView.java:123)
    4. org.springframework.web.servlet.view.UrlBasedViewResolver.loadView(UrlBasedViewResolver.java:421)
    5. org.springframework.web.servlet.view.AbstractCachingViewResolver.createView(AbstractCachingViewResolver.java:158)
    6. org.springframework.web.servlet.view.UrlBasedViewResolver.createView(UrlBasedViewResolver.java:384)
    7. org.springframework.web.servlet.view.AbstractCachingViewResolver.resolveViewName(AbstractCachingViewResolver.java:77)
    8. org.springframework.web.servlet.DispatcherServlet.resolveViewName(DispatcherServlet.java:1091)
    9. org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1040)
    10. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
    11. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
    12. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
    13. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
    13 frames
  4. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    2 frames
  5. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    8 frames
  6. Grizzly HTTP
    JIoEndpoint$Worker.run
    1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    3. org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    3 frames
  7. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:619)
    1 frame