Java 将Spring Boot 2.1升级到2.2时出现格式错误的ParameterizedTypeException
当我尝试将SpringBoot2.1升级到SpringBoot2.2时,我有一个堆栈跟踪Java 将Spring Boot 2.1升级到2.2时出现格式错误的ParameterizedTypeException,java,spring,spring-boot,maven,Java,Spring,Spring Boot,Maven,当我尝试将SpringBoot2.1升级到SpringBoot2.2时,我有一个堆栈跟踪 2020-07-02 15:07:37.890 INFO 12116 --- [ main] f.i.e.EbadApplication : Starting EbadApplication on DWM1107403 with PID 12116 (C:\Developpement\ws\ebad\target\classes started b
2020-07-02 15:07:37.890 INFO 12116 --- [ main] f.i.e.EbadApplication : Starting EbadApplication on DWM1107403 with PID 12116 (C:\Developpement\ws\ebad\target\classes started by DTROUILLET in C:\Developpement\ws\ebad)
2020-07-02 15:07:37.894 DEBUG 12116 --- [ main] f.i.e.EbadApplication : Running with Spring Boot v2.3.0.RELEASE, Spring v5.2.6.RELEASE
2020-07-02 15:07:37.894 INFO 12116 --- [ main] f.i.e.EbadApplication : The following profiles are active: prod
2020-07-02 15:07:37.894 DEBUG 12116 --- [ main] o.s.b.SpringApplication : Loading source class fr.icdc.ebad.EbadApplication
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/C:/Local/Maven2/repository/org/codehaus/groovy/groovy-all/1.7.6/groovy-all-1.7.6.jar) to method java.lang.Object.finalize()
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/C:/Local/Maven2/repository/org/codehaus/groovy/groovy-all/1.7.6/groovy-all-1.7.6.jar) to method java.lang.Object.clone()
WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass$3$1 (file:/C:/Local/Maven2/repository/org/codehaus/groovy/groovy-all/1.7.6/groovy-all-1.7.6.jar) to method java.lang.Object.registerNatives()
2020-07-02 15:07:38.123 DEBUG 12116 --- [ main] .c.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: unknown
2020-07-02 15:07:38.138 ERROR 12116 --- [ main] o.s.b.SpringApplication : Application run failed
java.lang.reflect.MalformedParameterizedTypeException: null
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:59) ~[?:?]
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:52) ~[?:?]
at sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:93) ~[?:?]
at sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:105) ~[?:?]
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:140) ~[?:?]
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) ~[?:?]
at sun.reflect.generics.repository.ConstructorRepository.computeParameterTypes(ConstructorRepository.java:111) ~[?:?]
at sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:87) ~[?:?]
at java.lang.reflect.Executable.getGenericParameterTypes(Executable.java:279) ~[?:?]
at java.lang.reflect.Method.getGenericParameterTypes(Method.java:330) ~[?:?]
at java.beans.FeatureDescriptor.getParameterTypes(FeatureDescriptor.java:391) ~[?:?]
at java.beans.MethodDescriptor.setMethod(MethodDescriptor.java:118) ~[?:?]
at java.beans.MethodDescriptor.<init>(MethodDescriptor.java:74) ~[?:?]
at java.beans.MethodDescriptor.<init>(MethodDescriptor.java:58) ~[?:?]
at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1047) ~[?:?]
at java.beans.Introspector.getBeanInfo(Introspector.java:462) ~[?:?]
at java.beans.Introspector.getBeanInfo(Introspector.java:205) ~[?:?]
at groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:2940) ~[groovy-all-1.7.6.jar:1.7.6]
at java.security.AccessController.doPrivileged(Native Method) ~[?:?]
at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:2938) ~[groovy-all-1.7.6.jar:1.7.6]
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2921) ~[groovy-all-1.7.6.jar:1.7.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:166) ~[groovy-all-1.7.6.jar:1.7.6]
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:182) ~[groovy-all-1.7.6.jar:1.7.6]
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:210) ~[groovy-all-1.7.6.jar:1.7.6]
at org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader.<init>(GroovyBeanDefinitionReader.java:150) ~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.boot.BeanDefinitionLoader.<init>(BeanDefinitionLoader.java:85) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at org.springframework.boot.SpringApplication.createBeanDefinitionLoader(SpringApplication.java:738) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at org.springframework.boot.SpringApplication.load(SpringApplication.java:681) [spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:392) [spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at fr.icdc.ebad.EbadApplication.main(EbadApplication.java:44) [classes/:?]
2020-07-02 15:07:38.152 WARN 12116 --- [ main] o.s.b.SpringApplication : Unable to close ApplicationContext
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@341a8659, started on Thu Jan 01 01:00:00 CET 1970
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:424) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.boot.availability.AvailabilityChangeEvent.publish(AvailabilityChangeEvent.java:81) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at org.springframework.boot.availability.AvailabilityChangeEvent.publish(AvailabilityChangeEvent.java:67) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.doClose(ServletWebServerApplicationContext.java:167) ~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:978) ~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:814) [spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:325) [spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
at fr.icdc.ebad.EbadApplication.main(EbadApplication.java:44) [classes/:?]
2020-07-02 15:07:37.890信息12116---[main]f.i.e.EbadApplication:使用PID 12116在DWM1107403上启动EbadApplication(C:\development\ws\ebad\target\classes由DTROUILLET在C:\development\ws\ebad中启动)
2020-07-02 15:07:37.894调试12116---[main]f.i.e.EbadApplication:使用Spring Boot v2.3.0.RELEASE运行,Spring v5.2.6.RELEASE
2020-07-02 15:07:37.894信息12116---[main]f.i.e.EbadApplication:以下配置文件处于活动状态:prod
2020-07-02 15:07:37.894调试12116---[main]o.s.b.SpringApplication:加载源类fr.icdc.ebad.EbadApplication
警告:org.codehaus.groovy.reflection.CachedClass$3$1(文件:/C:/Local/Maven2/repository/org/codehaus/groovy/groovy-all/1.7.6/groovy-all-1.7.6.jar)对方法java.lang.Object.finalize()的非法反射访问
警告:org.codehaus.groovy.reflection.CachedClass$3$1(文件:/C:/Local/Maven2/repository/org/codehaus/groovy/groovy-all/1.7.6/groovy-all-1.7.6.jar)对方法java.lang.Object.clone()的非法反射访问
警告:org.codehaus.groovy.reflection.CachedClass$3$1(文件:/C:/Local/Maven2/repository/org/codehaus/groovy/groovy-all/1.7.6/groovy-all-1.7.6.jar)对方法java.lang.Object.registerNatives()的非法反射访问
2020-07-02 15:07:38.123调试12116---[main].c.l.ClasspathLoggingApplicationListener:应用程序无法启动,类路径:未知
2020-07-02 15:07:38.138错误12116---[main]o.s.b.SpringApplication:应用程序运行失败
java.lang.reflect.MalformedParameterizedTypeException:null
在sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:59)~[?:?]
在sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.(ParameterizedTypeImpl.java:52)~[?:?]
在sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:93)~[?:?]
在sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:105)~[?:?]
在sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:140)~[?:?]
在sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)~[?:?]
在sun.reflect.generics.repository.ConstructorRepository.computeParameterTypes(ConstructorRepository.java:111)~[?:?]
在sun.reflect.generics.repository.ConstructorRepository.getParameterTypes(ConstructorRepository.java:87)~[?:?]
在java.lang.reflect.Executable.getGenericParameterTypes(Executable.java:279)~[?:?]
在java.lang.reflect.Method.getGenericParameterTypes(Method.java:330)~[?:?]
在java.beans.FeatureDescriptor.getParameterTypes(FeatureDescriptor.java:391)~[?:?]
在java.beans.MethodDescriptor.setMethod(MethodDescriptor.java:118)~[?:?]
在java.beans.MethodDescriptor.(MethodDescriptor.java:74)~[?:?]
在java.beans.MethodDescriptor.(MethodDescriptor.java:58)~[?:?]
在java.beans.Introspector.getTargetMethodInfo(Introspector.java:1047)~[?:?]
在java.beans.Introspector.getBeanInfo(Introspector.java:462)~[?:?]
在java.beans.Introspector.getBeanInfo(Introspector.java:205)~[?:?]
在groovy.lang.MetaClassImpl$15.run(MetaClassImpl.java:2940)~[groovy-all-1.7.6.jar:1.7.6]
在java.security.AccessController.doPrivileged(本机方法)~[?:?]
在groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:2938)~[groovy-all-1.7.6.jar:1.7.6]
在groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:2921)~[groovy-all-1.7.6.jar:1.7.6]
在org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:166)~[groovy-all-1.7.6.jar:1.7.6]
在org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:182)~[groovy-all-1.7.6.jar:1.7.6]
在org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:210)~[groovy-all-1.7.6.jar:1.7.6]
在org.springframework.beans.factory.groovy.GroovyBeanDefinitionReader.(GroovyBeanDefinitionReader.java:150)~[spring-beans-5.2.6.RELEASE.jar:5.2.6.RELEASE]
在org.springframework.boot.BeanDefinitionLoader.(BeanDefinitionLoader.java:85)~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
在org.springframework.boot.SpringApplication.createBeanDefinitionLoader(SpringApplication.java:738)~[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
在org.springframework.boot.SpringApplication.load(SpringApplication.java:681)[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
在org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:392)[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
在org.springframework.boot.SpringApplication.run(SpringApplication.java:314)[spring-boot-2.3.0.RELEASE.jar:2.3.0.RELEASE]
位于fr.icdc.ebad.EbadApplication.main(EbadApplication.java:44)[classes/:?]
2020-07-02 15:07:38.152警告12116---[main]o.s.b.SpringApplication:无法关闭应用程序上下文
java.lang.IllegalStateException:ApplicationEventMulticaster未初始化-通过上下文org.springframework.boot.web.servlet.context在多播事件之前调用“刷新”。AnnotationConfigServletWebServerApplicationContext@341a8659,开始于1970年1月1日星期四01:00:00 CET
在org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:424)~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
在org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403)~[spring-context-5.2.6.RELEASE.jar:5.2.6.RELEASE]
位于org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplica
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>${spring-security-oauth2.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security.oauth.boot</groupId>
<artifactId>spring-security-oauth2-autoconfigure</artifactId>
<version>2.3.1.RELEASE</version>
</dependency>
<parent>
<artifactId>spring-boot-starter-parent</artifactId>
<groupId>org.springframework.boot</groupId>
<version>2.3.0.RELEASE</version>
<relativePath />
</parent>