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
Illegal reflective access operation #23805
Comments
Thanks for the report, we'll be sure to look at this. As always, a reproducer will very likely help us a lot here. |
Reproducible with the following example. A remote client is supposed to lookup a bean deployed on GlassFish server: HelloBean.java
HelloBeanRemote.java
HelloClient.java
StackTrace:
|
And that's because I was lazy to run all tests on JDK17 again! :) |
Btw how do you call the client? |
I tried to rerun all tests with JDK17 and they passed, so I expect that you just really need to add the |
We are seeing java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @10315254 with the nightly GlassFish 7 build with Jakarta EE 10 Platform TCK testing. Is it expected that GlassFish 7 will be updated to use the |
Environment Details
Problem Description
This is the stack trace I get when I try to run my application compiled in JDK 17:
If I compile and run the same in JDK 11 there are just some warnings:
The text was updated successfully, but these errors were encountered: