Error rendering macro calendar
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
This was encountered in Confluence 5.0-OD-19. If this happens to a different version of Confluence, please create a support request in https://support.atlassian.com/customer/home to get assistance.
An error like this will be shown in the screen: Error rendering macro 'calendar' : null. The following appears in the atlassian-confluence.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2013-01-29 17:14:05,822 ERROR [http-8090-3] [opensymphony.xwork.util.CompoundRootAccessor] getProperty Caught an Ognl exception while getting property calendarHtml
-- url: /calendar/mycalendar.action | userName: sysadmin | action: mycalendar
ognl.OgnlException: calendarHtml [java.lang.NullPointerException]
at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:917)
at ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:54)
at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1603)
at com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:97)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1603)
at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
at ognl.SimpleNode.getValue(SimpleNode.java:193)
at ognl.Ognl.getValue(Ognl.java:333)
at ognl.Ognl.getValue(Ognl.java:310)
at com.opensymphony.xwork.util.OgnlValueStack.findValue(OgnlValueStack.java:141
Cause
There's an application link that is preventing the calendar from working properly.
Resolution
Run the following query to delete the application links:
1
DELETE FROM bandana WHERE bandanakey like '%applinks%';
⚠️ Make a database backup before running any SQL query.
Was this helpful?