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

ZenFoundation's include-section macro crashes JVM when used with unexisting page

Gregory Joseph Apr 25, 2013

The following makes our JVM crash with no specific log messages

<ac:macro ac:name="include-section">
      <ac:parameter ac:name="page">Some unexisting page</ac:parameter>

It is possible to reproduce this using the macro browser tool, too. We started seeing this after deleting a page used in this macro. As it stands, I can't even be sure if that's the only macro showing this behavior.

Is there anything I can do, other than disable the macro ? Have others seen the same problem ? Do I have any other choice than try all macros for possibly similar behavior ?

java version "1.6.0_32"

Java(TM) SE Runtime Environment (build 1.6.0_32-b05)

Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)

2 answers

1 accepted

1 vote
Answer accepted
Darryl Duke Apr 25, 2013

Yikes! Thanks for posting this, Gregory. We're on it, and will have this fixed for Zen 5.2.9.

Darryl Duke Apr 25, 2013

Update: we have found and fixed the problem.

We will review all Zen macros to make sure this isn't a problem anywhere else, and will post anything else we find.

Gregory Joseph Apr 26, 2013

Thanks for the quick reaction. I'm curious what this stack overflow in CharsetDecoder could be.

Any ETA for 5.2.9 yet ?

Darryl Duke Apr 26, 2013

No hard date set, but we're aiming for the next 3-4 weeks.

0 votes
Gregory Joseph Apr 25, 2013

After updating to 1.6.0_45, the JVM stopped crashing, and we now see this, which confirms my suspicion that this was similar to CONF-15247:

2013-04-26 18:09:26,407 ERROR [http-8090-6] [confluence.util.velocity.VelocityUtils] getRenderedTemplate Error occurred rendering template: zen/templates/include-section.vm
 -- referer: | url: /display/SANDBOX/test2 | userName: gjoseph | action: viewpage | page: 64520194
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getIncludedContent' in  class com.zenfoundation.macros.IncludeSectionMacro threw exception java.lang.StackOverflowError at theme/html/macros/include-section.html[line 2, column 42]
	at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(

Caused by: java.lang.StackOverflowError
	at java.nio.charset.CharsetDecoder.<init>(
	at java.nio.charset.CharsetDecoder.<init>(
	at sun.nio.cs.US_ASCII$Decoder.<init>(
	at sun.nio.cs.US_ASCII$Decoder.<init>(
	at sun.nio.cs.US_ASCII.newDecoder(
	at java.lang.StringCoding$StringDecoder.<init>(

which is then followed by

2013-04-26 18:09:26,629 ERROR [http-8090-6] [sf.hibernate.collection.PersistentCollection] initialize Failed to lazily initialize a collection
 -- referer: | url: /display/SANDBOX/test2 | userName: gjoseph | action: viewpage | page: 64520194
net.sf.hibernate.HibernateException: collection was evicted
	at net.sf.hibernate.impl.SessionImpl.initializeCollection(


I'd attach the full stacktrace if I could; I'll be happy to email it to anyone who could help fixing this.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,299 views 8 19
Read article

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