-
Notifications
You must be signed in to change notification settings - Fork 41.1k
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
HikariPool Shutdown #12542
Comments
@stalary It's not clear what you think the problem is here. Looking at the two log lines, it appears that the application is being shut down. As part of that, Hikari and Tomcat are being shut down. Can you please provide some details of why you've raised an issue and what you think is going wrong? A minimal, complete, and verifiable example that reproduces the problem would be ideal. |
I'm sorry to bother you, but this error occurred during my migration from 1.5 to 2.0. I modified many configuration files, but this problem has been bothering me. I don't know what the problem is.Or where can I see the configuration change? |
Sorry, it's still not clear to me what problem you are trying to report. As I said above, the log lines show that Tomcat and Hikari are being shut down. Both of those are expected to happen when the application context is being closed. Are you saying that Tomcat and Hikari are being shut down at another time when the application context is not being closed? If so, as I requested above, please provide a minimal, complete, and verifiable example. It's impossible to explain why it's happening based on two log lines. |
I can't find more error info |
|
Thanks,I Already resolve this problem,I find my gradle add two conflict package. |
I am pleased to hear that you have solved your problem.
I don’t know as I’ve been unable to get the information from you that we’d need to be able to answer that question. If you provide a small sample that reproduces the problem we could probably figure it out. Until then I am going to close this issue. |
I have the same issue with you, could you show me the conflict package and help to solve this problem |
You can check if your dependencies are in conflict.Or you can check if you are using the deprecated package. |
I have the same issue,
I isolated the problem, its related to the dependency: If i added that dependency it get shutdown, if i remove that dependency it works. |
Thanks for trying to help, @dartains. Unfortunately, that information hasn't helped me to reproduce the problem. I have a web app using Spring Boot 2.0.3 with DevTools and the dependency on Commons VFS. It starts as expected and nothing is shutdown:
If you share a minimal application that reproduces the problem we'd be happy to take another look. |
Thanks @wilkinsona
--------------------------------Running
If i remove the dependency compile group: 'org.apache.commons', name: 'commons-vfs2', version: '2.2', it works fine, but i lose that functionality. |
Thanks. I haven't been able to reproduce the shutdown problem, but I do now have a better understanding of what's happening. I'm now pretty sure that the application is shutting down due to a startup failure. The details of the startup failure are not logged due to the presence of Commons Logging (#12457). You should remove your explicit dependency on Commons Logging and also exclude it. You can do so globally with this Gradle config: configurations {
all*.exclude group: 'commons-logging', module: 'commons-logging'
} |
Hi @wilkinsona thanks for your help, I fixed the issue. !!!!
Then,
After this, it worked!!!!! I think the issue was about it was not able to log something and that was causing the startup failure.
BR |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I fixed this issue by fixing spring boot version from 2.5.4 to 2.5.0 in the project pom file org.springframework.boot spring-boot-starter-parent 2.5.0 |
thanks for this information |
The HikariPool automic exit at run time.
The text was updated successfully, but these errors were encountered: