-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
issue with okhttp with graalvm-ce-19.0.0 #1294
Comments
Correction: I changed the okhttp version so this is not related to the 19.0.0 release. |
Solution: add this in your reflect.json configuration
As this class in initialized via reflection in the OpenJDK Charset class. |
Sorry, spoke too soon... My json file does not fix this... |
Try the from the help text:
|
We changed class initialization to delay class to runtime by default. This exposes extra JNI functions that were not there before. You can find out more here. |
Great, thanks for the info in the flag which works. Feel free to close the bug, I am sure it will help others even if closed. |
What is the best way to add just those 2 charsets (without using I have seen implementation in LocalizationFeature, but even with static initialization in my cade, when a class is put into |
@szpak Did you ever figure that out? |
related github issue: oracle/graal#1294
Great! This solves the issue. It worked for me. Thank you @causalnet. |
Problem has long been resolved, closing. |
for those using maven plugin you can add
|
With graalvm-ce-19.0.0 I get
Which I did not have with the RC candidates...
Is it a regression or a feature? Any workaround?
https://github.com/square/okhttp/blob/5cfa0bb3e6d1cdba89761806ff6999f59a15c0eb/okhttp/src/main/java/okhttp3/internal/Util.java#L84
did not change in my tests between RCs and 19.0.0.
The text was updated successfully, but these errors were encountered: