dubbo-spring-boot-project icon indicating copy to clipboard operation
dubbo-spring-boot-project copied to clipboard

Support spring-graalvm-native

Open letrungtrung opened this issue 5 years ago • 2 comments

Hi dubbo team, Currently, Spring team support graalvm native build, how long Dubbo will support it? https://github.com/spring-projects-experimental/spring-graalvm-native

letrungtrung avatar Jul 29 '20 14:07 letrungtrung

Good Advice~

mercyblitz avatar Aug 10 '20 07:08 mercyblitz

I'm currently trying native-convert a spring-boot + dubbo sample app, & find that dubbo uses curator/javassist to dynamically create *$Adaptive classes for zookeeper client, however, these runtime-created classes seem cannot be recorded by tracing agent, & use GraalVM's @TargetClass & @Substitute to replace some class fiels to fix the code-running logic

but graalvm native-image then still reports wierd "javassist.CannotCompileException: by com.oracle.svm.core.jdk.UnsupportedFeatureError: Unsupported method java.lang.ClassLoader.defineClass(String, byte[], int, int, ProtectionDomain) is reachable error "

chenzx avatar May 25 '21 10:05 chenzx