springboot启动elasticsearch异常
D:\DevelopTools\java\jdk1.8.0_231\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.5\lib\idea_rt.jar=64991:C:\Program Files\JetBrains\IntelliJ IDEA 2019.3.5\bin" -Dfile.encoding=UTF-8 -classpath D:\DevelopTools\java\jdk1.8.0_231\jre\lib\charsets.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\deploy.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\access-bridge-64.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\cldrdata.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\dnsns.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\jaccess.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\jfxrt.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\localedata.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\nashorn.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\sunec.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\sunjce_provider.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\sunmscapi.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\sunpkcs11.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\ext\zipfs.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\javaws.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\jce.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\jfr.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\jfxswt.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\jsse.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\management-agent.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\plugin.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\resources.jar;D:\DevelopTools\java\jdk1.8.0_231\jre\lib\rt.jar;D:\documents\javaProjects\temp3\ElasticSearch_springdata_demo\target\classes;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\boot\spring-boot-starter\2.3.2.RELEASE\spring-boot-starter-2.3.2.RELEASE.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\boot\spring-boot\2.3.2.RELEASE\spring-boot-2.3.2.RELEASE.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\boot\spring-boot-autoconfigure\2.3.2.RELEASE\spring-boot-autoconfigure-2.3.2.RELEASE.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\boot\spring-boot-starter-logging\2.3.2.RELEASE\spring-boot-starter-logging-2.3.2.RELEASE.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\spring-core\5.2.8.RELEASE\spring-core-5.2.8.RELEASE.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\spring-jcl\5.2.8.RELEASE\spring-jcl-5.2.8.RELEASE.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\yaml\snakeyaml\1.26\snakeyaml-1.26.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\data\spring-data-elasticsearch\4.1.0\spring-data-elasticsearch-4.1.0.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\spring-context\5.3.0\spring-context-5.3.0.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\spring-aop\5.3.0\spring-aop-5.3.0.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\spring-beans\5.3.0\spring-beans-5.3.0.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\spring-expression\5.3.0\spring-expression-5.3.0.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\spring-tx\5.3.0\spring-tx-5.3.0.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\springframework\data\spring-data-commons\2.4.0\spring-data-commons-2.4.0.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\client\transport\7.9.3\transport-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\elasticsearch\7.9.3\elasticsearch-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\elasticsearch-core\7.9.3\elasticsearch-core-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\elasticsearch-secure-sm\7.9.3\elasticsearch-secure-sm-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\elasticsearch-x-content\7.9.3\elasticsearch-x-content-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\com\fasterxml\jackson\dataformat\jackson-dataformat-smile\2.10.4\jackson-dataformat-smile-2.10.4.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\com\fasterxml\jackson\dataformat\jackson-dataformat-yaml\2.10.4\jackson-dataformat-yaml-2.10.4.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\com\fasterxml\jackson\dataformat\jackson-dataformat-cbor\2.10.4\jackson-dataformat-cbor-2.10.4.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\elasticsearch-geo\7.9.3\elasticsearch-geo-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-core\8.6.2\lucene-core-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-analyzers-common\8.6.2\lucene-analyzers-common-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-backward-codecs\8.6.2\lucene-backward-codecs-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-grouping\8.6.2\lucene-grouping-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-highlighter\8.6.2\lucene-highlighter-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-join\8.6.2\lucene-join-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-memory\8.6.2\lucene-memory-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-misc\8.6.2\lucene-misc-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-queries\8.6.2\lucene-queries-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-queryparser\8.6.2\lucene-queryparser-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-sandbox\8.6.2\lucene-sandbox-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-spatial-extras\8.6.2\lucene-spatial-extras-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-spatial3d\8.6.2\lucene-spatial3d-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\lucene\lucene-suggest\8.6.2\lucene-suggest-8.6.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\elasticsearch-cli\7.9.3\elasticsearch-cli-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\net\sf\jopt-simple\jopt-simple\5.0.2\jopt-simple-5.0.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\com\carrotsearch\hppc\0.8.1\hppc-0.8.1.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\joda-time\joda-time\2.10.4\joda-time-2.10.4.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\com\tdunning\t-digest\3.2\t-digest-3.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\jna\5.5.0\jna-5.5.0.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\plugin\reindex-client\7.9.3\reindex-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\elasticsearch-ssl-config\7.9.3\elasticsearch-ssl-config-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\plugin\lang-mustache-client\7.9.3\lang-mustache-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\com\github\spullara\mustache\java\compiler\0.9.6\compiler-0.9.6.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\plugin\percolator-client\7.9.3\percolator-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\plugin\parent-join-client\7.9.3\parent-join-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\plugin\rank-eval-client\7.9.3\rank-eval-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\plugin\transport-netty4-client\7.9.3\transport-netty4-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\io\netty\netty-buffer\4.1.49.Final\netty-buffer-4.1.49.Final.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\io\netty\netty-codec\4.1.49.Final\netty-codec-4.1.49.Final.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\io\netty\netty-codec-http\4.1.49.Final\netty-codec-http-4.1.49.Final.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\io\netty\netty-common\4.1.49.Final\netty-common-4.1.49.Final.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\io\netty\netty-handler\4.1.49.Final\netty-handler-4.1.49.Final.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\io\netty\netty-resolver\4.1.49.Final\netty-resolver-4.1.49.Final.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\io\netty\netty-transport\4.1.49.Final\netty-transport-4.1.49.Final.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\client\elasticsearch-rest-high-level-client\7.9.3\elasticsearch-rest-high-level-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\client\elasticsearch-rest-client\7.9.3\elasticsearch-rest-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\httpcomponents\httpclient\4.5.10\httpclient-4.5.10.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\httpcomponents\httpcore\4.4.12\httpcore-4.4.12.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\httpcomponents\httpasyncclient\4.1.4\httpasyncclient-4.1.4.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\apache\httpcomponents\httpcore-nio\4.4.12\httpcore-nio-4.4.12.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\commons-codec\commons-codec\1.11\commons-codec-1.11.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\plugin\mapper-extras-client\7.9.3\mapper-extras-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\elasticsearch\plugin\aggs-matrix-stats-client\7.9.3\aggs-matrix-stats-client-7.9.3.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\com\fasterxml\jackson\core\jackson-core\2.11.2\jackson-core-2.11.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\com\fasterxml\jackson\core\jackson-databind\2.11.2\jackson-databind-2.11.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\com\fasterxml\jackson\core\jackson-annotations\2.11.2\jackson-annotations-2.11.2.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;D:\DevelopTools\maven\apache-maven-3.5.3\resposity\org\projectlombok\lombok\1.18.20\lombok-1.18.20.jar com.zhiqiang.elasticSearch.springdata.demo.ESSpringdataDemoApplication
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.3.2.RELEASE)
2021-09-25 23:12:20.396 ERROR 8436 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.context.annotation.AnnotationConfigApplicationContext]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/metrics/ApplicationStartup
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:225) ~[spring-beans-5.3.0.jar:5.3.0]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) ~[spring-beans-5.3.0.jar:5.3.0]
at org.springframework.boot.SpringApplication.createApplicationContext(SpringApplication.java:588) [spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:311) [spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) [spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.3.2.RELEASE.jar:2.3.2.RELEASE]
at com.zhiqiang.elasticSearch.springdata.demo.ESSpringdataDemoApplication.main(ESSpringdataDemoApplication.java:10) [classes/:na]
Caused by: java.lang.NoClassDefFoundError: org/springframework/core/metrics/ApplicationStartup
at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:234) ~[spring-context-5.3.0.jar:5.3.0]
at org.springframework.context.support.GenericApplicationContext.<init>(GenericApplicationContext.java:112) ~[spring-context-5.3.0.jar:5.3.0]
at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:67) ~[spring-context-5.3.0.jar:5.3.0]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_231]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_231]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_231]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_231]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:212) ~[spring-beans-5.3.0.jar:5.3.0]
... 6 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.core.metrics.ApplicationStartup
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_231]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_231]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) ~[na:1.8.0_231]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_231]
... 14 common frames omitted
Process finished with exit code 1
原因:??? 解决:???
|