项目

一般

简介

内嵌AAMS后 启动提示Caused by: java.lang.ClassNotFoundException: ... » SpringBoot嵌入aasms启动报错.txt

陈 泽豪, 2023-02-03 07:11

 
1
Spring Boot Version: 2.1.3.RELEASE (v2.1.3.RELEASE)
2

    
3

    
4
2023-02-02 21:03:06.907 [main] INFO  com.stbanking.STApplication:50 - Starting STApplication on chyzhong-MacBook-Pro.local with PID 14614 (/Users/chyzhong/eclipse-st-svn-workspace/14-nszw/nszw-trunk/nszw/nszw-system/target/classes started by chyzhong in /Users/chyzhong/eclipse-st-svn-workspace/14-nszw/nszw-trunk/nszw/nszw-system)
5
2023-02-02 21:03:06.912 [main] INFO  com.stbanking.STApplication:679 - The following profiles are active: dev
6
2023-02-02 21:03:08.309 [main] ERROR org.springframework.boot.SpringApplication:858 - Application run failed
7
java.lang.ClassCastException: java.lang.ClassNotFoundException cannot be cast to [Ljava.lang.Object;
8
	at org.springframework.boot.context.properties.EnableConfigurationPropertiesImportSelector$ConfigurationPropertiesBeanRegistrar.lambda$collectClasses$1(EnableConfigurationPropertiesImportSelector.java:83)
9
	at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
10
	at java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1235)
11
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
12
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
13
	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
14
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
15
	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
16
	at org.springframework.boot.context.properties.EnableConfigurationPropertiesImportSelector$ConfigurationPropertiesBeanRegistrar.collectClasses(EnableConfigurationPropertiesImportSelector.java:85)
17
	at org.springframework.boot.context.properties.EnableConfigurationPropertiesImportSelector$ConfigurationPropertiesBeanRegistrar.getTypes(EnableConfigurationPropertiesImportSelector.java:78)
18
	at org.springframework.boot.context.properties.EnableConfigurationPropertiesImportSelector$ConfigurationPropertiesBeanRegistrar.registerBeanDefinitions(EnableConfigurationPropertiesImportSelector.java:70)
19
	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.lambda$loadBeanDefinitionsFromRegistrars$1(ConfigurationClassBeanDefinitionReader.java:364)
20
	at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
21
	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsFromRegistrars(ConfigurationClassBeanDefinitionReader.java:363)
22
	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitionsForConfigurationClass(ConfigurationClassBeanDefinitionReader.java:145)
23
	at org.springframework.context.annotation.ConfigurationClassBeanDefinitionReader.loadBeanDefinitions(ConfigurationClassBeanDefinitionReader.java:117)
24
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:327)
25
	at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:232)
26
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275)
27
	at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95)
28
	at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:705)
29
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531)
30
	at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)
31
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)
32
	at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
33
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
34
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
35
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
36
	at com.stbanking.STApplication.main(STApplication.java:27)
37
2023-02-02 21:03:08.312 [main] WARN  org.springframework.boot.SpringApplication:839 - Unable to close ApplicationContext
38
java.lang.IllegalStateException: Failed to introspect Class [com.apusic.boot.autoconfigure.web.servlet.AasWebEndpointPropertiesAutoConfiguration] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
39
	at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:686)
40
	at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:583)
41
	at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:568)
42
	at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:626)
43
	at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1688)
44
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:738)
45
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:679)
46
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:647)
47
	at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1518)
48
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:507)
49
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:477)
50
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:598)
51
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:590)
52
	at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1226)
53
	at org.springframework.boot.SpringApplication.getExitCodeFromMappedException(SpringApplication.java:905)
54
	at org.springframework.boot.SpringApplication.getExitCodeFromException(SpringApplication.java:891)
55
	at org.springframework.boot.SpringApplication.handleExitCode(SpringApplication.java:877)
56
	at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:826)
57
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
58
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
59
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
60
	at com.stbanking.STApplication.main(STApplication.java:27)
61
Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/actuate/autoconfigure/endpoint/web/WebEndpointProperties
62
	at java.lang.Class.getDeclaredMethods0(Native Method)
63
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
64
	at java.lang.Class.getDeclaredMethods(Class.java:1975)
65
	at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:668)
66
	... 21 common frames omitted
67
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.actuate.autoconfigure.endpoint.web.WebEndpointProperties
68
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
69
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
70
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
71
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
72
	... 25 common frames omitted
    (1-1/1)