-
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
NullPointerException while creating GraalVM native image #3815
Comments
@retriku thanks for reporting the error, we will take a look and get back to you |
@retriku When I am trying to use jar file of this project, I am getting Error:
|
for native-image, you can use native-image-agent to generate config files and add them to the settings in build.sbt
|
I added assembly plugin. You can build fat jar with Failing image build seems to be due to
But succeeds with code:
|
@retriku ok great, do you still need any other assistance from our side? |
Hi @mcraj017, the code that @retriku is referring to is contained in multiple releases of a widely-used library (I'm one of the maintainers), so @retriku can't easily change it. Moreover, the Javadoc for
So it seems like GraalVM should handle this code without error, but if not I'd like to understand why. |
@jyemin thanks for the clarification, I have raised this issue with the native-image team |
The error occurs as part of the trace output enabled by |
Fixed in 8297f26 |
Describe the issue
NullPointerException while creating native image
Steps to reproduce the issue
Please include both build steps as well as run steps
Describe GraalVM and your environment:
More details
Error seems to originate in https://github.com/mongodb/mongo-java-driver/blob/master/driver-core/src/main/com/mongodb/internal/connection/tlschannel/util/DirectBufferDeallocator.java#L54
I wonder why would Java8Deallocator would be created if image is built with java 11. Is this on purpose?
Let me know if any other info is needed.
Stack trace is below:
The text was updated successfully, but these errors were encountered: