[ https://issues.apache.org/jira/browse/FELIX-4556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14213555#comment-14213555 ]
Benson Margulies commented on FELIX-4556: ----------------------------------------- I think I hit this without Java 8. See bnd issue 685, which I'm told duplicates 603, and in turn that there is a fix released already in bndlib 2.4.0, so the maven plugin could release. > Maven Bundle Plugin fails with ArrayIndexOutOfBoundsException, "Invalid Class > File" errors with Java 8 features > --------------------------------------------------------------------------------------------------------------- > > Key: FELIX-4556 > URL: https://issues.apache.org/jira/browse/FELIX-4556 > Project: Felix > Issue Type: Bug > Components: Maven Bundle Plugin > Affects Versions: maven-bundle-plugin-2.5.0 > Environment: Apache Maven 3.0.5 > Java version: 1.8.0_05, vendor: Oracle Corporation > OS name: "linux", version: "3.13.0-30-generic", arch: "amd64", family: "unix" > Reporter: EugenePig > Fix For: maven-bundle-plugin-future > > > This issue had been fixed in maven-bundle-plugin-2.4.0. It comes out again. > Please refer to FELIX-4005. > [INFO] --- maven-bundle-plugin:2.5.0:bundle (default-bundle) @ importer-app > --- > java.lang.ArrayIndexOutOfBoundsException: 34983 > at aQute.bnd.osgi.Clazz.classConstRef(Clazz.java:1862) > at aQute.bnd.osgi.Clazz.crawl(Clazz.java:1166) > at aQute.bnd.osgi.Clazz.doCode(Clazz.java:1134) > at aQute.bnd.osgi.Clazz.doAttribute(Clazz.java:945) > at aQute.bnd.osgi.Clazz.doAttributes(Clazz.java:910) > at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:741) > at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:494) > at aQute.bnd.osgi.Clazz.parseClassFileWithCollector(Clazz.java:483) > at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:473) > at aQute.bnd.osgi.Analyzer.analyzeJar(Analyzer.java:2177) > at aQute.bnd.osgi.Analyzer.analyzeBundleClasspath(Analyzer.java:2083) > at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:138) > at aQute.bnd.osgi.Builder.analyze(Builder.java:343) > at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:616) > at aQute.bnd.osgi.Builder.build(Builder.java:80) > at > org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:612) > at > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:375) > at > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:292) > at > org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:283) > at > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) > at > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:483) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > at > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > at > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > at > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > [ERROR] Bundle com.memory.app:importer-app:bundle:1.0.0 : Exception: 34983 > [ERROR] Bundle com.memory.app:importer-app:bundle:1.0.0 : Invalid class file > com/ibm/icu/text/SimpleDateFormat.class > (java.lang.ArrayIndexOutOfBoundsException: 34983) -- This message was sent by Atlassian JIRA (v6.3.4#6332)