Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

停止服务出错 #32

Open
kevin70 opened this issue Jun 5, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@kevin70
Copy link
Contributor

commented Jun 5, 2019

2019-06-05 14:39:12,479 INFO  o.s.s.c.ThreadPoolTaskScheduler - Shutting down ExecutorService 'taskScheduler'
2019-06-05 14:39:12,482 INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
2019-06-05 14:39:12,485 INFO  com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
2019-06-05 14:39:12,497 ERROR io.zhudy.duic.service.ServerService - unregister 服务失败: iZbp1at0lkg7mhjwao6zwzZ:7777
org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: HikariDataSource HikariDataSource 
(HikariPool-1) has been closed.
        at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:305)
        at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:378)
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)
        at io.zhudy.duic.repository.impl.MySQLServerRepository$register$1.accept(MySQLServerRepository.kt:41)
        at io.zhudy.duic.repository.impl.MySQLServerRepository$register$1.accept(MySQLServerRepository.kt:34)
        at reactor.core.publisher.MonoCreate.subscribe(MonoCreate.java:53)
        at reactor.core.publisher.MonoOnAssembly.subscribe(MonoOnAssembly.java:61)
        at reactor.core.publisher.Mono.subscribe(Mono.java:3694)
        at reactor.core.publisher.MonoSubscribeOn$SubscribeOnSubscriber.run(MonoSubscribeOn.java:123)
        at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
        at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
        Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Assembly trace from producer [reactor.core.publisher.MonoCreate] :
        reactor.core.publisher.Mono.create(Mono.java:183)
        io.zhudy.duic.repository.impl.MySQLServerRepository.register(MySQLServerRepository.kt:40)
Error has been observed by the following operator(s):
        |_      Mono.create ⇢ io.zhudy.duic.repository.impl.MySQLServerRepository.register(MySQLServerRepository.kt:40)
        |_      Mono.subscribeOn ⇢ io.zhudy.duic.repository.impl.MySQLServerRepository.register(MySQLServerRepository.kt:52)

Caused by: java.sql.SQLException: HikariDataSource HikariDataSource (HikariPool-1) has been closed.
        at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:96)
        at org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:262)
        ... 16 common frames omitted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.