Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Critical Error during build "java.lang.ArrayIndexOutOfBoundsException" #40

Closed
reyman opened this issue Dec 2, 2017 · 7 comments
Closed
Labels

Comments

@reyman
Copy link

reyman commented Dec 2, 2017

Hi,
I'm using Goomph for Genstar project. Everything works well in the past, but i have this new error with the new version of goomph 3.8.1 and gradle 4.3.1 when i try to clean build using the new...

You could try to compile the project here if you want to reproduce the error : https://github.com/ANRGenstar/gamaplugin

        at aQute.bnd.osgi.Clazz.parseClassFileWithCollector(Clazz.java:428)
        at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:418)
        at aQute.bnd.osgi.Analyzer.analyzeJar(Analyzer.java:1856)
        at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:171)
        at aQute.bnd.osgi.Builder.analyze(Builder.java:326)
        at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:344)
        at aQute.bnd.osgi.Builder.build(Builder.java:77)
        at com.diffplug.gradle.osgi.BndManifestPlugin.lambda$takeBndAction$3(BndManifestPlugin.java:183)
        at com.diffplug.common.base.Errors.lambda$wrap$5(Errors.java:218)
        at com.diffplug.common.base.Errors.run(Errors.java:210)
        at com.diffplug.gradle.osgi.BndManifestPlugin.takeBndAction(BndManifestPlugin.java:147)
        at com.diffplug.gradle.osgi.BndManifestPlugin.lambda$null$1(BndManifestPlugin.java:115)
        at com.diffplug.common.base.Errors.lambda$wrap$6(Errors.java:230)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:784)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:751)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)

@nedtwigg nedtwigg added the bug label Dec 2, 2017
@nedtwigg
Copy link
Member

nedtwigg commented Dec 2, 2017

Pretty sure this is a bug in bndlib.

  • Goomph up to 3.7.3 used bndlib 3.2.0
  • Goomph 3.8.0 used bndlib 3.4.0
  • Goomph 3.9.0 will use bndlib 3.5.0

Can you see if 3.9.0-SNAPSHOT fixes it? Available here: https://oss.sonatype.org/content/repositories/snapshots/com/diffplug/gradle/goomph/

@nedtwigg nedtwigg reopened this Dec 2, 2017
@reyman
Copy link
Author

reyman commented Dec 3, 2017

Hum, array bug persist with 3.9.0-SNAPSHOT :(

@nedtwigg
Copy link
Member

nedtwigg commented Dec 3, 2017

I just uploaded a new 3.9.0-SNAPSHOT, with bndlib back to its original 3.2.0. Can you try one more time, with --refresh-dependencies to make sure you have the latest?

@reyman
Copy link
Author

reyman commented Dec 3, 2017

Nop, nothing change, i also reported the error on bnd issue tracker. Error appear with * option in conditional package. This is strange, i have not this error on old version of goomph.

@nedtwigg
Copy link
Member

nedtwigg commented Dec 3, 2017 via email

@reyman
Copy link
Author

reyman commented Dec 3, 2017

Dependencies before recent modification :

    dependencies {
        classpath 'org.hidetake:gradle-ssh-plugin:2.7.2'
        classpath "org.standardout:bnd-platform:1.5.0"
        classpath "com.diffplug.gradle:goomph:3.7.0"
    }

@reyman
Copy link
Author

reyman commented Dec 5, 2017

Ok finally, the problem is linked to bnd-platform which uses a very old version of bnd 2.2.0, so i upgrade to latest snapshot which use 3.x, and now it's works ... Thanks and sorry for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants