The current version of bndlib used by JIRA chokes on processing org.xerial:sqlite-jdbc, which is a library included by JIM

XMLWordPrintable

    • 5
    • 1
    • Severity 2 - Major
    • 0

      If JIM is made to generate a manifest at compilation time, JIRA subsequently chokes on installing the plugin, with the following output:

      [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)
      

      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.

            Assignee:
            Unassigned
            Reporter:
            kara
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: