java.lang.ClassCastException: com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor cannot be cast to com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor

Atlassian JIRA | Michael Tokar | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I have seen this on GDOG, and on my own spun-up OD instance. # Start up JIRA OnDemand. I used jira-master fireball #569. This has GH version 6.0.2-rc1 bundled. # Install GH 6.0.4-SNAPSHOT into the instance # External System Import does not work - clicking on a system to import from returns a 500 page with the following stack trace: {code} 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) {code} Restarting the OnDemand instance fixes the problem. It appears to be a class loader issue. But I'm not too familiar with the code.

    Atlassian JIRA | 5 years ago | Michael Tokar
    java.lang.ClassCastException: com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor cannot be cast to com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor
  2. 0

    I have seen this on GDOG, and on my own spun-up OD instance. # Start up JIRA OnDemand. I used jira-master fireball #569. This has GH version 6.0.2-rc1 bundled. # Install GH 6.0.4-SNAPSHOT into the instance # External System Import does not work - clicking on a system to import from returns a 500 page with the following stack trace: {code} 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) {code} Restarting the OnDemand instance fixes the problem. It appears to be a class loader issue. But I'm not too familiar with the code.

    Atlassian JIRA | 5 years ago | Michael Tokar
    java.lang.ClassCastException: com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor cannot be cast to com.atlassian.jira.plugins.importer.extensions.ExternalSystemImporterModuleDescriptor

    Root Cause Analysis

    1. 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()
    2. com.atlassian.jira
      DefaultSimpleLinkManager.getLinksForSection
      1. com.atlassian.jira.plugins.importer.web.wizard.TabsSimpleLinkFactory.getLinks(TabsSimpleLinkFactory.java:53)
      2. com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinks(DefaultSimpleLinkManager.java:190)
      3. com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinksForSection(DefaultSimpleLinkManager.java:124)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. com.atlassian.multitenant
      MultiTenantComponentFactoryImpl$MultiTenantAwareInvocationHandler.invoke
      1. com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$AbstractMultiTenantAwareInvocationHandler.invokeInternal(MultiTenantComponentFactoryImpl.java:181)
      2. com.atlassian.multitenant.impl.MultiTenantComponentFactoryImpl$MultiTenantAwareInvocationHandler.invoke(MultiTenantComponentFactoryImpl.java:211)
      2 frames
    5. Unknown
      $Proxy309.getLinksForSection
      1. $Proxy309.getLinksForSection(Unknown Source)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    7. com.atlassian.plugin
      DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
      1 frame
    8. Unknown
      $Proxy309.getLinksForSection
      1. $Proxy309.getLinksForSection(Unknown Source)
      1 frame
    9. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor555.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    10. com.atlassian.plugin
      HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke
      1. com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
      1 frame
    11. Unknown
      $Proxy309.getLinksForSection
      1. $Proxy309.getLinksForSection(Unknown Source)
      1 frame
    12. com.atlassian.studio
      GlobalAdminServlet.service
      1. com.atlassian.studio.jira.webfragment.DefaultStudioWebInterfaceManager.getLinksForSection(DefaultStudioWebInterfaceManager.java:159)
      2. com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.addMenuItems(GlobalAdminServlet.java:346)
      3. com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.getMenuItems(GlobalAdminServlet.java:313)
      4. com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.getVelocityParams(GlobalAdminServlet.java:204)
      5. com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.applyDecoratorUsingVelocity(GlobalAdminServlet.java:132)
      6. com.atlassian.studio.jira.globaladmin.GlobalAdminServlet.service(GlobalAdminServlet.java:113)
      6 frames