Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-40717

Confluence slow startup because it is trying to start Hipchat plugin which have dependency on another plugin which has been disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 6.1.0
    • 5.8.18, 5.9.4, 5.9.9, 5.10.6, 5.10.8, 6.0.1, 6.0.3
    • None

    Description

      Summary

      Confluence will attempt to start plugin which have dependency on another plugin which has been disable. The confluence should disable the plugin which it has dependency on another plugin that has been disable

      Step to reproduce:

      1. Disable the following plugin
        • Atlassian Hipchat Integration Plugin
        • Atlassian Hipchat Integration Plugin Core
      2. The following plugin which it has depency on the plugins above will be shown as disable in the manage add ons page
        • Confluence Hipchat Emoticons Plugin
        • Confluence Hipchat Integration Plugin
      3. Restart Confluence

      Expected result, all the plugin related

      The Confluence will not attempt to start the hipchat plugin

      Observed Result

      The Confluence is still trying to start the hipchat plugin which suppose to be disabled. This will slowdown the startup as it will attempt to start the plugin before timeout.

      'com.atlassian.confluence.plugins.confluence-hipchat-emoticons-plugin' never resolved service '&hipChatLinkProvider' with filter '(objectClass=com.atlassian.plugins.hipchat.api.link.HipChatLinkProvider)'
      2016-01-13 10:08:25,552 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.confluence.plugins.confluence-hipchat-emoticons-plugin'
      org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.confluence.plugins.confluence-hipchat-emoticons-plugin' has timed out waiting for (objectClass=com.atlassian.plugins.hipchat.api.link.HipChatLinkProvider)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
      	at java.util.TimerThread.mainLoop(Timer.java:555)
      	at java.util.TimerThread.run(Timer.java:505)
      2016-01-13 10:08:25,603 ERROR [Spring DM Context Creation Timer] [extender.internal.support.ExtenderConfiguration] onOsgiApplicationEvent Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.confluence.plugins.confluence-hipchat-emoticons-plugin, config=osgibundle:/META-INF/spring/*.xml))
      org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.confluence.plugins.confluence-hipchat-emoticons-plugin' has timed out waiting for (objectClass=com.atlassian.plugins.hipchat.api.link.HipChatLinkProvider)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
      	at java.util.TimerThread.mainLoop(Timer.java:555)
      	at java.util.TimerThread.run(Timer.java:505)
      2016-01-13 10:08:25,606 ERROR [Spring DM Context Creation Timer] [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] fail Unable to create application context for [com.atlassian.confluence.plugins.confluence-hipchat-emoticons-plugin], unsatisfied dependencies: Dependency on [(objectClass=com.atlassian.plugins.hipchat.api.link.HipChatLinkProvider)] (from bean [&hipChatLinkProvider])
      org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.confluence.plugins.confluence-hipchat-emoticons-plugin' has timed out waiting for (objectClass=com.atlassian.plugins.hipchat.api.link.HipChatLinkProvider)
      

      Workaround

      Disable all the hipchat plugin in the following order:

      1. Confluence Hipchat Emoticons Plugin
      2. Confluence Hipchat Integration Plugin
      3. Atlassian Hipchat Integration Plugin
      4. Atlassian Hipchat Integration Plugin Core

      Please note, you will need to disable the plugins in the following order else the plugin will be show as disable in the manage-add-ons however it is not save as disable in the database. Also note that removing the Add-Ons will cause Confluence to fall back to the default versions from installations.

      Alternatively, upgrade all the Add-Ons to the latest version and leave active as this issue has also been resolved within the Add-ons.

      Attachments

        Issue Links

          Activity

            People

              jgiacoppo Jade Giacoppo (Inactive)
              jcheok Jing Hwa Cheok (Inactive)
              Votes:
              22 Vote for this issue
              Watchers:
              34 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: