Installing newer GH version in OnDemand causes JIM to stop working

XMLWordPrintable

    • Type: Bug
    • Resolution: Tracked Elsewhere
    • Priority: High
    • None
    • Affects Version/s: 6.0.2
    • Component/s: None
    • 6

      I have seen this on GDOG, and on my own spun-up OD instance.

      1. Start up JIRA OnDemand. I used jira-master fireball #569. This has GH version 6.0.2-rc1 bundled.
      2. Install GH 6.0.4-SNAPSHOT into the instance
      3. External System Import does not work - clicking on a system to import from returns a 500 page with the following stack trace:
      Cause: 
      java.lang.ClassCastException: com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor cannot be cast to com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor
      Stack Trace: [hide]
      java.lang.ClassCastException: com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor cannot be cast to com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor
      	at com.atlassian.jira.plugins.importer.web.wizard.TabsSimpleLinkFactory.getLinks(TabsSimpleLinkFactory.java:53)
      	at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinks(DefaultSimpleLinkManager.java:190)
      	at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinksForSection(DefaultSimpleLinkManager.java:124)
      	at sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$AbstractMultiTenantAwareInvocationHandler.invokeInternal(MultiTenantComponentFactoryImpl.java:181)
      	at com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$MultiTenantAwareInvocationHandler.invoke(MultiTenantComponentFactoryImpl.java:211)
      	at $Proxy309.getLinksForSection(Unknown Source)
      	at sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
      	at $Proxy309.getLinksForSection(Unknown Source)
      	at sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
      	at $Proxy309.getLinksForSection(Unknown Source)
      	at com.atlassian.studio.jira.webfragment.DefaultStudioWebInterfaceManager.getLinksForSection(DefaultStudioWebInterfaceManager.java:159)
      	at com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.addMenuItems(GlobalAdminServlet.java:346)
      	at com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.getMenuItems(GlobalAdminServlet.java:313)
      	at com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.getVelocityParams(GlobalAdminServlet.java:204)
      	at com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.applyDecoratorUsingVelocity(GlobalAdminServlet.java:132)
      	at com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.service(GlobalAdminServlet.java:113)
      

      Restarting the OnDemand instance fixes the problem.

      It appears to be a class loader issue. But I'm not too familiar with the code.

            Assignee:
            Unassigned
            Reporter:
            Michael Tokar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: