Error rendering macro calendar
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
:
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:
DELETE FROM bandana WHERE bandanakey like '%applinks%';
Make a database backup before running any SQL query.