Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-514

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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)

        Attachments

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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sam@atlassian.com Sam Chang
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: