Springboot启动报错:DEBUG org.springframework.boot.diagnostics.FailureAnalyzers
springboot 启动错误D:\software\Java\jdk1.8.0_261\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always "-javaagent:D:\software\IntelliJ IDEA 2020.3\lib\idea_rt.jar=12773:D:\so
·
springboot 启动错误
D:\software\Java\jdk1.8.0_261\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always "-javaagent:D:\software\IntelliJ IDEA 2020.3\lib\idea_rt.jar=12773:D:\software\IntelliJ IDEA 2020.3\bin" -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath D:\software\Java\jdk1.8.0_261\jre\lib\charsets.jar;D:\software\Java\jdk1.8.0_261\jre\lib\deploy.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\access-bridge-64.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\cldrdata.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\dnsns.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\jaccess.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\jfxrt.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\localedata.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\nashorn.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\sunec.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\sunjce_provider.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\sunmscapi.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\sunpkcs11.jar;D:\software\Java\jdk1.8.0_261\jre\lib\ext\zipfs.jar;D:\software\Java\jdk1.8.0_261\jre\lib\javaws.jar;D:\software\Java\jdk1.8.0_261\jre\lib\jce.jar;D:\software\Java\jdk1.8.0_261\jre\lib\jfr.jar;D:\software\Java\jdk1.8.0_261\jre\lib\jfxswt.jar;D:\software\Java\jdk1.8.0_261\jre\lib\jsse.jar;D:\software\Java\jdk1.8.0_261\jre\lib\management-agent.jar;D:\software\Java\jdk1.8.0_261\jre\lib\plugin.jar;D:\software\Java\jdk1.8.0_261\jre\lib\resources.jar;D:\software\Java\jdk1.8.0_261\jre\lib\rt.jar;D:\project\rz_zz\wechatservice\target\classes;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-starter-thymeleaf\2.4.1\spring-boot-starter-thymeleaf-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-starter\2.4.1\spring-boot-starter-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-starter-logging\2.4.1\spring-boot-starter-logging-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\software\apache-maven-3.6.3\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\software\apache-maven-3.6.3\repository\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;D:\software\apache-maven-3.6.3\repository\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;D:\software\apache-maven-3.6.3\repository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\software\apache-maven-3.6.3\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\software\apache-maven-3.6.3\repository\org\yaml\snakeyaml\1.27\snakeyaml-1.27.jar;D:\software\apache-maven-3.6.3\repository\org\thymeleaf\thymeleaf-spring5\3.0.11.RELEASE\thymeleaf-spring5-3.0.11.RELEASE.jar;D:\software\apache-maven-3.6.3\repository\org\thymeleaf\thymeleaf\3.0.11.RELEASE\thymeleaf-3.0.11.RELEASE.jar;D:\software\apache-maven-3.6.3\repository\org\attoparser\attoparser\2.0.5.RELEASE\attoparser-2.0.5.RELEASE.jar;D:\software\apache-maven-3.6.3\repository\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;D:\software\apache-maven-3.6.3\repository\org\thymeleaf\extras\thymeleaf-extras-java8time\3.0.4.RELEASE\thymeleaf-extras-java8time-3.0.4.RELEASE.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-starter-web\2.4.1\spring-boot-starter-web-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-starter-json\2.4.1\spring-boot-starter-json-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\com\fasterxml\jackson\core\jackson-databind\2.11.3\jackson-databind-2.11.3.jar;D:\software\apache-maven-3.6.3\repository\com\fasterxml\jackson\core\jackson-annotations\2.11.3\jackson-annotations-2.11.3.jar;D:\software\apache-maven-3.6.3\repository\com\fasterxml\jackson\core\jackson-core\2.11.3\jackson-core-2.11.3.jar;D:\software\apache-maven-3.6.3\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.11.3\jackson-datatype-jdk8-2.11.3.jar;D:\software\apache-maven-3.6.3\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.11.3\jackson-datatype-jsr310-2.11.3.jar;D:\software\apache-maven-3.6.3\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.11.3\jackson-module-parameter-names-2.11.3.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-starter-tomcat\2.4.1\spring-boot-starter-tomcat-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.41\tomcat-embed-core-9.0.41.jar;D:\software\apache-maven-3.6.3\repository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;D:\software\apache-maven-3.6.3\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.41\tomcat-embed-websocket-9.0.41.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-web\5.3.2\spring-web-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-beans\5.3.2\spring-beans-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-webmvc\5.3.2\spring-webmvc-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-aop\5.3.2\spring-aop-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-context\5.3.2\spring-context-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-expression\5.3.2\spring-expression-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-devtools\2.4.1\spring-boot-devtools-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot\2.4.1\spring-boot-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-autoconfigure\2.4.1\spring-boot-autoconfigure-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\mysql\mysql-connector-java\8.0.22\mysql-connector-java-8.0.22.jar;D:\software\apache-maven-3.6.3\repository\org\projectlombok\lombok\1.18.16\lombok-1.18.16.jar;D:\software\apache-maven-3.6.3\repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\2.0.0\mybatis-spring-boot-starter-2.0.0.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-starter-jdbc\2.4.1\spring-boot-starter-jdbc-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-jdbc\5.3.2\spring-jdbc-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-tx\5.3.2\spring-tx-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\2.0.0\mybatis-spring-boot-autoconfigure-2.0.0.jar;D:\software\apache-maven-3.6.3\repository\org\mybatis\mybatis\3.5.0\mybatis-3.5.0.jar;D:\software\apache-maven-3.6.3\repository\org\mybatis\mybatis-spring\2.0.0\mybatis-spring-2.0.0.jar;D:\software\apache-maven-3.6.3\repository\com\alibaba\druid-spring-boot-starter\1.1.10\druid-spring-boot-starter-1.1.10.jar;D:\software\apache-maven-3.6.3\repository\com\alibaba\druid\1.1.10\druid-1.1.10.jar;D:\software\apache-maven-3.6.3\repository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;D:\software\apache-maven-3.6.3\repository\org\hamcrest\hamcrest\2.2\hamcrest-2.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-core\5.3.2\spring-core-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-jcl\5.3.2\spring-jcl-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\junit\junit\4.13.1\junit-4.13.1.jar;D:\software\apache-maven-3.6.3\repository\org\hamcrest\hamcrest-core\2.2\hamcrest-core-2.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-test\2.4.1\spring-boot-test-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-test\5.3.2\spring-test-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\com\vaadin\external\google\android-json\0.0.20131108.vaadin1\android-json-0.0.20131108.vaadin1.jar;D:\software\apache-maven-3.6.3\repository\net\sf\json-lib\json-lib\2.2.3\json-lib-2.2.3-jdk15.jar;D:\software\apache-maven-3.6.3\repository\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils-1.7.0.jar;D:\software\apache-maven-3.6.3\repository\commons-collections\commons-collections\3.2\commons-collections-3.2.jar;D:\software\apache-maven-3.6.3\repository\commons-lang\commons-lang\2.4\commons-lang-2.4.jar;D:\software\apache-maven-3.6.3\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;D:\software\apache-maven-3.6.3\repository\net\sf\ezmorph\ezmorph\1.0.6\ezmorph-1.0.6.jar;D:\software\apache-maven-3.6.3\repository\com\alibaba\fastjson\1.2.4\fastjson-1.2.4.jar;D:\software\apache-maven-3.6.3\repository\org\apache\rocketmq\rocketmq-spring-boot-starter\2.1.1\rocketmq-spring-boot-starter-2.1.1.jar;D:\software\apache-maven-3.6.3\repository\org\apache\rocketmq\rocketmq-spring-boot\2.1.1\rocketmq-spring-boot-2.1.1.jar;D:\software\apache-maven-3.6.3\repository\org\apache\rocketmq\rocketmq-client\4.7.1\rocketmq-client-4.7.1.jar;D:\software\apache-maven-3.6.3\repository\org\apache\rocketmq\rocketmq-common\4.7.1\rocketmq-common-4.7.1.jar;D:\software\apache-maven-3.6.3\repository\org\apache\commons\commons-lang3\3.11\commons-lang3-3.11.jar;D:\software\apache-maven-3.6.3\repository\org\apache\rocketmq\rocketmq-acl\4.7.1\rocketmq-acl-4.7.1.jar;D:\software\apache-maven-3.6.3\repository\org\apache\rocketmq\rocketmq-remoting\4.7.1\rocketmq-remoting-4.7.1.jar;D:\software\apache-maven-3.6.3\repository\io\netty\netty-all\4.1.55.Final\netty-all-4.1.55.Final.jar;D:\software\apache-maven-3.6.3\repository\io\netty\netty-tcnative-boringssl-static\2.0.35.Final\netty-tcnative-boringssl-static-2.0.35.Final.jar;D:\software\apache-maven-3.6.3\repository\org\apache\rocketmq\rocketmq-logging\4.7.1\rocketmq-logging-4.7.1.jar;D:\software\apache-maven-3.6.3\repository\org\apache\rocketmq\rocketmq-srvutil\4.7.1\rocketmq-srvutil-4.7.1.jar;D:\software\apache-maven-3.6.3\repository\commons-cli\commons-cli\1.2\commons-cli-1.2.jar;D:\software\apache-maven-3.6.3\repository\commons-codec\commons-codec\1.15\commons-codec-1.15.jar;D:\software\apache-maven-3.6.3\repository\commons-validator\commons-validator\1.6\commons-validator-1.6.jar;D:\software\apache-maven-3.6.3\repository\commons-digester\commons-digester\1.8.1\commons-digester-1.8.1.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\spring-messaging\5.3.2\spring-messaging-5.3.2.jar;D:\software\apache-maven-3.6.3\repository\org\springframework\boot\spring-boot-starter-validation\2.4.1\spring-boot-starter-validation-2.4.1.jar;D:\software\apache-maven-3.6.3\repository\org\hibernate\validator\hibernate-validator\6.1.6.Final\hibernate-validator-6.1.6.Final.jar;D:\software\apache-maven-3.6.3\repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\software\apache-maven-3.6.3\repository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;D:\software\apache-maven-3.6.3\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\software\apache-maven-3.6.3\repository\org\jetbrains\annotations\20.1.0\annotations-20.1.0.jar com.example.wechatservice.WechatserviceApplication
15:13:27.262 [restartedMain] DEBUG org.springframework.boot.diagnostics.FailureAnalyzers - FailureAnalyzer org.springframework.boot.liquibase.LiquibaseChangelogMissingFailureAnalyzer@6c1a8621 failed
java.lang.NoClassDefFoundError: liquibase/exception/ChangeLogParseException
at org.springframework.boot.liquibase.LiquibaseChangelogMissingFailureAnalyzer.analyze(LiquibaseChangelogMissingFailureAnalyzer.java:33)
at org.springframework.boot.diagnostics.AbstractFailureAnalyzer.analyze(AbstractFailureAnalyzer.java:35)
at org.springframework.boot.diagnostics.FailureAnalyzers.analyze(FailureAnalyzers.java:118)
at org.springframework.boot.diagnostics.FailureAnalyzers.reportException(FailureAnalyzers.java:111)
at org.springframework.boot.SpringApplication.reportFailure(SpringApplication.java:846)
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:821)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:336)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1309)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1298)
at com.example.wechatservice.WechatserviceApplication.main(WechatserviceApplication.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: java.lang.ClassNotFoundException: liquibase.exception.ChangeLogParseException
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 15 common frames omitted
15:13:27.267 [restartedMain] ERROR org.springframework.boot.SpringApplication - Application run failed
org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1
at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:218)
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:176)
at org.yaml.snakeyaml.reader.StreamReader.ensureEnoughData(StreamReader.java:171)
at org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:126)
at org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:1177)
at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:287)
at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:227)
at org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:195)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
at org.yaml.snakeyaml.composer.Composer.checkNode(Composer.java:82)
at org.yaml.snakeyaml.constructor.BaseConstructor.checkData(BaseConstructor.java:123)
at org.yaml.snakeyaml.Yaml$1.hasNext(Yaml.java:507)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:200)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:164)
at org.springframework.boot.env.OriginTrackedYamlLoader.load(OriginTrackedYamlLoader.java:84)
at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:50)
at org.springframework.boot.context.config.StandardConfigDataLoader.load(StandardConfigDataLoader.java:45)
at org.springframework.boot.context.config.StandardConfigDataLoader.load(StandardConfigDataLoader.java:34)
at org.springframework.boot.context.config.ConfigDataLoaders.load(ConfigDataLoaders.java:102)
at org.springframework.boot.context.config.ConfigDataImporter.load(ConfigDataImporter.java:118)
at org.springframework.boot.context.config.ConfigDataImporter.resolveAndLoad(ConfigDataImporter.java:82)
at org.springframework.boot.context.config.ConfigDataEnvironmentContributors.withProcessedImports(ConfigDataEnvironmentContributors.java:119)
at org.springframework.boot.context.config.ConfigDataEnvironment.processInitial(ConfigDataEnvironment.java:230)
at org.springframework.boot.context.config.ConfigDataEnvironment.processAndApply(ConfigDataEnvironment.java:217)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:88)
at org.springframework.boot.context.config.ConfigDataEnvironmentPostProcessor.postProcessEnvironment(ConfigDataEnvironmentPostProcessor.java:80)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEnvironmentPreparedEvent(EnvironmentPostProcessorApplicationListener.java:100)
at org.springframework.boot.env.EnvironmentPostProcessorApplicationListener.onApplicationEvent(EnvironmentPostProcessorApplicationListener.java:86)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:82)
at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:63)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117)
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:111)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:62)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:362)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1309)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1298)
at com.example.wechatservice.WechatserviceApplication.main(WechatserviceApplication.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:339)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at org.yaml.snakeyaml.reader.UnicodeReader.read(UnicodeReader.java:125)
at org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:183)
... 48 common frames omitted
Process finished with exit code 0
错误原因
springboot项目yml文件中使用了中文注释,其实是yml文件的编码导致的。
将yml文件的编码改成UTF-8
File->Editor->File Encodings
图中的位置改变yml文件编码就可以了
更多推荐
已为社区贡献7条内容
所有评论(0)