You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Sam Chang (JIRA)" <de...@velocity.apache.org> on 2007/02/06 23:57:05 UTC

[jira] Created: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

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

                 Key: VELOCITY-514
                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
             Project: Velocity
          Issue Type: Bug
          Components: Engine
    Affects Versions: 1.4
            Reporter: Sam Chang


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)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Norbert Pomaroli (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norbert Pomaroli updated VELOCITY-514:
--------------------------------------

    Attachment: VeloMacroTest.java

Simple usecase to reproduce this bug with velocity-1.4 and velocity-1.5. Use with template recursive.vm

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, recursive.vm, slammer.vm, VeloMacroTest.java
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Glass-Husain updated VELOCITY-514:
---------------------------------------

    Fix Version/s:     (was: 1.5)
                   1.5.1

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.5.1, 1.6
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, recursive.vm, slammer.vm, VeloMacroTest.java
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Reopened: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Glass-Husain reopened VELOCITY-514:
----------------------------------------

      Assignee:     (was: Henning Schmiedehausen)

Thanks for the report.  Any chance it's reproducible in a simple test case?

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Issue Comment Edited: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Stephen Cresswell (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562043#action_12562043 ] 

cressie176 edited comment on VELOCITY-514 at 1/24/08 5:05 AM:
---------------------------------------------------------------------

We're hitting this issue during our stress tests using Velocity 1.5

2008-01-24 12:10:44,397 [resin-tcp-connection-tstrespub02:8080-49] ERROR com.gu.r2.common.velocity.logger.VelocityLogHandler - VM error requires. Null AST.

Any chance of re-opening?

      was (Author: cressie176):
    We're hitting this issue during our stress tests using Velocity 1.5

2008-01-24 12:10:44,397 [resin-tcp-connection-tstrespub02:8080-49] ERROR com.gu.r2.common.velocity.logger.VelocityLogHandler - VM error requires. Null AST
  
> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>            Assignee: Henning Schmiedehausen
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henning Schmiedehausen updated VELOCITY-514:
--------------------------------------------

    Affects Version/s: 1.4

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>         Assigned To: Henning Schmiedehausen
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Resolved: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Bubna resolved VELOCITY-514.
-----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.5.1)

I'm unable to reproduce this any longer.  Seems to have been fixed by the fix for VELOCITY-607.

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.6
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, recursive.vm, slammer.vm, VeloMacroTest.java
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478213 ] 

Henning Schmiedehausen commented on VELOCITY-514:
-------------------------------------------------

This smells like VELOCITY-24. I'm scared that you claim to be able to reproduce this with beta1 and beta2, because the fix should already be in beta2. I can see nothing in between beta2 and the release that actually fixes this.

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Reopened: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henning Schmiedehausen reopened VELOCITY-514:
---------------------------------------------

      Assignee: Henning Schmiedehausen

Put this on the "need to verify" stack for 1.5.1/1.6. If it is bogus, good. If it is not, fix it in the next release.

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1
>            Reporter: Sam Chang
>         Assigned To: Henning Schmiedehausen
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Issue Comment Edited: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Norbert Pomaroli (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585044#action_12585044 ] 

norps edited comment on VELOCITY-514 at 4/3/08 3:40 AM:
-------------------------------------------------------------------

recursive.vm: Recursive template to be used with test VeloMacroTest to reproduce this bug.

      was (Author: norps):
    Recursive template to be used with test VeloMacroTest to reproduce this bug.
  
> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, recursive.vm, slammer.vm, VeloMacroTest.java
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Stephen Cresswell (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562043#action_12562043 ] 

Stephen Cresswell commented on VELOCITY-514:
--------------------------------------------

We're hitting this issue during our stress tests using Velocity 1.5

2008-01-24 12:10:44,397 [resin-tcp-connection-tstrespub02:8080-49] ERROR com.gu.r2.common.velocity.logger.VelocityLogHandler - VM error requires. Null AST

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>            Assignee: Henning Schmiedehausen
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Resolved: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henning Schmiedehausen resolved VELOCITY-514.
---------------------------------------------

    Resolution: Fixed

Issue is fixed.

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>         Assigned To: Henning Schmiedehausen
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Norbert Pomaroli (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norbert Pomaroli updated VELOCITY-514:
--------------------------------------

    Attachment: recursive.vm

Recursive template to be used with test VeloMacroTest to reproduce this bug.

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, recursive.vm, slammer.vm, VeloMacroTest.java
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Christopher Schultz (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470782 ] 

Christopher Schultz commented on VELOCITY-514:
----------------------------------------------

Replication of this thread does not require tons of threads fighting each other.

The same thing happens (at least, with 1.4) when you define a recursive macro.


> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.4
>            Reporter: Sam Chang
>         Attachments: macroSlammer.jar, nullAST.log
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470769 ] 

Will Glass-Husain commented on VELOCITY-514:
--------------------------------------------

This might be fixed in Velocity 1.5-- we fixed a number of subtle bugs around concurrency and error reporting.  There's a beta out, and a full release expected in a couple days.  Would you mind downloading the 1.5 beta and see if this issue still exists?

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.4
>            Reporter: Sam Chang
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Glass-Husain updated VELOCITY-514:
---------------------------------------

    Fix Version/s: 1.6

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.5.1, 1.6
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, recursive.vm, slammer.vm, VeloMacroTest.java
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478258 ] 

Will Glass-Husain commented on VELOCITY-514:
--------------------------------------------

I thought Sam said this did not reoccur in beta 2?

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>         Assigned To: Henning Schmiedehausen
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Sam Chang (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sam Chang updated VELOCITY-514:
-------------------------------

    Attachment: nullAST.log
                macroSlammer.jar

Attached macroSlammer.jar which reproduces the errors by queuing up multiple threads to render from a velocity template file.
Also attached nullAST.log with the errors

Requirements:
Java 1.5
Multiple CPU's

To run:
java -jar macroSlammer.jar

This will create velocity.log which contains the error. You may need to run it several times to reproduce.
(I found it to be reproduceable atleast 1 in 2 tries)


> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.4
>            Reporter: Sam Chang
>         Attachments: macroSlammer.jar, nullAST.log
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Resolved: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Sam Chang (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sam Chang resolved VELOCITY-514.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

This was reproducable on 1.3.1 and 1.4 but not in 1.5

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Norbert Pomaroli (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585045#action_12585045 ] 

Norbert Pomaroli commented on VELOCITY-514:
-------------------------------------------

We also can reproduce this bug with both velocity-1.4 and velocity-1.5.
I attached a simple test case with a recursive macro (see the two comments above).

Our test environment:
- Intel(R) Core(TM)2 Duo CPU based platform
- SMP linux kernel (2.6.24)
- Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_06-b05, mixed mode)

Maybe you need to run the test multiple times to reproduce the bug.



> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, recursive.vm, slammer.vm, VeloMacroTest.java
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470799 ] 

Will Glass-Husain commented on VELOCITY-514:
--------------------------------------------

Many thanks for taking the trouble to identify and report this issue with a test case.  Glad we've already caught it!

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Closed: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henning Schmiedehausen closed VELOCITY-514.
-------------------------------------------


> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>         Assigned To: Henning Schmiedehausen
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Sam Chang (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sam Chang updated VELOCITY-514:
-------------------------------

    Attachment: slammer.vm
                macroSlammer-1.5.jar
                macroSlammer-1.4.jar

The previously attached jar did not run independantly. 
Added macroSlammer-1.4.jar which uses velocity 1.4 with correct dependency and macroSlammer-1.5.jar using velocity 1.5 beta 2. You will also need slammer.vm in the same directory to run.

It does appear to be fixed (or reoccur less often) in velocity 1.5 beta 2.

cheers,
Sam

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.4
>            Reporter: Sam Chang
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Updated: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Sam Chang (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sam Chang updated VELOCITY-514:
-------------------------------

    Affects Version/s:     (was: 1.4)
                       1.3.1

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Issue Comment Edited: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Norbert Pomaroli (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585043#action_12585043 ] 

norps edited comment on VELOCITY-514 at 4/3/08 3:40 AM:
-------------------------------------------------------------------

VeloMacroTest.java: Simple usecase to reproduce this bug with velocity-1.4 and velocity-1.5. Use with template recursive.vm

      was (Author: norps):
    Simple usecase to reproduce this bug with velocity-1.4 and velocity-1.5. Use with template recursive.vm
  
> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, recursive.vm, slammer.vm, VeloMacroTest.java
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562206#action_12562206 ] 

Nathan Bubna commented on VELOCITY-514:
---------------------------------------

or any test case you can share, simple or not quite simple?  (simple is preferred, but this sort of thing is going to be nigh impossible to fix or confirm fixed without being able to reproduce it)

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Commented: (VELOCITY-514) Rendering a template with inline macro concurrently causes VM error : Null AST

Posted by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org>.
    [ https://issues.apache.org/jira/browse/VELOCITY-514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12478395 ] 

Henning Schmiedehausen commented on VELOCITY-514:
-------------------------------------------------

Ok, so this _is_ VELOCITY-24 . The fix went in between beta-1 and beta-2 and if he can not reproduce it with beta-2, then it is good. Resolving it for good.

> Rendering a template with inline macro concurrently causes VM error : Null AST
> ------------------------------------------------------------------------------
>
>                 Key: VELOCITY-514
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-514
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.3.1, 1.4
>            Reporter: Sam Chang
>         Assigned To: Henning Schmiedehausen
>             Fix For: 1.5
>
>         Attachments: macroSlammer-1.4.jar, macroSlammer-1.5.jar, macroSlammer.jar, nullAST.log, slammer.vm
>
>
> 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org