-
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
[GR-57125] Cannot invoke "clojure.lang.Var.isBound()" because "clojure.lang.Compiler.LOADER" is null #9322
Comments
Hi @FieryCod , thank you for reaching out to us. I reproduced your issue using GraalVM 22.0.2 9.1 and it worked just fine for me.
Could you try testing with that version as well? Thank you. |
@selhagani Many thanks for the response. Unfortunately, I can still reproduce the issue.
|
@selhagani Could you kindly try to run |
You're right, after reproducing multiple times it did indeed show an error message. |
Did you check with the Clojure team regarding this issue? Perhaps they can offer some valuable insights. |
I can repro this locally using a more minimal reflectconfig.json: [
{
"name" : "clojure.lang.Keyword",
"methods": [{"name": "intern"}]
}
] It seems just adding the
@FieryCod Why do you need this in reflectconfig.json in the first place? |
Well, this is just a reproducible example of the shared configuration between the services for a very large scale enterprise project. There is like 30 services we handle with this configuration and if I remove this line the services always finish with build error. |
Hi @selhagani, I've asked the question on Clojure Slack and core team has no clue of what could cause it, and from my experience this seems purely GraalVM native-image related. |
Hi @FieryCod, Thank you for the update. I just tried to reproduce the issue more than 10 times consecutively, and I no longer encounter the error. I'm not sure why this is the case. Are you still able to reproduce the issue on your end? |
@selhagani yes. Nothing changed. You can try to increase amount of threads in GraalVM config given to native-image and this problem will happen more frequently. |
Hi there, Is this issue still present even now? A new version of GraalVM has been released since the last time we checked this. |
Describe the issue
When trying to compile very simple Clojure application the GraalVM native-image throws an exception during analysis phase.
Steps to reproduce the issue
clojure
command is in your PATH (if not then install Clojure from the official sources).native-image
command is in your PATH.cd
to the repository root path and execute./compile.sh
script.Describe GraalVM and your environment:
More details
It seems the problem happens only when
clojure.lang.Keyword
andjava.util.UUID
are inreflectconfig.json
.Issue occurrence is more deterministic with increased number of threads given to
native-image
.The text was updated successfully, but these errors were encountered: