yaboofzu opened a new issue, #10844:
URL: https://github.com/apache/skywalking/issues/10844

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache SkyWalking Component
   
   Java Agent (apache/skywalking-java)
   
   ### What happened
   
   skywalking-agent 8.10.0
   java-version jdk8.0
   agent.is_cache_enhanced_class = true
   move bootstrap-plugins/apm-jdk-threadpool-plugin-8.10.0 to plugins
   The following exception occurred:
   ```
   Exception in thread "main" java.lang.reflect.InvocationTargetException
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at 
java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
        at 
java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
   Caused by: java.util.ServiceConfigurationError: 
org.apache.skywalking.apm.agent.core.boot.BootService: Provider 
org.apache.skywalking.apm.agent.core.profile.ProfileTaskExecutionService could 
not be instantiated
        at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:586)
        at 
java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:813)
        at 
java.base/java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:729)
        at java.base/java.util.ServiceLoader$3.next(ServiceLoader.java:1403)
        at 
org.apache.skywalking.apm.agent.core.boot.ServiceManager.load(ServiceManager.java:144)
        at 
org.apache.skywalking.apm.agent.core.boot.ServiceManager.loadAllServices(ServiceManager.java:62)
        at 
org.apache.skywalking.apm.agent.core.boot.ServiceManager.boot(ServiceManager.java:42)
        at 
org.apache.skywalking.apm.agent.SkyWalkingAgent.premain(SkyWalkingAgent.java:136)
        ... 6 more
   Caused by: java.lang.ClassCircularityError: 
java/util/concurrent/ThreadPoolExecutor
        at 
java.base/java.util.concurrent.Executors.newSingleThreadScheduledExecutor(Executors.java:276)
        at 
org.apache.skywalking.apm.agent.core.profile.ProfileTaskExecutionService.<clinit>(ProfileTaskExecutionService.java:49)
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
        at 
java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at 
java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at 
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at 
java.base/java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:789)
   ```
   It's worth noting that
     if  **agent.is_cache_enhanced_class = false**
     this exception will disappear and the project will start up normally.
   
   ### What you expected to happen
   
   the apm-jdk-threadpool-plugin-8.10.0  plugin can be used normally,with the 
agent.is_cache_enhanced_class = true
   
   ### How to reproduce
   
   agent.is_cache_enhanced_class = true
   move bootstrap-plugins/apm-jdk-threadpool-plugin-8.10.0 to plugins
   
   ### Anything else
   
   无
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to