问答专栏Q & A COLUMN

本地安装usdp报错Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

1769318680417693186804 回答0 收藏2
问题描述:

日志信息 如下,麻烦大佬帮忙看下

[root@hdfs2 udp]# tail -f udp-server-info.2022-10-10.log 

2022-10-10 17:05:42 [main] INFO  cn.ucloud.udp.UDPServerApplication - The following profiles are active: server

2022-10-10 17:05:59 [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2022-10-10 17:06:00 [main] INFO  o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 80 (http)

2022-10-10 17:06:00 [main] INFO  org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-80"]

2022-10-10 17:06:00 [main] INFO  org.apache.catalina.core.StandardService - Starting service [Tomcat]

2022-10-10 17:06:00 [main] INFO  org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.29]

2022-10-10 17:06:00 [main] INFO  o.a.c.core.ContainerBase.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext

2022-10-10 17:06:00 [main] INFO  org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 17828 ms

2022-10-10 17:06:01 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...

2022-10-10 17:06:02 [main] INFO  cn.ucloud.udp.filter.SignAuthFilter - Init SignAuthFilter.

2022-10-10 17:06:06 [main] INFO  cn.ucloud.udp.async.pool.UDPThreadPoolTaskExecutor - Initializing ExecutorService

2022-10-10 17:06:06 [main] INFO  cn.ucloud.udp.async.pool.UDPThreadPoolTaskExecutor - Initializing ExecutorService 'UDPExecutor'

2022-10-10 17:06:08 [main] INFO  cn.ucloud.udp.service.ServerServiceService - Check for any remaining status exceptions of ServiceState.

2022-10-10 17:06:08 [main] INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...

2022-10-10 17:06:09 [main] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverAlertConfigController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverAlertConfigService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverClusterService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverNodeService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverConfigService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverComponentService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverServiceService': Invocation of init method failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 

### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'db_udp'

### The error may exist in cn/ucloud/udp/orm/mapper/single/TUdpServiceStateMapper.java (best guess)

### The error may involve cn.ucloud.udp.orm.mapper.single.TUdpServiceStateMapper.selectList

### The error occurred while executing a query

### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'db_udp'

2022-10-10 17:06:09 [main] INFO  cn.ucloud.udp.async.pool.UDPThreadPoolTaskExecutor - Shutting down ExecutorService 'UDPExecutor'

2022-10-10 17:06:09 [main] INFO  org.apache.catalina.core.StandardService - Stopping service [Tomcat]

2022-10-10 17:06:09 [main] INFO  cn.ucloud.udp.filter.SignAuthFilter - Destroy SignAuthFilter.

2022-10-10 17:06:09 [main] INFO  o.s.b.a.l.ConditionEvaluationReportLoggingListener - 


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.


收藏问题

0条回答

最新活动

您已邀请0人回答 查看邀请

我的邀请列表

  • 擅长该话题
  • 回答过该话题
  • 我关注的人
向帮助了您的网友说句感谢的话吧!
付费偷看金额在0.1-10元之间
<