xbkaishui commented on issue #4256:
URL: https://github.com/apache/skywalking/issues/4256#issuecomment-692549957
After some deep investigate, I found it's hard to do this with bytebuddy,
errors is open jdk9
```
Caused by: java.lang.ClassNotFoundException:
org.springframework.boot.context.properties.bind.Binder$$Lambda$ByteBuddy$102
at java.net.URLClassLoader.findClass(URLClassLoader.java:466) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:563) ~[?:?]
at
org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:129)
~[chapter3-3-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
at java.lang.ClassLoader.loadClass(ClassLoader.java:496) ~[?:?]
... 41 mor
```
according to the author, it is a bug related to
[jdk](https://bugs.openjdk.java.net/browse/JDK-8145964)
I also test in open jdk11, there are some errors too.
```
Caused by: java.lang.IllegalAccessException: class
java.lang.invoke.LambdaMetafactory (in module java.base) cannot access class
jdk.xml.internal.SecuritySupport$$Lambda$ByteBuddy$36/0x0000000800342840 (in
module java.xml) because module java.xml does not export jdk.xml.internal to
module java.base
at
java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
at
java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
at
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
at
java.base/java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java)
at
java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:127)
... 36 more
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]