java.lang.RuntimeException: Error rendering template for decorator root - In one Page

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

A stack trace error appears when visiting a page. Other pages in the space do not exhibit this error.

atlassian-confluence.log に次のエラーが返される。

2015-02-09 09:12:27,055 WARN [http-8090-52] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr
 -- url: /apps/wiki/plugins/pagetree/naturalchildren.action | userName: user | referer: URL
2015-02-09 09:12:28,103 WARN [http-8090-45] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr
 -- url: /apps/wiki/plugins/editor-loader/editor.action | userName: user | referer: URL
2015-02-09 09:12:28,273 WARN [http-8090-52] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr
 -- url: /apps/wiki/plugins/macrobrowser/browse-macros.action | userName: user | referer: URL
2015-02-09 09:12:33,557 WARN [http-8090-52] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr
 -- url: /apps/wiki/display/SPC/Home | userName: user | referer: URL
2015-02-09 09:12:33,590 WARN [http-8090-52] [atlassian.confluence.themes.DefaultThemeManager] extractTheme Unable to find configured theme module: com.atlassian.confluence.themes.clickr:clickr
 -- url: /apps/wiki/display/SPC/Home | page: 12208 | userName: user | referer: URL | action: viewpage
2015-02-09 09:12:33,594 ERROR [http-8090-52] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/pages/viewpage.vm'
 -- url: /apps/wiki/display/SPC/Home | page: 12208 | userName: user | referer: URL| action: viewpage
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)
    at com.opensymphony.webwork.dispatcher.VelocityResult.doExecute(VelocityResult.java:91)
    at com.atlassian.xwork.results.ProfiledVelocityResult.doExecute(ProfiledVelocityResult.java:21)
    at com.atlassian.confluence.setup.webwork.EncodingVelocityResult.doExecute(EncodingVelocityResult.java:48)
....
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Error rendering template for decorator page
    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.ASTBlock.render(ASTBlock.java:72)
....
Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/decorators/includes/pageprefs.vm'
    at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.loadResource(ConfigurableResourceManager.java:404)
    at com.atlassian.confluence.util.velocity.ConfigurableResourceManager.getResource(ConfigurableResourceManager.java:308)
    at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400)
....

診断

Enable Safe Mode in Confluence and check if you have similar problem after that or not.

原因

This issue might be related to the themes in Confluence. There are some warning message in the logs before the error that shows which theme is the problematic theme.

回避策

  1. Enable Safe Mode in Confluence.
  2. Disable Third Party Themes (if any).

ソリューション

  • Upgrade to the latest compatible version of Third Party Themes.
  • Use Default Themes of Confluence.

最終更新日 2018 年 11 月 15 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.