com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes

Atlassian JIRA | Kara Hatherly | 4 years ago
  1. 0

    If JIM is made to generate a manifest at compilation time, JIRA subsequently chokes on installing the plugin, with the following output: {code} [INFO] [talledLocalContainer] com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:62) ... [INFO] [talledLocalContainer] Caused by: java.io.IOException: Error parsing class file [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:66) [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:195) [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:209) [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:58) [INFO] [talledLocalContainer] ... 87 more [INFO] [talledLocalContainer] Caused by: java.lang.IllegalArgumentException: Invalid class file (or parsing is wrong), Not an assoc at a method ref [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.getMethodDef(Clazz.java:1502) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.crawl(Clazz.java:1009) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.doCode(Clazz.java:958) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.doAttribute(Clazz.java:783) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.doAttributes(Clazz.java:751) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:560) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:369) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:359) [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:38) {code} Not sure if bumping the bndlib version to 1.50 would help, but it couldn't hurt to test. I marked 5.0 as affects version, because that's the only one I tested with, but I don't think the version of bndlib has been changed. Note: to build JIM with manifest generation instructions, you need to change the pom to also use version 3.11.1 (or higher) of the maven-jira-plugin.

    Atlassian JIRA | 4 years ago | Kara Hatherly
    com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes
  2. 0

    If JIM is made to generate a manifest at compilation time, JIRA subsequently chokes on installing the plugin, with the following output: {code} [INFO] [talledLocalContainer] com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:62) ... [INFO] [talledLocalContainer] Caused by: java.io.IOException: Error parsing class file [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:66) [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:195) [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:209) [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:58) [INFO] [talledLocalContainer] ... 87 more [INFO] [talledLocalContainer] Caused by: java.lang.IllegalArgumentException: Invalid class file (or parsing is wrong), Not an assoc at a method ref [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.getMethodDef(Clazz.java:1502) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.crawl(Clazz.java:1009) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.doCode(Clazz.java:958) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.doAttribute(Clazz.java:783) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.doAttributes(Clazz.java:751) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:560) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:369) [INFO] [talledLocalContainer] at aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:359) [INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:38) {code} Not sure if bumping the bndlib version to 1.50 would help, but it couldn't hurt to test. I marked 5.0 as affects version, because that's the only one I tested with, but I don't think the version of bndlib has been changed. Note: to build JIM with manifest generation instructions, you need to change the pom to also use version 3.11.1 (or higher) of the maven-jira-plugin.

    Atlassian JIRA | 4 years ago | Kara Hatherly
    com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes
  3. 0

    Its likely the plugin is not working correctly. {noformat} 2011-09-08 11:44:16,212 ERROR [main] [XmlDescriptorParser] There were problems loading the module 'commandDecorator' in plugin 'Maven Artifact Sharing'. The module has been disabled. 2011-09-08 11:44:16,213 ERROR [main] [XmlDescriptorParser] Cannot find ModuleDescriptor class for plugin of type 'commandDecorator'. com.atlassian.plugin.PluginParseException: Cannot find ModuleDescriptor class for plugin of type 'commandDecorator'. at com.atlassian.plugin.DefaultModuleDescriptorFactory.getModuleDescriptor(DefaultModuleDescriptorFactory.java:75) at com.atlassian.plugin.parsers.XmlDescriptorParser.createModuleDescriptor(XmlDescriptorParser.java:190) at com.atlassian.plugin.parsers.XmlDescriptorParser.configurePlugin(XmlDescriptorParser.java:142) at com.atlassian.plugin.loaders.SinglePluginLoader.loadPlugin(SinglePluginLoader.java:135) at com.atlassian.plugin.loaders.SinglePluginLoader.loadAllPlugins(SinglePluginLoader.java:89) at com.atlassian.plugin.loaders.ClassPathPluginLoader.loadClassPathPlugins(ClassPathPluginLoader.java:59) at com.atlassian.plugin.loaders.ClassPathPluginLoader.loadAllPlugins(ClassPathPluginLoader.java:67) at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:136) at com.atlassian.bamboo.container.BambooContainer.init(BambooContainer.java:171) at com.atlassian.bamboo.container.BambooContainer.initialise(BambooContainer.java:135) at com.atlassian.bamboo.upgrade.UpgradeLauncher.initialiseBambooContainer(UpgradeLauncher.java:176) at com.atlassian.bamboo.upgrade.UpgradeLauncher.upgradeAndStartBamboo(UpgradeLauncher.java:92) at com.atlassian.bamboo.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:39) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:633) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:228) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1160) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:576) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:492) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93) at org.eclipse.jetty.server.Server.doStart(Server.java:243) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) at com.atlassian.bamboo.server.Server.main(Server.java:75) {noformat}

    Atlassian JIRA | 5 years ago | James Dumay [Atlassian]
    com.atlassian.plugin.PluginParseException: Cannot find ModuleDescriptor class for plugin of type 'commandDecorator'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The component plugin module documentation has been reported to error out with Crowd 1.5 (but 1.6 works): {code} 2009-01-29 16:28:41,983 main ERROR [atlassian.plugin.parsers.XmlDescriptorParser] There were problems loading the module 'component' in plugin 'Palm x Manager Plugin'. The module has been disabled. 2009-01-29 16:28:41,985 main ERROR [atlassian.plugin.parsers.XmlDescriptorParser] Cannot find ModuleDescriptor class for plugin of type 'component'. com.atlassian.plugin.PluginParseException: Cannot find ModuleDescriptor class for plugin of type 'component'. at com.atlassian.crowd.plugin.descriptors.CrowdModuleDescriptorFactory.getModuleDescriptor(CrowdModuleDescriptorFactory.java:32) at com.atlassian.plugin.parsers.XmlDescriptorParser.createModuleDescriptor(XmlDescriptorParser.java:129) at com.atlassian.plugin.parsers.XmlDescriptorParser.configurePlugin(XmlDescriptorParser.java:90) at com.atlassian.plugin.loaders.SinglePluginLoader.loadPlugin(SinglePluginLoader.java:81) at com.atlassian.plugin.loaders.SinglePluginLoader.loadAllPlugins(SinglePluginLoader.java:47) at com.atlassian.plugin.loaders.ClassPathPluginLoader.loadClassPathPlugins(ClassPathPluginLoader.java:53) at com.atlassian.plugin.loaders.ClassPathPluginLoader.loadAllPlugins(ClassPathPluginLoader.java:70) at com.atlassian.plugin.DefaultPluginManager.init(DefaultPluginManager.java:95) etc. {code} Reference: http://forums.atlassian.com/thread.jspa?threadID=31671&tstart=0

    Atlassian JIRA | 8 years ago | David Yu
    com.atlassian.plugin.PluginParseException: Cannot find ModuleDescriptor class for plugin of type 'component'.
  6. 0

    [JRA-8009] java.lang.IllegalStateException: getAttribute: Session already invalidated when trying to call getAvailableActions or getFieldsForAction - Atlassian JIRA

    atlassian.com | 7 months ago
    com.atlassian.plugin.PluginParseException: Duplicate plugin key found: 'com.atlassian.jira.ext.rpc'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.plugin.PluginParseException

      Unable to scan for host components in plugin classes

      at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute()
    2. com.atlassian.plugin
      HostComponentSpringStage.execute
      1. com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:62)
      1 frame