-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Caused by: java.lang.IllegalArgumentException: Method "list" could not be invoked #8541
Comments
Hello, thank you for sharing your issue. I noticed in your logs that the GraalVm version you are using is outdated
The latest GraalVM 22 released is GraalVM ce 22.3.3, but keep in mind that GraalVM 22 is no longer supported, did you try using the latest release? (you can find it here) |
Hi @medoussboug thank you for replying. I checked the link send by you and I can only find 22.3.3 as the latest version in it |
@medoussboug I tried GraalVM for JDK 21
but still I'm getting the same error
|
And also if I don't remove this snippet from reflect-config.json
I am getting this error at the time of image creation
|
Please provide us steps to reproduce and a reproducer in order to invertigate your issue |
@medoussboug sure, I will try to reproduce the issue and get back to you as soon as possible |
Hello, after a thorough look into your issue and specifically:
From this error we can understand that what you are trying to do is not supported by native image as you can see here We advise you to follow one the following alternatives
|
Hi @medoussboug resolved this issue by adding -H:+AllowJRTFileSystem in command line while creating native image. but classgraph is not able to scan the classes of my project Here is my classScanner
Can u please help me out here |
@anshu-zs is |
Hi @fniephaus thank you for replying. I tried initializing Here is my classScanner:
ClassScanner usage
Here are the logs when I run the native image:
Here as u can see my scanResult shows empty array When I run my application locally instead of running native image I get scanResult as
PS: I am not able to access the link shared(https://graalvm.slack.com/archives/CN9KSFB40/p1710066508832449?thread_ts=1709284553.106449&cid=CN9KSFB40). graalvm.slack.com. Also I'm getting scanResult as non empty when I'm working with graalvm 22.3.1 jdk 11 but facing other issue check here |
Hi @fniephaus any update on the above issue |
Bump, still having this issue:
|
Hi @StevenPG I have already resolved this exception, but I am stuck in the classgraph issue mentioned above #8541 (comment) |
Hi,
I created a native image executable by using tracing agent which collects reachability meta data but when I'm trying to run the native image I'm getting this exception.
created the native image using this command :
Here is the output while creating native image
GraalVM version:
java 21.0.2 2024-01-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21.0.2+13.1 (build 21.0.2+13-LTS-jvmci-23.1-b30, mixed mode, sharing)
OS: macOS Sonoma -v 14.3.1
Architecture: arm64
Also, I tried removing below snippets from reflect-config.json file
Thanks
The text was updated successfully, but these errors were encountered: