You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/10/19 08:30:51 UTC

[GitHub] [dubbo] jinshengyong opened a new issue #9068: Spring Boot 2.5.5 集成 Dubbo 2.7.14 出现的类型反射问题

jinshengyong opened a new issue #9068:
URL: https://github.com/apache/dubbo/issues/9068


   # dubbo   2.7.14
   # spring boot  2.5.5
   # spring cloud 2020.04 
   # spring cloud alibaba 2020.1
   # nacos 1.4.1
   
   # 配置
   ```
   # Dubbo
   dubbo:
     scan:
       base-packages: cn.funtk.myshop.provider.service
     application:
       id: dubbo
       name: dubbo
     protocol:
       id: dubbo
       name: dubbo
       port: -1
       serialization: kryo
     registry:
       address: nacos://myshop-plus-nacos
       port: 8848
   ```
   
   # 报错信息
   ```
   2021-10-19 16:24:23.828  INFO 15912 --- [           main] com.alibaba.spring.util.BeanRegistrar    : The Infrastructure bean definition [Root bean: class [com.alibaba.spring.beans.factory.annotation.ConfigurationBeanBindingPostProcessor]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [configurationBeanBindingPostProcessor] has been registered.
   2021-10-19 16:24:23.828  INFO 15912 --- [           main] .b.f.a.ConfigurationBeanBindingRegistrar : The configuration bean definition [name : org.apache.dubbo.config.RegistryConfig#0, content : Root bean: class [org.apache.dubbo.config.RegistryConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
   2021-10-19 16:24:23.829  INFO 15912 --- [           main] .b.f.a.ConfigurationBeanBindingRegistrar : The configuration bean definition [name : dubbo, content : Root bean: class [org.apache.dubbo.config.ProtocolConfig]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] has been registered.
   2021-10-19 16:24:23.935  INFO 15912 --- [           main] com.alibaba.spring.util.BeanRegistrar    : The Infrastructure bean definition [Root bean: class [org.apache.dubbo.config.spring.context.DubboBootstrapApplicationListener]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=nullwith name [dubboBootstrapApplicationListener] has been registered.
   2021-10-19 16:24:23.981  INFO 15912 --- [           main] o.s.c.a.ConfigurationClassPostProcessor  : Cannot enhance @Configuration bean definition 'org.apache.dubbo.spring.boot.autoconfigure.DubboRelaxedBinding2AutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
   2021-10-19 16:24:23.981  INFO 15912 --- [           main] o.s.c.a.ConfigurationClassPostProcessor  : Cannot enhance @Configuration bean definition 'org.apache.dubbo.spring.boot.autoconfigure.DubboAutoConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'.
   2021-10-19 16:24:24.097 ERROR 15912 --- [           main] o.s.boot.SpringApplication               : Application run failed
   
   java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
   	at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:724)
   	at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:531)
   	at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:355)
   	at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:286)
   	at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
   	at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
   	at java.lang.reflect.Executable.declaredAnnotations(Executable.java:599)
   	at java.lang.reflect.Executable.declaredAnnotations(Executable.java:597)
   	at java.lang.reflect.Executable.getDeclaredAnnotations(Executable.java:588)
   	at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:630)
   	at org.springframework.core.annotation.AnnotationsScanner.getDeclaredAnnotations(AnnotationsScanner.java:454)
   	at org.springframework.core.annotation.AnnotationsScanner.isKnownEmpty(AnnotationsScanner.java:492)
   	at org.springframework.core.annotation.TypeMappedAnnotations.from(TypeMappedAnnotations.java:251)
   	at org.springframework.core.annotation.MergedAnnotations.from(MergedAnnotations.java:351)
   	at org.springframework.core.annotation.MergedAnnotations.from(MergedAnnotations.java:330)
   	at org.springframework.core.annotation.AnnotatedElementUtils.findAnnotations(AnnotatedElementUtils.java:764)
   	at org.springframework.core.annotation.AnnotatedElementUtils.hasAnnotation(AnnotatedElementUtils.java:531)
   	at org.springframework.context.annotation.BeanAnnotationHelper.isBeanAnnotated(BeanAnnotationHelper.java:41)
   	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.isMatch(ConfigurationClassEnhancer.java:407)
   	at org.springframework.context.annotation.ConfigurationClassEnhancer$ConditionalCallbackFilter.accept(ConfigurationClassEnhancer.java:192)
   	at org.springframework.cglib.proxy.Enhancer.emitMethods(Enhancer.java:1217)
   	at org.springframework.cglib.proxy.Enhancer.generateClass(Enhancer.java:726)
   	at org.springframework.cglib.transform.TransformingClassGenerator.generateClass(TransformingClassGenerator.java:33)
   	at org.springframework.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
   	at org.springframework.cglib.core.ClassLoaderAwareGeneratorStrategy.generate(ClassLoaderAwareGeneratorStrategy.java:57)
   	at org.springframework.cglib.core.AbstractClassGenerator.generate(AbstractClassGenerator.java:358)
   	at org.springframework.cglib.proxy.Enhancer.generate(Enhancer.java:585)
   	at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:110)
   	at org.springframework.cglib.core.AbstractClassGenerator$ClassLoaderData$3.apply(AbstractClassGenerator.java:108)
   	at org.springframework.cglib.core.internal.LoadingCache$2.call(LoadingCache.java:54)
   	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
   	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:134)
   	at org.springframework.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:319)
   	at org.springframework.cglib.proxy.Enhancer.createHelper(Enhancer.java:572)
   	at org.springframework.cglib.proxy.Enhancer.createClass(Enhancer.java:419)
   	at org.springframework.context.annotation.ConfigurationClassEnhancer.createClass(ConfigurationClassEnhancer.java:137)
   	at org.springframework.context.annotation.ConfigurationClassEnhancer.enhance(ConfigurationClassEnhancer.java:109)
   	at org.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:447)
   	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanFactory(ConfigurationClassPostProcessor.java:268)
   	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:325)
   	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:147)
   	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:746)
   	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:564)
   	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145)
   	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
   	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:434)
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:338)
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1343)
   	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1332)
   	at cn.funtk.myshop.provider.ProviderApplication.main(ProviderApplication.java:21)
   ```


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM commented on issue #9068: Spring Boot 2.5.5 集成 Dubbo 2.7.14 出现的类型反射问题

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #9068:
URL: https://github.com/apache/dubbo/issues/9068#issuecomment-966693638


   Please provide more detailed information, including jdk version, reproduced demo, etc.
   @jinshengyong 


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM commented on issue #9068: Spring Boot 2.5.5 集成 Dubbo 2.7.14 出现的类型反射问题

Posted by GitBox <gi...@apache.org>.
CrazyHZM commented on issue #9068:
URL: https://github.com/apache/dubbo/issues/9068#issuecomment-985935202


   No feedback for a long time, please close the issue temporarily. If there is still a problem, you can reopen it.


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo] CrazyHZM closed issue #9068: Spring Boot 2.5.5 集成 Dubbo 2.7.14 出现的类型反射问题

Posted by GitBox <gi...@apache.org>.
CrazyHZM closed issue #9068:
URL: https://github.com/apache/dubbo/issues/9068


   


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org