Unable to Enable Team Calendars for Confluence after Upgrading Plugin to Version 2.5.0 or Higher

お困りですか?

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

コミュニティに質問

症状

After upgrading the Team Calendars for Confluence to version 2.5.0, the plugin fails to enable, with this error message after any attempts to enable the plugin: This plugin failed to enable. Your license may be invalid. Please refer to the logs for more information.  The following appears in the atlassian-confluence.log:

 2012-10-05 17:52:44,643 ERROR [Spring executor 25] [plugin.osgi.factory.OsgiPlugin] onSpringContextFailed Unable to start the Spring context for plugin com.atlassian.confluence.extra.team-calendars
 -- referer: http://localhost:8420/c42/plugins/servlet/upm | url: /c42/rest/plugins/1.0/ | userName: admin
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myWorkIntegration' defined in URL [bundle://130.0:0/META-INF/spring/spring-components.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: com.atlassian.upm.license.internal.event.PluginLicenseEventPublisherImpl cannot be cast to com.atlassian.upm.api.license.PluginLicenseEventRegistry
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
....
Caused by: java.lang.ClassCastException: com.atlassian.upm.license.internal.event.PluginLicenseEventPublisherImpl cannot be cast to com.atlassian.upm.api.license.PluginLicenseEventRegistry
...

原因

Corrupted plugin cache.

ソリューション

Update the plugin manager (Confluence Admin >> Plugins >> Update - the blue bar notification that requests you to update your plugin manager) and update all outdated plugins. Then clear the plugin cache by doing the following:

  1. Confluence をシャットダウンします。
  2. Confluence を実行しているユーザーに confluence-home ディレクトリへの完全な読み取り / 書き込み権限が割り当てられていることを確認します。
  3. 次のディレクトリを削除します。
    (warning) これはプラグイン キャッシュ ファイルのみを削除し、プラグインの完全な削除は行いません。これらのディレクトリは、Confluence の次回の起動時に再作成されます。ただし、サードパーティ プラグインによっては、このディレクトリにメタデータを格納している可能性があります。このため、ディレクトリの一時的なバックアップを作成しておくことをおすすめします。
    • <confluence-home>/bundled-plugins
    • <confluence-home>/plugins-cache
    • <confluence-home>/plugins-osgi-cache
    • <confluence-home>/plugins-temp
    • <confluence-home>/bundled-plugins_language
  4. Confluence を起動します。
 

After that, restart Confluence, and try to either enable or install the Team Calendars for Confluence 2.5.0 or higher again.

最終更新日: 2016 年 2 月 26 日

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

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