ota.log 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. 2024-11-25 10:02:57.413 INFO 11924 --- [main] com.gyee.alarm.AlarmCustom : Starting AlarmCustom on sltc with PID 11924 (E:\idea_workspace\alarmNew\alarm-custom\target\classes started by shilin in E:\idea_workspace\alarmNew)
  2. 2024-11-25 10:02:57.426 INFO 11924 --- [main] com.gyee.alarm.AlarmCustom : The following profiles are active: db
  3. 2024-11-25 10:02:58.871 INFO 11924 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  4. 2024-11-25 10:02:58.873 INFO 11924 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  5. 2024-11-25 10:02:59.048 INFO 11924 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 160ms. Found 0 Redis repository interfaces.
  6. 2024-11-25 10:02:59.481 INFO 11924 --- [main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.datasource.dynamic-com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceProperties' of type [com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
  7. 2024-11-25 10:02:59.489 INFO 11924 --- [main] trationDelegate$BeanPostProcessorChecker : Bean 'com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration' of type [com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration$$EnhancerBySpringCGLIB$$ac76f006] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
  8. 2024-11-25 10:02:59.500 INFO 11924 --- [main] trationDelegate$BeanPostProcessorChecker : Bean 'dsProcessor' of type [com.baomidou.dynamic.datasource.processor.DsHeaderProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
  9. 2024-11-25 10:02:59.764 INFO 11924 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 6013 (http)
  10. 2024-11-25 10:02:59.773 INFO 11924 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
  11. 2024-11-25 10:02:59.773 INFO 11924 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.29]
  12. 2024-11-25 10:02:59.889 INFO 11924 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
  13. 2024-11-25 10:02:59.890 INFO 11924 --- [main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2243 ms
  14. 2024-11-25 10:03:00.168 INFO 11924 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1,master} inited
  15. 2024-11-25 10:03:00.169 ERROR 11924 --- [main] com.alibaba.druid.pool.DruidDataSource : testWhileIdle is true, validationQuery not set
  16. 2024-11-25 10:03:00.170 INFO 11924 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-2,slave} inited
  17. 2024-11-25 10:03:00.170 INFO 11924 --- [main] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource - add a datasource named [slave] success
  18. 2024-11-25 10:03:00.170 INFO 11924 --- [main] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource - add a datasource named [master] success
  19. 2024-11-25 10:03:00.170 INFO 11924 --- [main] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource initial loaded [2] datasource,primary datasource named [master]
  20. 2024-11-25 10:03:00.520 WARN 11924 --- [main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationReadyEventListener': Unsatisfied dependency expressed through field 'calculateServer'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'calculateServer': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'alarmCustomService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'java.util.concurrent.Executor' available: expected single matching bean but found 2: taskExecutor,taskScheduler
  21. 2024-11-25 10:03:00.536 INFO 11924 --- [main] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource start closing ....
  22. 2024-11-25 10:03:00.540 INFO 11924 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-2} closed
  23. 2024-11-25 10:03:00.540 INFO 11924 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  24. 2024-11-25 10:03:00.540 INFO 11924 --- [main] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource all closed success,bye
  25. 2024-11-25 10:03:00.543 INFO 11924 --- [main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
  26. 2024-11-25 10:03:00.555 INFO 11924 --- [main] ConditionEvaluationReportLoggingListener :
  27. Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  28. 2024-11-25 10:03:00.562 ERROR 11924 --- [main] o.s.b.d.LoggingFailureAnalysisReporter :
  29. ***************************
  30. APPLICATION FAILED TO START
  31. ***************************
  32. Description:
  33. Field calculateServer in com.gyee.alarm.ApplicationReadyEventListener required a single bean, but 2 were found:
  34. - taskExecutor: defined by method 'taskExecutor' in class path resource [com/gyee/alarm/config/ThreadPoolTaskConfig.class]
  35. - taskScheduler: defined by method 'taskScheduler' in class path resource [org/springframework/boot/autoconfigure/task/TaskSchedulingAutoConfiguration.class]
  36. Action:
  37. Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
  38. 2024-11-25 10:04:15.571 INFO 20692 --- [main] com.gyee.alarm.AlarmCustom : Starting AlarmCustom on sltc with PID 20692 (E:\idea_workspace\alarmNew\alarm-custom\target\classes started by shilin in E:\idea_workspace\alarmNew)
  39. 2024-11-25 10:04:15.573 INFO 20692 --- [main] com.gyee.alarm.AlarmCustom : The following profiles are active: db
  40. 2024-11-25 10:04:16.902 INFO 20692 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
  41. 2024-11-25 10:04:16.904 INFO 20692 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
  42. 2024-11-25 10:04:17.074 INFO 20692 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 157ms. Found 0 Redis repository interfaces.
  43. 2024-11-25 10:04:17.451 INFO 20692 --- [main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.datasource.dynamic-com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceProperties' of type [com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
  44. 2024-11-25 10:04:17.457 INFO 20692 --- [main] trationDelegate$BeanPostProcessorChecker : Bean 'com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration' of type [com.baomidou.dynamic.datasource.spring.boot.autoconfigure.DynamicDataSourceAutoConfiguration$$EnhancerBySpringCGLIB$$6de68ad2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
  45. 2024-11-25 10:04:17.468 INFO 20692 --- [main] trationDelegate$BeanPostProcessorChecker : Bean 'dsProcessor' of type [com.baomidou.dynamic.datasource.processor.DsHeaderProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
  46. 2024-11-25 10:04:17.706 INFO 20692 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 6013 (http)
  47. 2024-11-25 10:04:17.714 INFO 20692 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
  48. 2024-11-25 10:04:17.715 INFO 20692 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.29]
  49. 2024-11-25 10:04:17.827 INFO 20692 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
  50. 2024-11-25 10:04:17.827 INFO 20692 --- [main] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 2062 ms
  51. 2024-11-25 10:04:18.091 INFO 20692 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1,master} inited
  52. 2024-11-25 10:04:18.092 ERROR 20692 --- [main] com.alibaba.druid.pool.DruidDataSource : testWhileIdle is true, validationQuery not set
  53. 2024-11-25 10:04:18.093 INFO 20692 --- [main] com.alibaba.druid.pool.DruidDataSource : {dataSource-2,slave} inited
  54. 2024-11-25 10:04:18.093 INFO 20692 --- [main] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource - add a datasource named [slave] success
  55. 2024-11-25 10:04:18.094 INFO 20692 --- [main] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource - add a datasource named [master] success
  56. 2024-11-25 10:04:18.094 INFO 20692 --- [main] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource initial loaded [2] datasource,primary datasource named [master]
  57. 2024-11-25 10:04:18.418 INFO 20692 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService
  58. 2024-11-25 10:04:18.419 INFO 20692 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'taskExecutor'
  59. 2024-11-25 10:04:19.785 ERROR 20692 --- [main] c.b.m.core.MybatisConfiguration : mapper[com.gyee.alarm.mapper.auto.AlarmTsMapper.createTable] is ignored, because it exists, maybe from xml file
  60. 2024-11-25 10:04:23.000 INFO 20692 --- [main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'taskScheduler'
  61. 2024-11-25 10:04:23.010 INFO 20692 --- [main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
  62. 2024-11-25 10:04:23.151 INFO 20692 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 6013 (http) with context path ''
  63. 2024-11-25 10:04:23.286 INFO 20692 --- [main] com.gyee.alarm.AlarmCustom : Started AlarmCustom in 8.107 seconds (JVM running for 9.549)
  64. 2024-11-25 10:04:23.290 INFO 20692 --- [main] com.gyee.alarm.init.CacheContext : 缓存开始------------------------------------------------------------
  65. 2024-11-25 10:04:23.290 INFO 20692 --- [main] com.gyee.alarm.init.CacheContext : GJNY_SXGS_JSL_FDC_STA------------------6
  66. 2024-11-25 10:04:27.584 INFO 20692 --- [SpringContextShutdownHook] o.s.s.c.ThreadPoolTaskScheduler : Shutting down ExecutorService 'taskScheduler'
  67. 2024-11-25 10:04:27.589 INFO 20692 --- [SpringContextShutdownHook] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'taskExecutor'
  68. 2024-11-25 10:04:27.591 ERROR 20692 --- [scheduling-1] o.s.s.s.TaskUtils$LoggingErrorHandler : Unexpected error occurred in scheduled task
  69. org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
  70. ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException
  71. ### The error may exist in com/gyee/alarm/mapper/auto/ProEconAlarmRuleMapper.java (best guess)
  72. ### The error may involve com.gyee.alarm.mapper.auto.ProEconAlarmRuleMapper.selectList
  73. ### The error occurred while executing a query
  74. ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException
  75. at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92) ~[mybatis-spring-2.0.4.jar:2.0.4]
  76. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440) ~[mybatis-spring-2.0.4.jar:2.0.4]
  77. at com.sun.proxy.$Proxy96.selectList(Unknown Source) ~[na:na]
  78. at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223) ~[mybatis-spring-2.0.4.jar:2.0.4]
  79. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  80. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:78) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  81. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:96) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  82. at com.sun.proxy.$Proxy135.selectList(Unknown Source) ~[na:na]
  83. at com.baomidou.mybatisplus.extension.service.IService.list(IService.java:275) ~[mybatis-plus-extension-3.3.2.jar:3.3.2]
  84. at com.baomidou.mybatisplus.extension.service.IService.list(IService.java:284) ~[mybatis-plus-extension-3.3.2.jar:3.3.2]
  85. at com.gyee.alarm.service.auto.impl.ProEconAlarmRuleServiceImpl.inital(ProEconAlarmRuleServiceImpl.java:35) ~[classes/:na]
  86. at com.gyee.alarm.task.thread.ScheduledTasks.reportCurrentTime(ScheduledTasks.java:41) ~[classes/:na]
  87. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_351]
  88. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_351]
  89. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_351]
  90. at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_351]
  91. at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
  92. at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-5.2.2.RELEASE.jar:5.2.2.RELEASE]
  93. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_351]
  94. at java.util.concurrent.FutureTask.runAndReset$$$capture(FutureTask.java:308) [na:1.8.0_351]
  95. at java.util.concurrent.FutureTask.runAndReset(FutureTask.java) [na:1.8.0_351]
  96. at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_351]
  97. at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_351]
  98. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_351]
  99. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_351]
  100. at java.lang.Thread.run(Thread.java:750) [na:1.8.0_351]
  101. Caused by: org.apache.ibatis.exceptions.PersistenceException:
  102. ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException
  103. ### The error may exist in com/gyee/alarm/mapper/auto/ProEconAlarmRuleMapper.java (best guess)
  104. ### The error may involve com.gyee.alarm.mapper.auto.ProEconAlarmRuleMapper.selectList
  105. ### The error occurred while executing a query
  106. ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException
  107. at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) ~[mybatis-3.5.4.jar:3.5.4]
  108. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149) ~[mybatis-3.5.4.jar:3.5.4]
  109. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) ~[mybatis-3.5.4.jar:3.5.4]
  110. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_351]
  111. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_351]
  112. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_351]
  113. at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_351]
  114. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) ~[mybatis-spring-2.0.4.jar:2.0.4]
  115. ... 24 common frames omitted
  116. Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException
  117. at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81) ~[spring-jdbc-5.1.8.RELEASE.jar:5.1.8.RELEASE]
  118. at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) ~[mybatis-spring-2.0.4.jar:2.0.4]
  119. at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) ~[mybatis-spring-2.0.4.jar:2.0.4]
  120. at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336) ~[mybatis-3.5.4.jar:3.5.4]
  121. at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.prepareStatement(MybatisSimpleExecutor.java:91) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  122. at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:66) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  123. at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324) ~[mybatis-3.5.4.jar:3.5.4]
  124. at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) ~[mybatis-3.5.4.jar:3.5.4]
  125. at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:163) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  126. at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:90) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  127. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) ~[mybatis-3.5.4.jar:3.5.4]
  128. ... 30 common frames omitted
  129. Caused by: java.sql.SQLException: null
  130. at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1472) ~[druid-1.1.10.jar:1.1.10]
  131. at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1255) ~[druid-1.1.10.jar:1.1.10]
  132. at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:5007) ~[druid-1.1.10.jar:1.1.10]
  133. at com.alibaba.druid.filter.stat.StatFilter.dataSource_getConnection(StatFilter.java:680) ~[druid-1.1.10.jar:1.1.10]
  134. at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:5003) ~[druid-1.1.10.jar:1.1.10]
  135. at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1233) ~[druid-1.1.10.jar:1.1.10]
  136. at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1225) ~[druid-1.1.10.jar:1.1.10]
  137. at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90) ~[druid-1.1.10.jar:1.1.10]
  138. at com.baomidou.dynamic.datasource.ds.ItemDataSource.getConnection(ItemDataSource.java:56) ~[dynamic-datasource-spring-boot-starter-3.5.0.jar:3.5.0]
  139. at com.baomidou.dynamic.datasource.ds.AbstractRoutingDataSource.getConnection(AbstractRoutingDataSource.java:48) ~[dynamic-datasource-spring-boot-starter-3.5.0.jar:3.5.0]
  140. at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:157) ~[spring-jdbc-5.1.8.RELEASE.jar:5.1.8.RELEASE]
  141. at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115) ~[spring-jdbc-5.1.8.RELEASE.jar:5.1.8.RELEASE]
  142. at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78) ~[spring-jdbc-5.1.8.RELEASE.jar:5.1.8.RELEASE]
  143. ... 40 common frames omitted
  144. Caused by: java.lang.InterruptedException: null
  145. at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2014) ~[na:1.8.0_351]
  146. at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2048) ~[na:1.8.0_351]
  147. at com.alibaba.druid.pool.DruidDataSource.takeLast(DruidDataSource.java:1899) ~[druid-1.1.10.jar:1.1.10]
  148. at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1460) ~[druid-1.1.10.jar:1.1.10]
  149. ... 52 common frames omitted
  150. 2024-11-25 10:04:27.603 INFO 20692 --- [SpringContextShutdownHook] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource start closing ....
  151. 2024-11-25 10:04:27.610 INFO 20692 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-2} closed
  152. 2024-11-25 10:04:27.611 INFO 20692 --- [SpringContextShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
  153. 2024-11-25 10:04:27.611 INFO 20692 --- [SpringContextShutdownHook] c.b.d.d.DynamicRoutingDataSource : dynamic-datasource all closed success,bye
  154. 2024-11-25 10:04:27.634 INFO 20692 --- [main] ConditionEvaluationReportLoggingListener :
  155. Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  156. 2024-11-25 10:04:27.641 ERROR 20692 --- [main] o.s.boot.SpringApplication : Application run failed
  157. java.lang.IllegalStateException: Failed to execute CommandLineRunner
  158. at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:787) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
  159. at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:768) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
  160. at org.springframework.boot.SpringApplication.run(SpringApplication.java:322) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
  161. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
  162. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
  163. at com.gyee.alarm.AlarmCustom.main(AlarmCustom.java:16) [classes/:na]
  164. Caused by: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
  165. ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.DataSourceDisableException
  166. ### The error may exist in com/gyee/alarm/mapper/auto/ProBasicWeatherStationMapper.java (best guess)
  167. ### The error may involve com.gyee.alarm.mapper.auto.ProBasicWeatherStationMapper.selectList
  168. ### The error occurred while executing a query
  169. ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.DataSourceDisableException
  170. at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92) ~[mybatis-spring-2.0.4.jar:2.0.4]
  171. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440) ~[mybatis-spring-2.0.4.jar:2.0.4]
  172. at com.sun.proxy.$Proxy96.selectList(Unknown Source) ~[na:na]
  173. at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:223) ~[mybatis-spring-2.0.4.jar:2.0.4]
  174. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.executeForMany(MybatisMapperMethod.java:177) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  175. at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:78) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  176. at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:96) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  177. at com.sun.proxy.$Proxy120.selectList(Unknown Source) ~[na:na]
  178. at com.baomidou.mybatisplus.extension.service.IService.list(IService.java:275) ~[mybatis-plus-extension-3.3.2.jar:3.3.2]
  179. at com.baomidou.mybatisplus.extension.service.IService.list(IService.java:284) ~[mybatis-plus-extension-3.3.2.jar:3.3.2]
  180. at com.gyee.alarm.init.CacheContext.run(CacheContext.java:200) ~[classes/:na]
  181. at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:784) [spring-boot-2.2.2.RELEASE.jar:2.2.2.RELEASE]
  182. ... 5 common frames omitted
  183. Caused by: org.apache.ibatis.exceptions.PersistenceException:
  184. ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.DataSourceDisableException
  185. ### The error may exist in com/gyee/alarm/mapper/auto/ProBasicWeatherStationMapper.java (best guess)
  186. ### The error may involve com.gyee.alarm.mapper.auto.ProBasicWeatherStationMapper.selectList
  187. ### The error occurred while executing a query
  188. ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.DataSourceDisableException
  189. at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30) ~[mybatis-3.5.4.jar:3.5.4]
  190. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:149) ~[mybatis-3.5.4.jar:3.5.4]
  191. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) ~[mybatis-3.5.4.jar:3.5.4]
  192. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_351]
  193. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_351]
  194. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_351]
  195. at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_351]
  196. at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) ~[mybatis-spring-2.0.4.jar:2.0.4]
  197. ... 15 common frames omitted
  198. Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.alibaba.druid.pool.DataSourceDisableException
  199. at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81) ~[spring-jdbc-5.1.8.RELEASE.jar:5.1.8.RELEASE]
  200. at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80) ~[mybatis-spring-2.0.4.jar:2.0.4]
  201. at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67) ~[mybatis-spring-2.0.4.jar:2.0.4]
  202. at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:336) ~[mybatis-3.5.4.jar:3.5.4]
  203. at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.prepareStatement(MybatisSimpleExecutor.java:91) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  204. at com.baomidou.mybatisplus.core.executor.MybatisSimpleExecutor.doQuery(MybatisSimpleExecutor.java:66) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  205. at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:324) ~[mybatis-3.5.4.jar:3.5.4]
  206. at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156) ~[mybatis-3.5.4.jar:3.5.4]
  207. at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:163) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  208. at com.baomidou.mybatisplus.core.executor.MybatisCachingExecutor.query(MybatisCachingExecutor.java:90) ~[mybatis-plus-core-3.3.2.jar:3.3.2]
  209. at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:147) ~[mybatis-3.5.4.jar:3.5.4]
  210. ... 21 common frames omitted
  211. Caused by: com.alibaba.druid.pool.DataSourceDisableException: null
  212. at com.alibaba.druid.pool.DruidDataSource.takeLast(DruidDataSource.java:1907) ~[druid-1.1.10.jar:1.1.10]
  213. at com.alibaba.druid.pool.DruidDataSource.getConnectionInternal(DruidDataSource.java:1460) ~[druid-1.1.10.jar:1.1.10]
  214. at com.alibaba.druid.pool.DruidDataSource.getConnectionDirect(DruidDataSource.java:1255) ~[druid-1.1.10.jar:1.1.10]
  215. at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:5007) ~[druid-1.1.10.jar:1.1.10]
  216. at com.alibaba.druid.filter.stat.StatFilter.dataSource_getConnection(StatFilter.java:680) ~[druid-1.1.10.jar:1.1.10]
  217. at com.alibaba.druid.filter.FilterChainImpl.dataSource_connect(FilterChainImpl.java:5003) ~[druid-1.1.10.jar:1.1.10]
  218. at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1233) ~[druid-1.1.10.jar:1.1.10]
  219. at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1225) ~[druid-1.1.10.jar:1.1.10]
  220. at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:90) ~[druid-1.1.10.jar:1.1.10]
  221. at com.baomidou.dynamic.datasource.ds.ItemDataSource.getConnection(ItemDataSource.java:56) ~[dynamic-datasource-spring-boot-starter-3.5.0.jar:3.5.0]
  222. at com.baomidou.dynamic.datasource.ds.AbstractRoutingDataSource.getConnection(AbstractRoutingDataSource.java:48) ~[dynamic-datasource-spring-boot-starter-3.5.0.jar:3.5.0]
  223. at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:157) ~[spring-jdbc-5.1.8.RELEASE.jar:5.1.8.RELEASE]
  224. at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:115) ~[spring-jdbc-5.1.8.RELEASE.jar:5.1.8.RELEASE]
  225. at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:78) ~[spring-jdbc-5.1.8.RELEASE.jar:5.1.8.RELEASE]
  226. ... 31 common frames omitted