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.



1 answer

1 accepted

2 votes
Accepted answer

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.



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,526 views 25 14
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