Uploaded image for project: 'Alkaes Minyaa Time'
  1. Alkaes Minyaa Time
  2. ALKMT-66

Plugin Installation fails with com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 6400.1.17
    • 6400.1.16
    • None
    • Minyaa Time 6400.1.16
      JIRA 6.4.12
      JDK 1.8
    • 6.4.x

      On installation, Minyaa Time fails with :

      2017-07-18 10:53:17,188 localhost-startStop-1 ERROR      [atlassian.plugin.loaders.ScanningPluginLoader] Because of the following exception:
      com.atlassian.plugin.PluginParseException: Unable to scan for host components in plugin classes
      	at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:62)
      	at com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:146)
      	at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:324)
      	at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:229)
      	at com.atlassian.jira.plugin.MasterPluginFactory.create(MasterPluginFactory.java:81)
      	...
      Caused by: java.io.IOException: Error parsing class file
      	at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:66)
      	at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:194)
      	at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:58)
      	... 32 more
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 18
      	at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:369)
      	at aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:359)
      	at com.atlassian.plugin.osgi.util.ClassBinaryScanner.scanClassBinary(ClassBinaryScanner.java:38)
      	... 34 more
      

      +Root cause : +

      • Minyaa Time has been built in Java 1.8,
      • JIRA 6.4.12 is executed in Java 1.8
      • BUT Plugin Parse fails during the transformation from JAR to OSGBi Bundle, because it does not support Java Lambda.

      Resolution : Lambda have been replaced by Java 1.7 code, always compiled in 1.8

      Waiting for the delivery of 6400.1.17 (few days) you can try (in Test Env. only) :
      http://www.minyaa.com/repository/m2/fr/alkaes/minyaa/jira-plugin-minyaa-time/6400.1.17-SNAPSHOT/jira-plugin-minyaa-time-6400.1.17-SNAPSHOT.obr

            vthoule Vincent Thoulé
            vthoule Vincent Thoulé
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: