日時ゾーン ID が認識されない

お困りですか?

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

コミュニティに質問

プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

症状

Error messages where macros should be rendering.

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

Caused by: java.lang.IllegalArgumentException: The datetime zone id is not recognised: SystemV/CST6CDT
at org.joda.time.DateTimeZone.forTimeZone(DateTimeZone.java:310)
at com.atlassian.confluence.core.datetime.FriendlyDateFormatter.isYesterday(FriendlyDateFormatter.java:91)
at com.atlassian.confluence.core.datetime.FriendlyDateFormatter.getFormatMessage(FriendlyDateFormatter.java:75)

The error is preceded by the following error:

Caused by:

java.lang.RuntimeException: Error rendering template for decorator root
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:232)

caused by: java.lang.RuntimeException: Error rendering template for decorator page
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:232)

caused by: java.lang.RuntimeException: Error rendering template for decorator root
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:232)

caused by: java.lang.RuntimeException: Error rendering template for decorator comments
at com.atlassian.confluence.setup.velocity.ApplyDecoratorDirective.render(ApplyDecoratorDirective.java:232)

caused by: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'formatFriendlyDate' in class com.atlassian.confluence.pages.actions.ViewPageAction threw exception java.lang.IllegalArgumentException: The datetime zone id is not recognised: SystemV/CST6CDT @ /decorators/components/comments.vmd[44,29]
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)

caused by: java.lang.IllegalArgumentException: The datetime zone id is not recognised: SystemV/CST6CDT
at org.joda.time.DateTimeZone.forTimeZone(DateTimeZone.java:310)

Confluence may also log errors such as this:

ERROR [http-8090-3] [confluence.util.velocity.VelocityUtils] getRenderedTemplate Error occurred rendering template: com/atlassian/confluence/plugins/macros/advanced/recentupdate/themes/concise/macro-template.vm
 -- url: /display/test/test+page | page: 950275 | userName: admin | referer: http://localhost:8090/ | action: viewpage
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getFormattedDate' in  class com.atlassian.confluence.plugins.macros.advanced.recentupdate.ContentUpdateItem threw exception java.lang.IllegalArgumentException: The datetime zone id 'SystemV/EST5' is not recognised at /com/atlassian/confluence/plugins/macros/advanced/recentupdate/themes/concise/updates.vm[line 15, column 29]
	at org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:223)
Caused by: java.lang.IllegalArgumentException: The datetime zone id 'SystemV/EST5' is not recognised
	at org.joda.time.DateTimeZone.forTimeZone(DateTimeZone.java:365)


  1. Accessing a space with a Default Theme will produce the error above. Other Confluence themes (eg. Clickr, Left Navigation) are not affected.
  2. This is known to affect the recently updated macro to display "500 Internal Server" error message in red box.

原因

  1. Java detects the default system timezone is incorrectly set. For example, the system is configured for a region (eg. "US/Pacific"), however Java reports it as something else (eg. "SystemV/CST6CDT").
  2. In the Sun's bug report, it was found that /etc/localtime in the tester's environment was no longer a link. Changing the link to a symbolic link to "/usr/share/zoneinfo/US/Pacific" allowed Java to work correctly again.
  3. A macro is looking to convert the date using the timezone supplied to by the jdk, but the jdk does not recognize the timezone.
  4. It was found that this issue can also be caused by the usage of the cache plugin macro together with Team Calendars for Confluence. It is suggested to disable this plugin to troubleshoot this issue if necessary.

ソリューション

There are two resolutions:

  1. Add -Duser.timezone=<YourTimeZone> to the jvm arguments as described here: Configuring System Properties.
    List of supported timezones: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
     
    OR
  2. Change /etc/localtime to a symbolic link again

    tip/resting Created with Sketch.

    After making the change, restart Confluence

最終更新日: 2024 年 12 月 20 日

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

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