It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

MacroOverflowException: Where to set the maximum calling depth?

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
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

32 views 2 4
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you