求助:java.lang.ArrayIndexOutOfBoundsException: 18

笑笑520 发布于 2016/09/20 09:42
阅读 470
收藏 0

Maven install 的时候报错,菜鸟一个,不知道是程序的问题,还是pom.xml 的问题,求大神指导下

[INFO] --- maven-bundle-plugin:2.3.4:bundle (default-bundle) @ my-cyaction-app ---

java.lang.ArrayIndexOutOfBoundsException: 18

at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:412)

at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:333)

at aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:323)

at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:313)

at aQute.lib.osgi.Analyzer.analyzeJar(Analyzer.java:1646)

at aQute.lib.osgi.Analyzer.analyzeBundleClasspath(Analyzer.java:1534)

at aQute.lib.osgi.Analyzer.analyze(Analyzer.java:115)

at aQute.lib.osgi.Builder.analyze(Builder.java:296)

at aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:292)

at aQute.lib.osgi.Builder.build(Builder.java:68)

at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:375)

at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:270)

at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:224)

at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:215)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)

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:116)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)

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:498)

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] Error building bundle org.cytoscape.myapp:my-cyaction-app:bundle:1.0 : Exception: 18

[ERROR] Error building bundle org.cytoscape.myapp:my-cyaction-app:bundle:1.0 : Invalid class file: org/cytoscape/myapp/internal/FindInterfaceResidueAction$1.class

[ERROR] Error(s) found in bundle configuration

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 5.456 s

[INFO] Finished at: 2016-09-19T21:00:38+08:00

[INFO] Final Memory: 14M/240M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.3.4:bundle (default-bundle) on project my-cyaction-app: Error(s) found in bundle configuration -> [Help 1]

[ERROR] 

加载中
0
c
catlover
<plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.5.3</version>
        <dependencies>
          <dependency>
            <groupId>biz.aQute.bnd</groupId>
            <artifactId>bndlib</artifactId>
            <version>2.4.0</version>
          </dependency>
        </dependencies>
      <plugin>


POM找找这段,看看你的版本号是多少

笑笑520
笑笑520
回复 @catlover : 哦哦,谢谢#^_^#
c
catlover
回复 @笑笑520 : 这个我也没有了解原因的,是bndlib低版本的一个BUG吧,后面的版本进行修复了的~
笑笑520
笑笑520
回复 @catlover : 大神,膜拜,换成你的之后就成功了,好厉害,灰常感谢,可以给偶讲讲是什么原因吗
笑笑520
笑笑520
回复 @catlover : 好的,我试试,谢谢
c
catlover
回复 @笑笑520 : 我的maven-bundle-plugin版本号跟你报错信息里提示的不一致,你先备份好你的,然后用我的试试先
下一页
0
GoingHigh
GoingHigh
这个错误太抽象,最好把POM文件和关键代码贴出来,这样笔记容易定位问题
笑笑520
笑笑520
谢谢提醒,下次提问会仔细点
返回顶部
顶部