-
Notifications
You must be signed in to change notification settings - Fork 408
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
InaccessibleObjectException
error with Java 16
#1099
Comments
Which version are you using ? (do you download jar somewhere or you build it locally from source ?) I need that to try to reproduce the issue. |
Hi, Any suggestions would be greatly appreciated. |
Just tested locally with those jars and it works for me. I try to search about this error :
(Please when you share text, do not use image ... there are no benefits at all : larger, unable to copy/paste, not indexed) This seems to be an issue between GSON and java 16 : google/gson#1875 The problem seems to come from Gson. We use it only for demo and we plan to remove it at short/mid term (see #1045) Which java version are you using, I guess java 16 ? On my side I tested with :
and
and
All works for me. (even if with JVM 15 I get a warning) I didn't check with JVM 16, I haven't this version installed on my machine. |
Thanks for your investigation |
Following the google/gson#1875 (comment) you should be able to launch it with java 16 but you need to pass some args to the JVM at launch. |
Got it, I will try it. thanks! |
InaccessibleObjectException
error with Java 16
good ,the issue has resolved. Thanks
|
With recently remove gson dependency from master (commit 3d2b1f9) , so this should not be an issue anymore. |
Hi All , I am facing the same issue InaccessibleObjectException: Unable to make protected final java.lang.Class while running the application against OpenJDK 16 I tried possible solutions such as added following plugins to my code.
Please let me know if I am missing something. |
This should not happened anymore with This should affect demos only. I look at your pom.xml code and I'm not sure to see how this is relative to Leshan ? |
I just want to run leshan-client-demo on localhost, but leshan server report below error:
mode: factory mode ,no psk ,no bs , default port: 5683
The text was updated successfully, but these errors were encountered: