jk-tonycui opened a new issue, #520:
URL: https://github.com/apache/dubbo-samples/issues/520

   在本地启动dubbo-samples-mesh-provider工程时,启动会失败。
   
   Exception in thread "main" java.lang.IllegalStateException: Cannot load 
configuration class: 
org.apache.dubbo.samples.ProviderBootstrap$ProviderConfiguration
        at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:403)
        at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:249)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:283)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:127)
        at 
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525)
        at 
org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:84)
        at 
org.apache.dubbo.samples.ProviderBootstrap.main(ProviderBootstrap.java:35)
   Caused by: java.lang.ExceptionInInitializerError
        at 
org.springframework.context.annotation.ConfigurationClassEnhancer.newEnhancer(ConfigurationClassEnhancer.java:122)
        at 
org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:110)
        at 
org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:393)
        ... 7 more
   Caused by: org.springframework.cglib.core.CodeGenerationException: 
java.lang.reflect.InaccessibleObjectException-->Unable to make protected final 
java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @7a765367
        at 
org.springframework.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:464)
        at 
org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:336)
        at 
org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:93)
        at 
org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:91)
        at 
org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
        at 
java.base/java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:264)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java)
        at 
org.springframework.cglib.core.internal.LoadingCache.createEntry(LoadingCache.java:61)
        at 
org.springframework.cglib.core.internal.LoadingCache.get(LoadingCache.java:34)
        at 
org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData.get(AbstractClassGenerator.java:116)
        at 
org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:291)
        at 
org.springframework.cglib.core.KeyFactory$Generator.create(KeyFactory.java:221)
        at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:174)
        at org.springframework.cglib.core.KeyFactory.create(KeyFactory.java:153)
        at org.springframework.cglib.proxy.Enhancer.<clinit>(Enhancer.java:73)
        ... 10 more
   Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make 
protected final java.lang.Class 
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
 throws java.lang.ClassFormatError accessible: module java.base does not "opens 
java.lang" to unnamed module @7a765367
        at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at 
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at 
java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:200)
        at java.base/java.lang.reflect.Method.setAccessible(Method.java:194)
        at 
org.springframework.cglib.core.ReflectUtils$1.run(ReflectUtils.java:61)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:569)
        at 
org.springframework.cglib.core.ReflectUtils.<clinit>(ReflectUtils.java:52)
        at 
org.springframework.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:243)
        at 
org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
        at 
org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:329)
        ... 23 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.

To unsubscribe, e-mail: [email protected]

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to