Legacy Calendar plugin issue -- errors & sluggish performance

We're using the legacy Calendar plugin (migrated slightly to work with Confluence 5), and one of our calendar navigation and loading is a bit sluggish and throws errors fairly frequently. It has a fair amount of data in it, but the same calendar works fine in our sandbox environment without any of the same issues.

The confluence log reports the following stacktrace:

org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getEvents' in class com.atlassian.confluence.extra.calendar.display.Day threw exception java.util.ConcurrentModificationException at /templates/extra/calendar/month.vm[line 38, column 38]

at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:223)

at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)

at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:507)

at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)

Has anyone else run into this issue before?

Note: This is not the Team Calendars product that Atlassian offers, but the Calendar Plugin that was offered before it was commercialized.

Thanks,

Jim

1 answer

1 accepted

Hi Jim,

Have you compared the system information from both prod and staging? If the application is the same for both staging and prod, but the behavior is different, then there must be something environmentally different.

I would look to ensure the same jdk version is installed, same version of tomcat etc. Possibly run a diff on all the files under the confluence/ deployment folders.

Hi Ryan,

Turns out the solution was to upgrade the Java code to use ConcurrentHashMaps instead of HashSets. This fixed the ConcurrentModificationExceptions. There was a little bit of touching up of the javascript that needed to happen as well, but it was pretty minor.

Thanks,

Jim

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

377 views 20 10
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you