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

Jandex fails with NPE on Java 21 #957

Closed
tomas-langer opened this issue Jul 19, 2023 · 0 comments · Fixed by #956
Closed

Jandex fails with NPE on Java 21 #957

tomas-langer opened this issue Jul 19, 2023 · 0 comments · Fixed by #956
Assignees
Labels
bug Something isn't working JLink

Comments

@tomas-langer
Copy link
Member

tomas-langer commented Jul 19, 2023

Also build tool uses an older version that incorrectly tries to rebuild a newer index.

Stacktrace:

Caused by: java.lang.NullPointerException: Cannot read the array length because "bytes" is null
    at org.jboss.jandex.IndexWriterV2.writeByteTable (IndexWriterV2.java:228)
    at org.jboss.jandex.IndexWriterV2.write (IndexWriterV2.java:194)
    at org.jboss.jandex.IndexWriter.write (IndexWriter.java:107)
    at org.jboss.jandex.IndexWriter.write (IndexWriter.java:74)
    at io.helidon.build.linker.Jar.addIndex (Jar.java:567)
    at io.helidon.build.linker.Jar.copy (Jar.java:503)
    at io.helidon.build.linker.Jar.copyToDirectory (Jar.java:364)
    at io.helidon.build.linker.Application.lambda$install$1 (Application.java:102)

Related to helidon-io/helidon#7221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working JLink
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant