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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.1, 1.4
    • 1.6
    • Engine
    • 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. VeloMacroTest.java
          3 kB
          Norbert Pomaroli
        2. slammer.vm
          1 kB
          Sam Chang
        3. recursive.vm
          0.2 kB
          Norbert Pomaroli
        4. nullAST.log
          7 kB
          Sam Chang
        5. macroSlammer-1.5.jar
          1.00 MB
          Sam Chang
        6. macroSlammer-1.4.jar
          1.06 MB
          Sam Chang
        7. macroSlammer.jar
          1.08 MB
          Sam Chang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: