Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

MacroOverflowException: Where to set the maximum calling depth?

Anthony_Haxby
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 15, 2019

Our organization is having an issue with a velocity template that contains a recursive macro.  The exception message is:

org.apache.velocity.exception.MacroOverflowException: Max calling depth of 20 was exceeded in Template

(Note that the velocity template in question is custom build-for and deployed through the Scroll Viewport plug-in).

The Confluence installation is on-premise and the version # is 6.14.

Reviewing the configuration in the installation folder the velocity.properties file has the "velocimacro.max.depth" configuration assigned to "-1" (no limit).

velocimacro.max.depth=-1

It's my understanding that this is the only configuration variable that controls the macro recursion depth.  However, regardless of this setting the custom velocity template fails at depth 20.

Can anyone provided guidance on how to resolve this?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events