Error viewing migrated space
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
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.
*Fisheye および Crucible は除く
問題
You recently upgraded Confluence and are now encountering a stack trace when accessing any page in a given space. Accessing other spaces works as expected.
The following appears in the onscreen stack trace:
caused by: java.lang.RuntimeException: Error rendering template for decorator sharedcomments
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:186)
caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/decorators/components/sharedcomments.vmd'
at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:401)
Stack Trace:[hide]
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)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.Template.merge(Template.java:328)
at org.apache.velocity.Template.merge(Template.java:235)
...
Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/decorators/components/<something>.vmd'
原因
The space(s) in question were created using an older template. Some of the content of these legacy templates are no longer available.
回避策
<confluence-base_url>/spaces/choosetheme.action?key=<space_key>
に移動します。- This should present an interface for accessing the properties assigned to the given space
- Click the
Themes
tab - Select "Default" (this will remove the custom theme and allow the space to render normally)