The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events