Velocity
  1. Velocity
  2. VELOCITY-514

Rendering a template with inline macro concurrently causes VM error : Null AST

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1, 1.4
    • Fix Version/s: 1.6
    • Component/s: Engine
    • Labels:
      None

      Description

      If a template with inline macro is rendered concurrently it prints the following errors in the log:

      ERROR [velocity] VM #myInlineMacro: error : too few arguments to macro. Wanted 3 got 0
      ERROR [velocity] VM error : myInlineMacro. Null AST

      and where the expected output of the inline macro is, it has the string values of the arguments passed to the macro in brackets
      eg:
      #myInlineMacro('Arg1' 'arg2' 'arg3')
      gives the following on above error
      (Arg1 arg2 arg3)

      1. recursive.vm
        0.2 kB
        Norbert Pomaroli
      2. VeloMacroTest.java
        3 kB
        Norbert Pomaroli
      3. slammer.vm
        1 kB
        Sam Chang
      4. macroSlammer-1.5.jar
        1.00 MB
        Sam Chang
      5. macroSlammer-1.4.jar
        1.06 MB
        Sam Chang
      6. nullAST.log
        7 kB
        Sam Chang
      7. macroSlammer.jar
        1.08 MB
        Sam Chang

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Sam Chang
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development