商业版2.9版本本地启动gateway报错

Blade 未结 1 286
siksoft
siksoft 剑者 2023-07-10 19:48

一、该问题的重现步骤是什么?

1. 报错如下

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?


四、请提供详细的错误堆栈信息,这很重要。


五、若有更多详细信息,请在下面提供。

2023-07-10 19:44:05.913 ERROR 15532 --- [           main] o.s.boot.SpringApplication               : Application run failed


java.lang.IllegalStateException: Error processing condition on org.springframework.boot.actuate.autoconfigure.endpoint.EndpointAutoConfiguration.endpointOperationParameterMapper

at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60) ~[spring-boot-autoconfigure-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForBeanMethod(ConfigurationClassBeanDefinitionReader.java:184) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:144) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:120) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:332) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:237) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:280) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:96) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:707) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.boot.web.reactive.context.ReactiveWebServerApplicationContext.refresh(ReactiveWebServerApplicationContext.java:62) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50) [blade-core-launch-2.9.0.RELEASE.jar:na]

at org.springblade.gateway.GateWayApplication.main(GateWayApplication.java:36) [classes/:na]

Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.github.xiaoymin.knife4j.spring.configuration.Knife4jAutoConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:481) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:358) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:414) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.lambda$getTypeForFactoryMethod$2(AbstractAutowireCapableBeanFactory.java:742) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) ~[na:1.8.0_221]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:741) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:680) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:648) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1614) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:523) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:495) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.boot.autoconfigure.condition.OnBeanCondition.collectBeanNamesForType(OnBeanCondition.java:238) ~[spring-boot-autoconfigure-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:231) ~[spring-boot-autoconfigure-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getBeanNamesForType(OnBeanCondition.java:221) ~[spring-boot-autoconfigure-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchingBeans(OnBeanCondition.java:169) ~[spring-boot-autoconfigure-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.autoconfigure.condition.OnBeanCondition.getMatchOutcome(OnBeanCondition.java:144) ~[spring-boot-autoconfigure-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47) ~[spring-boot-autoconfigure-2.3.12.RELEASE.jar:2.3.12.RELEASE]

... 18 common frames omitted

Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter

at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_221]

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_221]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[na:1.8.0_221]

at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_221]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_221]

at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_221]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_221]

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_221]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[na:1.8.0_221]

at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_221]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_221]

at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_221]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_221]

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_221]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[na:1.8.0_221]

at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_221]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_221]

at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_221]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_221]

at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_221]

at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_221]

at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_221]

at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:463) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

... 34 common frames omitted

Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter

at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_221]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_221]

... 74 common frames omitted


2023-07-10 19:44:05.917  WARN 15532 --- [           main] o.s.boot.SpringApplication               : Unable to close ApplicationContext


java.lang.IllegalStateException: Failed to introspect Class [com.github.xiaoymin.knife4j.spring.configuration.Knife4jAutoConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:481) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:358) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:414) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.lambda$getTypeForFactoryMethod$2(AbstractAutowireCapableBeanFactory.java:742) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688) ~[na:1.8.0_221]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:741) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:680) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:648) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1614) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:523) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:495) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:620) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:612) ~[spring-beans-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1243) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]

at org.springframework.boot.SpringApplication.getExitCodeFromMappedException(SpringApplication.java:890) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.getExitCodeFromException(SpringApplication.java:878) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.handleExitCode(SpringApplication.java:865) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:803) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.SpringApplication.run(SpringApplication.java:322) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50) [blade-core-launch-2.9.0.RELEASE.jar:na]

at org.springblade.gateway.GateWayApplication.main(GateWayApplication.java:36) [classes/:na]

Caused by: java.lang.NoClassDefFoundError: javax/servlet/Filter

at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_221]

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_221]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[na:1.8.0_221]

at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_221]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_221]

at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_221]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_221]

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_221]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[na:1.8.0_221]

at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_221]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_221]

at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_221]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_221]

at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[na:1.8.0_221]

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_221]

at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[na:1.8.0_221]

at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[na:1.8.0_221]

at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_221]

at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_221]

at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_221]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_221]

at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_221]

at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_221]

at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_221]

at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:463) ~[spring-core-5.2.15.RELEASE.jar:5.2.15.RELEASE]

... 21 common frames omitted

Caused by: java.lang.ClassNotFoundException: javax.servlet.Filter

at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_221]

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0_221]

at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_221]

... 61 common frames omitted


1条回答
  • 有引入第三方的依赖吗?

    作者追问:2023-07-11 11:36

    BladeXorg.springblade2.9.0.RELEASE4.0.0blade-gateway${project.artifactId}${bladex.project.version}jarorg.springbladeblade-core-launchorg.springframework.bootspring-boot-starter-weborg.springframework.bootspring-boot-starter-undertoworg.springbladeblade-commonorg.springbladeblade-starter-swaggerorg.springbladeblade-core-launchorg.springbladeblade-starter-metricsorg.springbladeblade-starter-jwtcom.alibabafastjsonorg.springframework.cloudspring-cloud-starter-gatewayorg.springframework.bootspring-boot-starter-data-redis-reactivede.codecentricspring-boot-admin-starter-clientorg.springframework.cloudspring-cloud-starter-netflix-hystrixcommons-loggingcommons-loggingcom.alibaba.cloudspring-cloud-starter-alibaba-nacos-discoverycom.alibaba.nacosnacos-clientcom.alibaba.cloudspring-cloud-starter-alibaba-nacos-configcom.alibaba.nacosnacos-clientcom.alibaba.nacosnacos-clientcom.spotifydockerfile-maven-plugin${docker.username}${docker.password}${docker.registry.url}/${docker.namespace}/${project.artifactId}${project.version}truetarget/${project.build.finalName}.jarfalseorg.apache.maven.pluginsmaven-antrun-plugin

    这是我gateway的pom文件,有在其他服务中引入其它的jar包

    作者追问:2023-07-11 11:46

    并没有引入javax.servlet的依赖

    0 讨论(0)
提交回复