-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Private configuration classes cause trouble with Java native (reflection) #4724
Comments
…sses public (fabric8io#4724) Expose these nested config classes so that they can be used in reflection. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
…sses public (fabric8io#4724) Expose these nested config classes so that they can be used in reflection. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
…sses public (fabric8io#4724) Expose these nested config classes so that they can be used in reflection. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
…sses public (#4724) Expose these nested config classes so that they can be used in reflection. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
@manusa : What else needs to be done in order to close this issue? I didn't add any interface because there were only three classes. |
You did list a few other classes too in your comment. Are those classes accessible by users? are they susceptible to be serialized/deserialized? |
They are private static classes but they are not configuration classes. I don't think it makes sense to make them accessible to users. |
are they susceptible to be serialized/deserialized? ----> Are they accessible from Config? |
No, these classes do not seem to be accessible from |
I'm leaving the issue open to update the Quarkus references once 6.5.0 is released |
Addressed in Quarkus with quarkusio/quarkus#31781. Closing issue. |
Still occurring with the latest lib version (6.8.0), only when run on Java 17, works well on Java 11 |
@tomslot : What error are you getting? Is it with the same classes? Is it possible to share a reproducer? |
@tomslot : Shall we move this conversation to a new issue or reopen this one? |
The bug is located in io.fabric8.kubernetes.client.Config.getExecCredentialFromExecConfig(): And the output is "The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws sso login with the corresponding profile." Feel free to create a new ticket if it serves your process better. |
probably with Java 11 the string is parsed to null and with Java 17 it throws an exception |
@tomslot : Sorry but from your comment, I think it's a different issue from this one. Is it possible to create a new ticket? |
I've just created #5361. |
From quarkusio/quarkus#30153
Some configuration classes (referenced issue is about
ExecConfig
but maybe there are more) have private access and need to be referenced by name in order to register them for reflection with GraalVM.These classes should be exposed. In addition, it would be interesting to catalog these classes with an interface or something else, so that they can be automatically detected (Jandex) to be registered when used.
The text was updated successfully, but these errors were encountered: