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
Expected behavior:
To correctly serialize the class to JSON
Actual behavior:
Fails with class loading error
class kotlin.jvm.internal.ClassReference cannot be cast to class kotlin.reflect.jvm.internal.KClassImpl (kotlin.jvm.internal.ClassReference is in unnamed module of loader 'app'; kotlin.reflect.jvm.internal.KClassImpl is in unnamed module of loader java.net.URLClassLoader @7cfac39f)
As a workaround, if we override Besu CLASSPATH to include the plugin's folder, all classes are loaded inside the main classloader and the problem goes away.
CLASSPATH=/opt/besu/lib/*:/opt/besu/plugins/*
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
Example of such failing plugin can be found here
Expected behavior:
To correctly serialize the class to JSON
Actual behavior:
Fails with class loading error
Frequency:
Always
Versions (Add all that apply)
Additional Information
As a workaround, if we override Besu CLASSPATH to include the plugin's folder, all classes are loaded inside the main classloader and the problem goes away.
The text was updated successfully, but these errors were encountered: