在开发本地运行时,根据开发者文档一步一步运行和构建,项目运行时报错 #6401
Answered
by
ruibaby
chenqianou
asked this question in
Q&A
-
系统信息操作系统:windows 使用的哪种方式运行?Source Code 发生了什么?根据开发者指南一步一步构建运行,项目启动的时候报错,且前端运行时进入到登录页面并报404 复现步骤1.打开IntelliJ IDEA并打开项目 相关日志输出2024-07-29T09:59:30.091+08:00 INFO 7252 --- [ main] run.halo.app.Application : Starting Application using Java 17.0.11 with PID 7252 (F:\1\halo\application\build\classes\java\main started by tianmayun in F:\1\halo)
2024-07-29T09:59:30.102+08:00 DEBUG 7252 --- [ main] run.halo.app.Application : Running with Spring Boot v3.3.1, Spring v6.1.10
2024-07-29T09:59:30.103+08:00 INFO 7252 --- [ main] run.halo.app.Application : The following 2 profiles are active: "dev", "win"
2024-07-29T09:59:33.333+08:00 WARN 7252 --- [ main] o.s.c.a.AnnotationBeanNameGenerator : Support for convention-based stereotype names is deprecated and will be removed in a future version of the framework. Please annotate the 'value' attribute in @run.halo.app.theme.finders.Finder with @AliasFor(annotation=Component.class) to declare an explicit alias for @Component's 'value' attribute.
2024-07-29T09:59:36.866+08:00 INFO 7252 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2024-07-29T09:59:36.869+08:00 INFO 7252 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data R2DBC repositories in DEFAULT mode.
2024-07-29T09:59:37.304+08:00 INFO 7252 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 418 ms. Found 1 R2DBC repository interface.
2024-07-29T09:59:44.294+08:00 INFO 7252 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 34 endpoints beneath base path '/actuator'
2024-07-29T09:59:44.551+08:00 INFO 7252 --- [ main] org.pf4j.DefaultPluginStatusProvider : Enabled plugins: []
2024-07-29T09:59:44.553+08:00 INFO 7252 --- [ main] org.pf4j.DefaultPluginStatusProvider : Disabled plugins: []
2024-07-29T09:59:44.558+08:00 INFO 7252 --- [ main] org.pf4j.DefaultPluginManager : PF4J version 3.12.0 in 'development' mode
2024-07-29T09:59:44.641+08:00 DEBUG 7252 --- [ main] r.h.a.s.a.impl.RsaKeyService : Skip initializing RSA Keys for PAT due to existence.
2024-07-29T09:59:46.803+08:00 DEBUG 7252 --- [ main] run.halo.app.console.ProxyFilter : Initialized ProxyFilter to proxy /console/** to endpoint http://localhost:8090/
2024-07-29T09:59:46.807+08:00 DEBUG 7252 --- [ main] run.halo.app.console.ProxyFilter : Initialized ProxyFilter to proxy /uc/** to endpoint http://localhost:8090/
2024-07-29T09:59:47.500+08:00 INFO 7252 --- [ main] r.h.a.search.lucene.LuceneSearchEngine : Initialized lucene search engine
2024-07-29T09:59:52.130+08:00 WARN 7252 --- [ main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'webServerStartStop'
2024-07-29T09:59:52.140+08:00 INFO 7252 --- [ main] r.h.a.search.lucene.LuceneSearchEngine : Destroyed lucene search engine
2024-07-29T09:59:52.141+08:00 INFO 7252 --- [ main] r.h.a.e.c.DefaultControllerManager : Shutting down 0 controllers...
2024-07-29T09:59:52.141+08:00 INFO 7252 --- [ main] r.h.a.e.c.DefaultControllerManager : Shutdown 0 controllers.
2024-07-29T09:59:52.142+08:00 INFO 7252 --- [ main] r.h.a.e.controller.DefaultController : Disposing controller garbage-collector-controller
2024-07-29T09:59:52.143+08:00 INFO 7252 --- [ main] r.h.a.e.controller.DefaultController : Controller garbage-collector-controller is disposed
2024-07-29T09:59:52.185+08:00 INFO 7252 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-07-29T09:59:52.185+08:00 WARN 7252 --- [ main] o.s.b.c.e.EventPublishingRunListener : Error calling ApplicationEventListener
java.lang.IllegalStateException: org.springframework.boot.web.reactive.context.AnnotationConfigReactiveWebServerApplicationContext@65aa6596 has not been refreshed yet
at org.springframework.context.support.AbstractApplicationContext.assertBeanFactoryActive(AbstractApplicationContext.java:1221) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1233) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.context.event.ApplicationListenerMethodAdapter.getTargetBean(ApplicationListenerMethodAdapter.java:392) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:354) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:237) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:168) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:185) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:171) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:156) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138) ~[spring-context-6.1.10.jar:6.1.10]
at org.springframework.boot.context.event.EventPublishingRunListener.failed(EventPublishingRunListener.java:130) ~[spring-boot-3.3.1.jar:3.3.1]
at org.springframework.boot.SpringApplicationRunListeners.callFailedListener(SpringApplicationRunListeners.java:94) ~[spring-boot-3.3.1.jar:3.3.1]
at org.springframework.boot.SpringApplicationRunListeners.lambda$failed$7(SpringApplicationRunListeners.java:85) ~[spring-boot-3.3.1.jar:3.3.1]
at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[na:na]
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:118) ~[spring-boot-3.3.1.jar:3.3.1]
at org.springframework.boot.SpringApplicationRunListeners.failed(SpringApplicationRunListeners.java:84) ~[spring-boot-3.3.1.jar:3.3.1]
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:810) ~[spring-boot-3.3.1.jar:3.3.1]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:345) ~[spring-boot-3.3.1.jar:3.3.1]
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149) ~[spring-boot-3.3.1.jar:3.3.1]
at run.halo.app.Application.main(Application.java:28) ~[main/:na]
2024-07-29T09:59:52.221+08:00 ERROR 7252 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Web server failed to start. Port 8090 was already in use.
Action:
Identify and stop the process that's listening on port 8090 or configure this application to listen on another port. 附加信息数据库配置: |
Beta Was this translation helpful? Give feedback.
Answered by
ruibaby
Jul 29, 2024
Replies: 1 comment 2 replies
-
这个日志已经足够明显了。 |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
chenqianou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个日志已经足够明显了。