Skip to content

[Native Image] Fatal error: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1 #11278

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

Open
1 task
Bpby222 opened this issue May 28, 2025 · 5 comments
Assignees

Comments

@Bpby222
Copy link

Bpby222 commented May 28, 2025

Describe the Issue

Image

Using the latest version of GraalVM can resolve many issues.

GraalVM Version

java version "21.0.4" 2024-07-16 LTS
Java(TM) SE Runtime Environment Oracle GraalyM 21.0.4+8.1 (build 21.0.4+8-LTS-jvmci-23.1-b41)
Java Hotspot(TM) 64-Bit server VM oracle GraalVM 21.0.4+8,1 (build 21.0.4+8-LTS-jvmci-23.1-b41, mixed mode, sharing)

Operating System and Version

UTC 2021 x86 64 x86 64 x86 64 GNU/Linux

Build Command

Image

Expected Behavior

build success

Actual Behavior

Fatal error: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1

Steps to Reproduce

mvn -X-pl start native:compile -Ptest-DskipTests=true --settings ./settings.xml

Additional Context

No response

Build Log Output and Error Messages

No response

@selhagani
Copy link
Member

Hi @Bpby222,

Thank you for reaching out to us.
I see that you're using an old version of GraalVM. Could you please upgrade to the latest version that you can find here to check if doing so would fix your issue? https://github.com/graalvm/graalvm-ce-builds/releases/

@Bpby222
Copy link
Author

Bpby222 commented May 29, 2025

Hi @Bpby222,

Thank you for reaching out to us. I see that you're using an old version of GraalVM. Could you please upgrade to the latest version that you can find here to check if doing so would fix your issue? https://github.com/graalvm/graalvm-ce-builds/releases/

Upgrades aren't permitted right now. What seems to be the issue?

@selhagani
Copy link
Member

Unfortunately, we are limited in the support we can provide for the version you are currently using, as it is no longer maintained. We strongly recommend upgrading to the latest version, which includes important fixes and enhancements that may address the issues you're experiencing

@Bpby222
Copy link
Author

Bpby222 commented May 30, 2025

Unfortunately, we are limited in the support we can provide for the version you are currently using, as it is no longer maintained. We strongly recommend upgrading to the latest version, which includes important fixes and enhancements that may address the issues you're experiencing

Do you have any suggested versions, or are there any parameter configurations that can help identify the problem?

@selhagani
Copy link
Member

You can test by using the latest available version using the following link https://github.com/graalvm/graalvm-ce-builds/releases/

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

No branches or pull requests

2 participants