Error rendering template for decorator root in dashboard due to custom welcome message
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
Problem
When trying to access the Dashboard, the following error appears:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
java.lang.RuntimeException: Error rendering template for decorator root
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186)
caused by: java.lang.RuntimeException: Error rendering template for decorator global
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186)
caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'getWelcomeMessage' in class
com.atlassian.confluence.dashboard.actions.DashboardAction threw
exception [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </xml>; expected </p>. at [row,col
{unknown-source}]: [2,133] at /decorators/global.vmd[line 30, column 33]
at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:223)
In addition to that, the following appears in the atlassian-confluence.log
after performing upgrade:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2013-11-13 15:31:20,986 ERROR [http-8090-2] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/dashboard/dashboard.vm'
-- action: dashboard
java.lang.RuntimeException: Error rendering template for decorator root
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
...
Caused by: java.lang.RuntimeException: Error rendering template for decorator global
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
...
Caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getWelcomeMessage' in class com.atlassian.confluence.dashboard.actions.DashboardAction threw exception [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </xml>; expected </p>.
at [row,col {unknown-source}]: [2,133] at /decorators/global.vmd[line 30, column 33]
at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:223)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
...
Caused by: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </xml>; expected </p>.
at [row,col {unknown-source}]: [2,133]
at com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45)
at com.ctc.wstx.evt.FilteredEventReader.hasNext(FilteredEventReader.java:72)
...
Caused by: com.ctc.wstx.exc.WstxParsingException: Unexpected close tag </xml>; expected </p>.
at [row,col {unknown-source}]: [2,133]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:630)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
...
Cause
Confluence Default Welcome Message is customized and contains inappropriate content that breaks the dashboard rendering process.
Resolution
Reset the Custom Welcome Message to default in Confluence Admin >> Global Templates.
Was this helpful?