Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 1.6.4
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      None

      Description

      The following VTL

      #[foreach()]#

      It should be:

      #foreach()

      but exception :

      org.apache.velocity.exception.ParseErrorException: Encountered "<EOF>" at /purchase/print/inQueryPrint.vm[line 30, column 18]
      Was expecting one of:
      "(" ...
      <RPAREN> ...
      <ESCAPE_DIRECTIVE> ...
      <SET_DIRECTIVE> ...
      "##" ...
      "\\\\" ...
      "
      " ...
      <TEXT> ...
      "*#" ...
      "*#" ...
      <STRING_LITERAL> ...
      <END> ...
      <IF_DIRECTIVE> ...
      <STOP_DIRECTIVE> ...
      <INTEGER_LITERAL> ...
      <FLOATING_POINT_LITERAL> ...
      <WORD> ...
      <BRACKETED_WORD> ...
      <IDENTIFIER> ...
      <DOT> ...
      "

      {" ... "}

      " ...

      at org.apache.velocity.Template.process(Template.java:141)
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:446)
      at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354)
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400)
      at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1380)
      at org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:401)

        Activity

        Jet Ma created issue -
        Hide
        Jarkko Viinamäki added a comment -

        This feature is only available in Velocity 1.7beta and newer versions. If you are using 1.6.4, it isn't even supposed to work.

        Show
        Jarkko Viinamäki added a comment - This feature is only available in Velocity 1.7beta and newer versions. If you are using 1.6.4, it isn't even supposed to work.
        Hide
        Jarkko Viinamäki added a comment -

        Works fine on 1.7beta-1. Feature is not supported in 1.6.4

        Show
        Jarkko Viinamäki added a comment - Works fine on 1.7beta-1. Feature is not supported in 1.6.4
        Jarkko Viinamäki made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12521674 ] Default workflow, editable Closed status [ 12551733 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12551733 ] jira [ 12552271 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Jet Ma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development