Closed stalary closed 6 years ago
@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.
2018-03-21 11:33:27.535 INFO 9116 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.2.14.Final}
2018-03-21 11:33:27.536 INFO 9116 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2018-03-21 11:33:27.563 INFO 9116 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2018-03-21 11:33:27.655 INFO 9116 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2018-03-21 11:33:27.893 INFO 9116 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2018-03-21 11:33:27.903 INFO 9116 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
2018-03-21 11:33:30.180 INFO 9116 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2018-03-21 11:33:30.184 INFO 9116 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2018-03-21 11:33:30.186 INFO 9116 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
I can't find more error info
2018-03-21 15:33:23.232 INFO 11630 --- [ main] o.c.t.service.redis.RedisService : add redis PUB/SUB , refresh Channel is course_tr:channel:big_question
2018-03-21 15:33:23.234 INFO 11630 --- [ main] o.c.t.service.redis.RedisService : add redis PUB/SUB , refresh Channel is course_tr:channel:quiz
2018-03-21 15:33:24.141 INFO 11630 --- [ main] com.datastax.driver.core.NettyUtil : Did not find Netty's native epoll transport in the classpath, defaulting to NIO.
2018-03-21 15:33:27.204 INFO 11630 --- [ main] c.d.d.c.p.DCAwareRoundRobinPolicy : Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor)
2018-03-21 15:33:27.206 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host ds001/10.168.17.25:9042 added
2018-03-21 15:33:27.206 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host ds002/10.168.17.26:9042 added
2018-03-21 15:33:27.206 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host ds003/10.168.17.27:9042 added
2018-03-21 15:33:27.206 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host ds004/10.168.17.28:9042 added
2018-03-21 15:33:27.206 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host ds005/10.168.17.29:9042 added
2018-03-21 15:33:27.206 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.17.80:9042 added
2018-03-21 15:33:27.207 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.17.81:9042 added
2018-03-21 15:33:27.207 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.17.82:9042 added
2018-03-21 15:33:27.207 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.17.83:9042 added
2018-03-21 15:33:27.207 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.32.43:9042 added
2018-03-21 15:33:27.207 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.32.44:9042 added
2018-03-21 15:33:27.207 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host ds006/10.168.17.30:9042 added
2018-03-21 15:33:27.207 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.32.161:9042 added
2018-03-21 15:33:27.207 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.17.58:9042 added
2018-03-21 15:33:27.208 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.17.59:9042 added
2018-03-21 15:33:27.208 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.105.132.47:9042 added
2018-03-21 15:33:27.208 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.105.132.46:9042 added
2018-03-21 15:33:27.208 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.105.132.49:9042 added
2018-03-21 15:33:27.208 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.105.132.48:9042 added
2018-03-21 15:33:27.209 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.105.132.51:9042 added
2018-03-21 15:33:27.209 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.105.132.50:9042 added
2018-03-21 15:33:27.209 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.105.132.53:9042 added
2018-03-21 15:33:27.209 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.105.132.52:9042 added
2018-03-21 15:33:27.209 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.32.68:9042 added
2018-03-21 15:33:27.209 INFO 11630 --- [ main] com.datastax.driver.core.Cluster : New Cassandra host /10.168.32.69:9042 added
2018-03-21 15:33:30.643 INFO 11630 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2018-03-21 15:33:30.657 INFO 11630 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2018-03-21 15:33:30.661 INFO 11630 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
Thanks,I Already resolve this problem,I find my gradle add two conflict package. But why I can't get more error info? This makes it difficult for me to solve the problem.
I am pleased to hear that you have solved your problem.
But why I can't get more error info? This makes it difficult for me to solve the 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,
2018-06-18 18:50:48.414 INFO 19176 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2018-06-18 18:50:48.414 INFO 19176 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
I isolated the problem, its related to the dependency: compile group: 'org.apache.commons', name: 'commons-vfs2', version:'2.0'
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:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.3.RELEASE)
2018-06-19 11:43:53.070 INFO 931 --- [ restartedMain] com.example.demo.Gh12542Application : Starting Gh12542Application on aw-rmbp.local with PID 931 (/Users/awilkinson/dev/workspaces/spring/spring-boot/master/gh-12542/target/classes started by awilkinson in /Users/awilkinson/dev/workspaces/spring/spring-boot/master/gh-12542)
2018-06-19 11:43:53.073 INFO 931 --- [ restartedMain] com.example.demo.Gh12542Application : No active profile set, falling back to default profiles: default
2018-06-19 11:43:53.131 INFO 931 --- [ restartedMain] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@c8b355b: startup date [Tue Jun 19 11:43:53 BST 2018]; root of context hierarchy
2018-06-19 11:43:54.269 INFO 931 --- [ restartedMain] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$cac3193b] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-06-19 11:43:54.604 INFO 931 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2018-06-19 11:43:54.626 INFO 931 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-06-19 11:43:54.626 INFO 931 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31
2018-06-19 11:43:54.635 INFO 931 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/awilkinson/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
2018-06-19 11:43:54.719 INFO 931 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-06-19 11:43:54.719 INFO 931 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1591 ms
2018-06-19 11:43:54.850 INFO 931 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2018-06-19 11:43:54.851 INFO 931 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet webServlet mapped to [/h2-console/*]
2018-06-19 11:43:54.854 INFO 931 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2018-06-19 11:43:54.855 INFO 931 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-06-19 11:43:54.855 INFO 931 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-06-19 11:43:54.855 INFO 931 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2018-06-19 11:43:55.061 INFO 931 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2018-06-19 11:43:55.198 INFO 931 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2018-06-19 11:43:55.244 INFO 931 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2018-06-19 11:43:55.264 INFO 931 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2018-06-19 11:43:55.332 INFO 931 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate Core {5.2.17.Final}
2018-06-19 11:43:55.333 INFO 931 --- [ restartedMain] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2018-06-19 11:43:55.363 INFO 931 --- [ restartedMain] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2018-06-19 11:43:55.457 INFO 931 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2018-06-19 11:43:55.711 INFO 931 --- [ restartedMain] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@5ea27d41'
2018-06-19 11:43:55.714 INFO 931 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2018-06-19 11:43:55.793 INFO 931 --- [ restartedMain] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-06-19 11:43:56.002 INFO 931 --- [ restartedMain] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@c8b355b: startup date [Tue Jun 19 11:43:53 BST 2018]; root of context hierarchy
2018-06-19 11:43:56.044 WARN 931 --- [ restartedMain] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2018-06-19 11:43:56.087 INFO 931 --- [ restartedMain] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-06-19 11:43:56.088 INFO 931 --- [ restartedMain] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-06-19 11:43:56.110 INFO 931 --- [ restartedMain] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-06-19 11:43:56.110 INFO 931 --- [ restartedMain] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-06-19 11:43:56.367 INFO 931 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2018-06-19 11:43:56.404 INFO 931 --- [ restartedMain] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2018-06-19 11:43:56.406 INFO 931 --- [ restartedMain] o.s.j.e.a.AnnotationMBeanExporter : Bean with name 'dataSource' has been autodetected for JMX exposure
2018-06-19 11:43:56.410 INFO 931 --- [ restartedMain] o.s.j.e.a.AnnotationMBeanExporter : Located MBean 'dataSource': registering with JMX server as MBean [com.zaxxer.hikari:name=dataSource,type=HikariDataSource]
2018-06-19 11:43:56.447 INFO 931 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2018-06-19 11:43:56.451 INFO 931 --- [ restartedMain] com.example.demo.Gh12542Application : Started Gh12542Application in 3.688 seconds (JVM running for 4.081)
If you share a minimal application that reproduces the problem we'd be happy to take another look.
Thanks @wilkinsona Here more details about the error:
dependencies {
compile group: 'org.codehaus.jackson', name: 'jackson-jaxrs', version:'1.9.13'
compile group: 'log4j', name: 'log4j', version:'1.2.17'
compile group: 'com.wordnik', name: 'swagger-jersey-jaxrs_2.10', version:'1.3.0'
compile group: 'commons-collections', name: 'commons-collections', version:'3.2'
compile group: 'org.apache.commons', name: 'commons-io', version:'1.3.2'
compile group: 'org.apache.commons', name: 'commons-compress', version:'1.8'
compile group: 'commons-net', name: 'commons-net', version:'3.3'
compile group: 'com.jcraft', name: 'jsch', version:'0.1.45'
compile group: 'commons-logging', name: 'commons-logging', version: '1.2'
compile group: 'org.apache.commons', name: 'commons-vfs2', version: '2.2'
compile group: 'javax.ejb', name: 'javax.ejb-api', version:'3.2'
compile group: 'org.apache.activemq', name: 'activemq-pool', version:'5.9.0'
compile group: 'javax.ws.rs', name: 'javax.ws.rs-api', version:'2.0'
compile group: 'javax.jms', name: 'javax.jms-api', version: '2.0.1'
compile group: 'com.ericsson.internal.csdp', name: 'authorization-utils', version:'3.3.1'
compile ('org.springframework:spring-core')
compile ('org.springframework.integration:spring-integration-sftp')
compile('org.springframework.boot:spring-boot-starter-data-redis')
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-mail')
runtime('org.springframework.boot:spring-boot-devtools')
runtime('org.postgresql:postgresql')
testCompile('org.springframework.boot:spring-boot-starter-test')
--------------------------------Running
log4j:WARN No appenders could be found for logger (org.springframework.boot.devtools.settings.DevToolsSettings).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.3.RELEASE)
2018-06-19 09:48:33.658 INFO 18064 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-06-19 09:48:34.079 INFO 18064 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-06-19 09:48:34.157 INFO 18064 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.NoteRepository.
2018-06-19 09:48:34.172 INFO 18064 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.ReportListViewPaginatedRepository.
2018-06-19 09:48:34.172 INFO 18064 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.ReportListViewRepository.
2018-06-19 09:48:34.172 INFO 18064 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.ReportModelRepository.
2018-06-19 09:48:34.172 INFO 18064 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.RequestModelRepository.
2018-06-19 09:48:38.353 INFO 18064 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-06-19 09:48:38.353 INFO 18064 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31
2018-06-19 09:48:38.368 INFO 18064 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_171\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\SQL11\DLL;C:\Program Files (x86)\SQL11\BIN;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Common\bin;C:\Program Files\curl-7.59.0-win64-mingw\bin;C:\Program Files\apache-maven-3.5.3\bin;C:\Program Files\Git\bin;C:\Program Files\gradle-4.7\bin;C:\Program Files\PuTTY\;C:\Program Files\nodejs\;;C:\Program Files\Microsoft VS Code\bin;C:\Users\egerara\AppData\Roaming\npm;.]
2018-06-19 09:48:38.696 INFO 18064 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-06-19 09:48:39.959 INFO 18064 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2018-06-19 09:48:41.224 INFO 18064 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2018-06-19 09:48:41.801 INFO 18064 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2018-06-19 09:48:42.128 INFO 18064 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate Core {5.2.17.Final}
2018-06-19 09:48:42.144 INFO 18064 --- [ restartedMain] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2018-06-19 09:48:42.440 INFO 18064 --- [ restartedMain] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2018-06-19 09:48:43.095 INFO 18064 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL95Dialect
2018-06-19 09:49:33.626 INFO 18064 --- [ restartedMain] o.h.e.j.e.i.LobCreatorBuilderImpl : HHH000421: Disabling contextual LOB creation as hibernate.jdbc.lob.non_contextual_creation is true
2018-06-19 09:49:33.641 INFO 18064 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@343cbd7e
2018-06-19 09:49:35.029 INFO 18064 --- [ restartedMain] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2018-06-19 09:49:35.403 INFO 18064 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2018-06-19 09:49:35.403 INFO 18064 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2018-06-19 09:49:35.419 INFO 18064 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
Process finished with exit code 0
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 (https://github.com/spring-projects/spring-boot/issues/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. !!!! You were right, the details of startup failure were not logging, so, to get more details i put my attention in the log4j warning messages:
log4j:WARN No appenders could be found for logger (org.springframework.boot.devtools.settings.DevToolsSettings).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Then, I added a log4.properties file and put here the settings, instead of in my normal application.properties
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger=INFO, A1
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
After this, it worked!!!!! I think the issue was about it was not able to log something and that was causing the startup failure.
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.0.3.RELEASE)
0 [restartedMain] INFO com.ericsson.csdp.bm.webireportscheduler.WebiReportSchedulerApplication - Starting WebiReportSchedulerApplication on CA00203418 with PID 4008 (C:\Users\egerara\csdp_code_repository\webi-report-scheduler\out\production\classes started by egerara in C:\Users\egerara\csdp_code_repository\webi-report-scheduler)
0 [restartedMain] INFO com.ericsson.csdp.bm.webireportscheduler.WebiReportSchedulerApplication - No active profile set, falling back to default profiles: default
140 [restartedMain] INFO org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext - Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@f5325bb: startup date [Tue Jun 19 10:05:51 EDT 2018]; root of context hierarchy
2018-06-19 10:05:55.146 INFO 4008 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-06-19 10:05:55.442 INFO 4008 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-06-19 10:05:55.520 INFO 4008 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.NoteRepository.
2018-06-19 10:05:55.520 INFO 4008 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.ReportListViewPaginatedRepository.
2018-06-19 10:05:55.520 INFO 4008 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.ReportListViewRepository.
2018-06-19 10:05:55.520 INFO 4008 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.ReportModelRepository.
2018-06-19 10:05:55.520 INFO 4008 --- [ restartedMain] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface com.ericsson.csdp.bm.webireportscheduler.repository.RequestModelRepository.
4336 [restartedMain] INFO org.springframework.integration.config.IntegrationRegistrar - No bean named 'integrationHeaderChannelRegistry' has been explicitly defined. Therefore, a default DefaultHeaderChannelRegistry will be created.
5257 [restartedMain] INFO org.springframework.integration.config.DefaultConfiguringBeanFactoryPostProcessor - No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
5272 [restartedMain] INFO org.springframework.integration.config.DefaultConfiguringBeanFactoryPostProcessor - No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
5538 [restartedMain] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$f68fb255] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
5631 [restartedMain] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.integration.config.IntegrationManagementConfiguration' of type [org.springframework.integration.config.IntegrationManagementConfiguration$$EnhancerBySpringCGLIB$$61816d84] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
5850 [restartedMain] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.integration.dsl.context.IntegrationFlowContext' of type [org.springframework.integration.dsl.context.IntegrationFlowContext] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
7815 [restartedMain] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 8081 (http)
2018-06-19 10:05:59.170 INFO 4008 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-06-19 10:05:59.170 INFO 4008 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.31
2018-06-19 10:05:59.186 INFO 4008 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_171\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\SQL11\DLL;C:\Program Files (x86)\SQL11\BIN;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\CheckPoint\Endpoint Security\Endpoint Common\bin;C:\Program Files\curl-7.59.0-win64-mingw\bin;C:\Program Files\apache-maven-3.5.3\bin;C:\Program Files\Git\bin;C:\Program Files\gradle-4.7\bin;C:\Program Files\PuTTY\;C:\Program Files\nodejs\;;C:\Program Files\Microsoft VS Code\bin;C:\Users\egerara\AppData\Roaming\npm;.]
2018-06-19 10:05:59.498 INFO 4008 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
8174 [localhost-startStop-1] INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 8049 ms
8502 [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'corsFilter' to: [/*]
8502 [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'characterEncodingFilter' to: [/*]
8502 [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
8502 [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'httpPutFormContentFilter' to: [/*]
8502 [localhost-startStop-1] INFO org.springframework.boot.web.servlet.FilterRegistrationBean - Mapping filter: 'requestContextFilter' to: [/*]
8502 [localhost-startStop-1] INFO org.springframework.boot.web.servlet.DelegatingFilterProxyRegistrationBean - Mapping filter: 'springSecurityFilterChain' to: [/*]
8502 [localhost-startStop-1] INFO org.springframework.boot.web.servlet.ServletRegistrationBean - Servlet dispatcherServlet mapped to [/]
2018-06-19 10:06:00.091 INFO 4008 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2018-06-19 10:06:01.526 INFO 4008 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
10358 [restartedMain] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Building JPA container EntityManagerFactory for persistence unit 'default'
2018-06-19 10:06:01.713 INFO 4008 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2018-06-19 10:06:01.853 INFO 4008 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate Core {5.2.17.Final}
2018-06-19 10:06:01.853 INFO 4008 --- [ restartedMain] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2018-06-19 10:06:01.916 INFO 4008 --- [ restartedMain] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2018-06-19 10:06:02.368 INFO 4008 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL95Dialect
2018-06-19 10:06:50.439 INFO 4008 --- [ restartedMain] o.h.e.j.e.i.LobCreatorBuilderImpl : HHH000421: Disabling contextual LOB creation as hibernate.jdbc.lob.non_contextual_creation is true
2018-06-19 10:06:50.439 INFO 4008 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@44b3ddc8
2018-06-19 10:06:51.468 INFO 4008 --- [ restartedMain] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
60363 [restartedMain] INFO org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean - Initialized JPA EntityManagerFactory for persistence unit 'default'
62562 [restartedMain] INFO org.springframework.security.web.DefaultSecurityFilterChain - Creating filter chain: Ant [pattern='/webi_report_scheduler/download'], []
62749 [restartedMain] INFO org.springframework.security.web.DefaultSecurityFilterChain - Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@229c8f79, org.springframework.security.web.context.SecurityContextPersistenceFilter@63b1fb2a, org.springframework.security.web.header.HeaderWriterFilter@317c3ea, org.springframework.security.web.csrf.CsrfFilter@6b020457, org.springframework.security.web.authentication.logout.LogoutFilter@3b72c492, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@4dbe4a68, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@555f08e, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@1dafbb66, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@5f3cf606, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@54dc1b84, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@3422d3d4, org.springframework.security.web.session.SessionManagementFilter@1e01f15f, org.springframework.security.web.access.ExceptionTranslationFilter@4151a89, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@1a9631b2]
62921 [restartedMain] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
63249 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@f5325bb: startup date [Tue Jun 19 10:05:51 EDT 2018]; root of context hierarchy
63327 [restartedMain] WARN org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration$JpaWebConfiguration$JpaWebMvcConfiguration - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/api/notes],methods=[POST]}" onto public com.ericsson.csdp.bm.webireportscheduler.model.Note com.ericsson.csdp.bm.webireportscheduler.controller.NoteController.createNote(com.ericsson.csdp.bm.webireportscheduler.model.Note)
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/api/notes/{id}],methods=[GET]}" onto public org.springframework.http.ResponseEntity<com.ericsson.csdp.bm.webireportscheduler.model.Note> com.ericsson.csdp.bm.webireportscheduler.controller.NoteController.getNoteById(java.lang.Long)
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/api/notes],methods=[GET]}" onto public java.util.List<com.ericsson.csdp.bm.webireportscheduler.model.Note> com.ericsson.csdp.bm.webireportscheduler.controller.NoteController.getAllNotes()
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/api/notes/{id}],methods=[PUT]}" onto public org.springframework.http.ResponseEntity<com.ericsson.csdp.bm.webireportscheduler.model.Note> com.ericsson.csdp.bm.webireportscheduler.controller.NoteController.updateNote(java.lang.Long,com.ericsson.csdp.bm.webireportscheduler.model.Note)
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/api/notes/{id}],methods=[DELETE]}" onto public org.springframework.http.ResponseEntity<com.ericsson.csdp.bm.webireportscheduler.model.Note> com.ericsson.csdp.bm.webireportscheduler.controller.NoteController.deleteNote(java.lang.Long)
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/webi_report_scheduler/requests],methods=[POST]}" onto public java.lang.String com.ericsson.csdp.bm.webireportscheduler.controller.ReportingController.create(com.ericsson.csdp.bm.webireportscheduler.model.SimplifiedReportBORequest) throws java.lang.Exception
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/webi_report_scheduler/reports/pages/{pageNumber}],methods=[GET]}" onto public java.lang.String com.ericsson.csdp.bm.webireportscheduler.controller.ReportingController.getAllReportsPaginated(java.lang.Integer,org.springframework.ui.Model)
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/webi_report_scheduler/createarchiver],methods=[POST]}" onto public java.lang.String com.ericsson.csdp.bm.webireportscheduler.controller.ReportingController.createFileArchiver(com.ericsson.csdp.bm.webireportscheduler.model.FileDownloaderRequest) throws java.lang.Exception
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/webi_report_scheduler/report-requests],methods=[POST]}" onto public java.lang.String com.ericsson.csdp.bm.webireportscheduler.controller.ReportingController.reportRequest(com.ericsson.csdp.bm.webireportscheduler.model.RequestDtoControllerBody) throws java.lang.Exception
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/webi_report_scheduler/reports],methods=[GET]}" onto public java.util.List<com.ericsson.csdp.bm.webireportscheduler.model.RequestModel> com.ericsson.csdp.bm.webireportscheduler.controller.ReportingController.getAllReports()
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/webi_report_scheduler/reports/{reportid}],methods=[GET]}" onto public org.springframework.http.ResponseEntity<com.ericsson.csdp.bm.webireportscheduler.model.ReportModel> com.ericsson.csdp.bm.webireportscheduler.controller.ReportingController.getReportById(java.lang.Integer)
63393 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/webi_report_scheduler/reports/{reportid}],methods=[PUT]}" onto public org.springframework.http.ResponseEntity<com.ericsson.csdp.bm.webireportscheduler.model.ReportModel> com.ericsson.csdp.bm.webireportscheduler.controller.ReportingController.updateReport(java.lang.Integer,com.ericsson.csdp.bm.webireportscheduler.model.ReportModelSimplified)
63409 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/webi_report_scheduler/reports/{id}/{status}],methods=[PUT]}" onto public org.springframework.http.ResponseEntity<com.ericsson.csdp.bm.webireportscheduler.model.ReportModel> com.ericsson.csdp.bm.webireportscheduler.controller.ReportingController.updateReportPath(java.lang.Integer,java.lang.String)
63409 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/webi_report_scheduler/download],methods=[GET]}" onto public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> com.ericsson.csdp.bm.webireportscheduler.controller.ReportingController.download(java.lang.String) throws java.io.IOException
63409 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
63409 [restartedMain] INFO org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
63456 [restartedMain] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
63456 [restartedMain] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
64797 [restartedMain] INFO org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler'
65468 [restartedMain] INFO org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer - LiveReload server is running on port 35729
65624 [restartedMain] INFO org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Registering beans for JMX exposure on startup
65624 [restartedMain] INFO org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Bean with name 'dataSource' has been autodetected for JMX exposure
65624 [restartedMain] INFO org.springframework.jmx.export.annotation.AnnotationMBeanExporter - Located MBean 'dataSource': registering with JMX server as MBean [com.zaxxer.hikari:name=dataSource,type=HikariDataSource]
65640 [restartedMain] INFO org.springframework.context.support.DefaultLifecycleProcessor - Starting beans in phase 0
65640 [restartedMain] INFO org.springframework.integration.endpoint.EventDrivenConsumer - Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
65640 [restartedMain] INFO org.springframework.integration.channel.PublishSubscribeChannel - Channel 'application.errorChannel' has 1 subscriber(s).
65640 [restartedMain] INFO org.springframework.integration.endpoint.EventDrivenConsumer - started _org.springframework.integration.errorLogger
65718 [restartedMain] INFO org.springframework.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8081 (http) with context path ''
65718 [restartedMain] INFO com.ericsson.csdp.bm.webireportscheduler.WebiReportSchedulerApplication - Started WebiReportSchedulerApplication in 66.514 seconds (JVM running for 68.094)
Process finished with exit code -1
BR
30-12-2018 23:43:55.315 [35m[main][0;39m [34mINFO [0;39m org.hibernate.Version.logVersion - HHH000412: Hibernate Core {5.2.17.Final}
30-12-2018 23:43:55.329 [35m[main][0;39m [34mINFO [0;39m org.hibernate.cfg.Environment.<clinit> - HHH000206: hibernate.properties not found
30-12-2018 23:43:55.651 [35m[main][0;39m [34mINFO [0;39m o.h.annotations.common.Version.<clinit> - HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
30-12-2018 23:43:57.938 [35m[main][0;39m [34mINFO [0;39m org.hibernate.dialect.Dialect.<init> - HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
30-12-2018 23:44:01.112 [35m[main][0;39m [34mINFO [0;39m o.h.jpa.internal.util.LogHelper.logPersistenceUnitInformation - HHH000204: Processing PersistenceUnitInfo [
name: ICA
...]
30-12-2018 23:44:02.008 [35m[main][0;39m [34mINFO [0;39m com.zaxxer.hikari.HikariDataSource.getConnection - HikariPool-2 - Starting...
30-12-2018 23:44:03.242 [35m[main][0;39m [34mINFO [0;39m com.zaxxer.hikari.pool.PoolBase.getAndSetNetworkTimeout - HikariPool-2 - Driver does not support get/set network timeout for connections. (null)
30-12-2018 23:44:03.292 [35m[main][0;39m [34mINFO [0;39m com.zaxxer.hikari.HikariDataSource.getConnection - HikariPool-2 - Start completed.
30-12-2018 23:44:03.293 [35m[main][0;39m [34mINFO [0;39m org.hibernate.dialect.Dialect.<init> - HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
30-12-2018 23:44:05.236 [35m[main][0;39m [34mINFO [0;39m com.zaxxer.hikari.HikariDataSource.close - HikariPool-2 - Shutdown initiated...
30-12-2018 23:44:05.563 [35m[main][0;39m [34mINFO [0;39m com.zaxxer.hikari.HikariDataSource.close - HikariPool-2 - Shutdown completed.
30-12-2018 23:44:05.564 [35m[main][0;39m [34mINFO [0;39m com.zaxxer.hikari.HikariDataSource.close - HikariPool-1 - Shutdown initiated...
30-12-2018 23:44:05.573 [35m[main][0;39m [34mINFO [0;39m com.zaxxer.hikari.HikariDataSource.close - HikariPool-1 - Shutdown completed.
30-12-2018 23:44:05.580 [35m[main][0;39m [34mINFO [0;39m o.a.catalina.core.StandardService.log - Stopping service [Tomcat]
Hi I have the same issue. I tried to exclude the common-logging dependency but happens to be a same error while I run the appn. Could you please help me on this? Above one is the stacktrace errorI'm getting.
@jalajohn as mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Please ask on StackOverflow or come chat with the community on Gitter.
I have also facing same issues, please check my pom.xml and let me know if any thing wrong in pom setup.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.3.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<groupId>com.turacomobile.gb.cashback</groupId>
<artifactId>cashback</artifactId>
<name>cashback</name>
<description>project for Streamz CashBack</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jdbc</artifactId>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-batch</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!-- <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> </dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
<!-- <exclusions> <exclusion> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId> </exclusion> </exclusions> -->
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>
<!-- tag::security[] -->
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency> -->
<!-- end::security[] -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.9</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<!-- <repositories> <repository> <id>spring-snapshots</id> <name>Spring
Snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled>
</snapshots> </repository> <repository> <id>spring-milestones</id> <name>Spring
Milestones</name> <url>https://repo.spring.io/milestone</url> <snapshots>
<enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories>
<pluginRepository> <id>spring-snapshots</id> <name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled>
</snapshots> </pluginRepository> <pluginRepository> <id>spring-milestones</id>
<name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url>
<snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> -->
<version>1.0</version>
</project>
I fixed this issue by Commenting below lines .
I fixed this issue by fixing spring boot version from 2.5.4 to 2.5.0 in the project pom file
thanks for this information
The HikariPool automic exit at run time.