You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using the cadence-java-client with java 17. However it appears that the CustomThrowableTypeAdapter uses a reflection method which no longer works in java 17.
Similarly, the initializer of CheckedExceptionWrapper also uses a reflective method which is no longer allowed.
The text was updated successfully, but these errors were encountered:
WellingR
changed the title
Java 17 support
Java 17 support - Illegal reflective access in CustomThrowableTypeAdapter
Oct 26, 2021
WellingR
changed the title
Java 17 support - Illegal reflective access in CustomThrowableTypeAdapter
Java 17 support - Illegal reflective access in CustomThrowableTypeAdapter and CheckedExceptionWrapper
Oct 26, 2021
Is there any solve or alternative proposed for this issue for using uber cadence with Java-17? I am facing java.lang.NoClassDefFoundError: Could not initialize class com.uber.cadence.internal.common.CheckedExceptionWrapper after upgrading to java 17. This should be related to the issue stated above.
I tried using the cadence-java-client with java 17. However it appears that the
CustomThrowableTypeAdapter
uses a reflection method which no longer works in java 17.The code
https://github.com/uber/cadence-java-client/blob/master/src/main/java/com/uber/cadence/converter/CustomThrowableTypeAdapter.java#L83
Makes the cause field accessible in order to set a non-accessible field to null. This is no longer possible in java 17 because of https://openjdk.java.net/jeps/403 .
Similarly, the initializer of CheckedExceptionWrapper also uses a reflective method which is no longer allowed.
The text was updated successfully, but these errors were encountered: