I developed a simple spring boot application that has a jms listener on IBM MQ. It receives some messages, does some transformation, saves the result to DB and drops the result into a different queue on same queue manager. The app is containerized and deployed on Openshift.
The app starts up successfully and works fine too. But after a arbitary amount of time I see connection aquisition errors. During this time the app is idle and not handling any traffic.
Spring boot version : 2.2.9.RELEASE
odbc version : 12.1.0.2
Below are my log entries. Any help is greatly appreciated.
2020-11-30 15:18:48.949 INFO 1 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.18.Final
2020-11-30 15:18:50.006 INFO 1 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2020-11-30 15:18:52.118 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : HikariPool-1 - configuration:
2020-11-30 15:18:52.120 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : allowPoolSuspension.............false
2020-11-30 15:18:52.120 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : autoCommit......................true
2020-11-30 15:18:52.120 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : catalog.........................none
2020-11-30 15:18:52.120 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : connectionInitSql...............none
2020-11-30 15:18:52.120 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : connectionTestQuery.............none
2020-11-30 15:18:52.121 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : connectionTimeout...............30000
2020-11-30 15:18:52.121 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : dataSource......................none
2020-11-30 15:18:52.121 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : dataSourceClassName.............none
2020-11-30 15:18:52.121 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : dataSourceJNDI..................none
2020-11-30 15:18:52.121 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : dataSourceProperties............{password=<masked>}
2020-11-30 15:18:52.121 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : driverClassName................."oracle.jdbc.OracleDriver"
2020-11-30 15:18:52.121 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : exceptionOverrideClassName......none
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : healthCheckProperties...........{}
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : healthCheckRegistry.............none
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : idleTimeout.....................30000
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : initializationFailTimeout.......1
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : isolateInternalQueries..........false
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : jdbcUrl.........................jdbc:oracle:thin:
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : leakDetectionThreshold..........0
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : maxLifetime.....................2000000
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : maximumPoolSize.................5
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : metricRegistry..................none
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : metricsTrackerFactory...........none
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : minimumIdle.....................2
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : password........................<masked>
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : poolName........................"HikariPool-1"
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : readOnly........................false
2020-11-30 15:18:52.122 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : registerMbeans..................false
2020-11-30 15:18:52.123 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : scheduledExecutor...............none
2020-11-30 15:18:52.123 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : schema..........................none
2020-11-30 15:18:52.123 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : threadFactory...................internal
2020-11-30 15:18:52.123 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : transactionIsolation............default
2020-11-30 15:18:52.123 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : username........................"dummy"
2020-11-30 15:18:52.123 DEBUG 1 --- [ main] com.zaxxer.hikari.HikariConfig : validationTimeout...............5000
2020-11-30 15:18:52.123 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2020-11-30 15:19:23.417 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2020-11-30 19:42:51.988 WARN 1 --- [oundedElastic-4] o.s.b.a.jdbc.DataSourceHealthIndicator : DataSource health check failed
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: HikariPool-1 - Interrupted during connection acquisition
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82) ~[spring-jdbc-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:324) ~[spring-jdbc-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.getProduct(DataSourceHealthIndicator.java:122) ~[spring-boot-actuator-2.2.9.RELEASE.jar!/:2.2.9.RELEASE]
at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doDataSourceHealthCheck(DataSourceHealthIndicator.java:107) ~[spring-boot-actuator-2.2.9.RELEASE.jar!/:2.2.9.RELEASE]
at org.springframework.boot.actuate.jdbc.DataSourceHealthIndicator.doHealthCheck(DataSourceHealthIndicator.java:102) ~[spring-boot-actuator-2.2.9.RELEASE.jar!/:2.2.9.RELEASE]
at org.springframework.boot.actuate.health.AbstractHealthIndicator.health(AbstractHealthIndicator.java:82) ~[spring-boot-actuator-2.2.9.RELEASE.jar!/:2.2.9.RELEASE]
at reactor.core.publisher.MonoCallable.call(MonoCallable.java:91) ~[reactor-core-3.3.8.RELEASE.jar!/:3.3.8.RELEASE]
at reactor.core.publisher.FluxSubscribeOnCallable$CallableSubscribeOnSubscription.run(FluxSubscribeOnCallable.java:225) ~[reactor-core-3.3.8.RELEASE.jar!/:3.3.8.RELEASE]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68) ~[reactor-core-3.3.8.RELEASE.jar!/:3.3.8.RELEASE]
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28) ~[reactor-core-3.3.8.RELEASE.jar!/:3.3.8.RELEASE]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_262]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_262]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[na:1.8.0_262]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_262]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_262]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_262]
Caused by: java.sql.SQLException: HikariPool-1 - Interrupted during connection acquisition
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:201) ~[HikariCP-3.4.5.jar!/:na]
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:162) ~[HikariCP-3.4.5.jar!/:na]
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:128) ~[HikariCP-3.4.5.jar!/:na]
at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:158) ~[spring-jdbc-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:116) ~[spring-jdbc-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79) ~[spring-jdbc-5.2.8.RELEASE.jar!/:5.2.8.RELEASE]
... 15 common frames omitted
Caused by: java.lang.InterruptedException: null
at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:944) ~[na:1.8.0_262]
at com.zaxxer.hikari.util.ConcurrentBag.borrow(ConcurrentBag.java:151) ~[HikariCP-3.4.5.jar!/:na]
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:180) ~[HikariCP-3.4.5.jar!/:na]
... 20 common frames omitted
2020-11-30 19:42:59.266 WARN 1 --- [oundedElastic-1] o.s.b.a.jdbc.DataSourceHealthIndicator : DataSource health check failed
Related
i'm army
army computer can install intellij, but can not install H2.
test need h2 or other database program.
i wish know h2 use with 'localhost:8080/h2-console'
thank you for read.
2023-01-05T23:47:23.106+09:00 INFO 6156 --- \[ restartedMain\] anyway.sunwon.SunwonApplication : Starting SunwonApplication using Java 19.0.1 with PID 6156 (C:\\Users\\CKIRUser\\Desktop\\sunwon\\out\\production\\classes started by CKIRUser in C:\\Users\\CKIRUser\\Desktop\\sunwon)
2023-01-05T23:47:23.111+09:00 INFO 6156 --- \[ restartedMain\] anyway.sunwon.SunwonApplication : No active profile set, falling back to 1 default profile: "default"
2023-01-05T23:47:23.187+09:00 INFO 6156 --- \[ restartedMain\] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2023-01-05T23:47:23.187+09:00 INFO 6156 --- \[ restartedMain\] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2023-01-05T23:47:25.137+09:00 INFO 6156 --- \[ restartedMain\] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2023-01-05T23:47:25.225+09:00 INFO 6156 --- \[ restartedMain\] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 75 ms. Found 1 JPA repository interfaces.
2023-01-05T23:47:26.289+09:00 INFO 6156 --- \[ restartedMain\] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2023-01-05T23:47:26.306+09:00 INFO 6156 --- \[ restartedMain\] o.apache.catalina.core.StandardService : Starting service \[Tomcat\]
2023-01-05T23:47:26.306+09:00 INFO 6156 --- \[ restartedMain\] o.apache.catalina.core.StandardEngine : Starting Servlet engine: \[Apache Tomcat/10.1.4\]
2023-01-05T23:47:26.404+09:00 INFO 6156 --- \[ restartedMain\] o.a.c.c.C.\[Tomcat\].\[localhost\].\[/\] : Initializing Spring embedded WebApplicationContext
2023-01-05T23:47:26.406+09:00 INFO 6156 --- \[ restartedMain\] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3217 ms
2023-01-05T23:47:26.509+09:00 INFO 6156 --- \[ restartedMain\] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2023-01-05T23:47:27.118+09:00 INFO 6156 --- \[ restartedMain\] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection conn0: url=jdbc:h2:mem:testdb user=SA
2023-01-05T23:47:27.120+09:00 INFO 6156 --- \[ restartedMain\] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2023-01-05T23:47:27.129+09:00 INFO 6156 --- \[ restartedMain\] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:testdb'
2023-01-05T23:47:27.392+09:00 INFO 6156 --- \[ restartedMain\] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo \[name: default\]
2023-01-05T23:47:27.459+09:00 INFO 6156 --- \[ restartedMain\] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.1.6.Final
2023-01-05T23:47:27.638+09:00 WARN 6156 --- \[ restartedMain\] org.hibernate.orm.deprecation : HHH90000021: Encountered deprecated setting \[javax.persistence.sharedCache.mode\], use \[jakarta.persistence.sharedCache.mode\] instead
2023-01-05T23:47:27.895+09:00 INFO 6156 --- \[ restartedMain\] SQL dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2023-01-05T23:47:28.487+09:00 INFO 6156 --- \[ restartedMain\] o.h.m.i.EntityInstantiatorPojoStandard : HHH000182: No default (no-argument) constructor for class: anyway.sunwon.domain.Book (class must be instantiated by Interceptor)
2023-01-05T23:47:28.746+09:00 INFO 6156 --- \[ restartedMain\] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: \[org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform\]
2023-01-05T23:47:28.760+09:00 INFO 6156 --- \[ restartedMain\] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2023-01-05T23:47:29.060+09:00 WARN 6156 --- \[ restartedMain\] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: anyway.sunwon.repository.AdminUserRepository
2023-01-05T23:47:29.178+09:00 WARN 6156 --- \[ restartedMain\] JpaBaseConfiguration$JpaWebConfiguration : 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
2023-01-05T23:47:29.491+09:00 INFO 6156 --- \[ restartedMain\] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with \[org.springframework.security.web.session.DisableEncodeUrlFilter#7eec5f21, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter#79825521, org.springframework.security.web.context.SecurityContextHolderFilter#440b0657, org.springframework.security.web.header.HeaderWriterFilter#67a9dd22, org.springframework.security.web.csrf.CsrfFilter#619d188, org.springframework.security.web.authentication.logout.LogoutFilter#5d875af3, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#1fcb3a64, org.springframework.security.web.savedrequest.RequestCacheAwareFilter#166bfb26, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter#3beb7681, org.springframework.security.web.authentication.AnonymousAuthenticationFilter#4632b036, org.springframework.security.web.access.ExceptionTranslationFilter#76fd6789, org.springframework.security.web.access.intercept.AuthorizationFilter#21e50fa\]
2023-01-05T23:47:29.689+09:00 INFO 6156 --- \[ restartedMain\] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2023-01-05T23:47:29.746+09:00 INFO 6156 --- \[ restartedMain\] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2023-01-05T23:47:29.760+09:00 INFO 6156 --- \[ restartedMain\] anyway.sunwon.SunwonApplication : Started SunwonApplication in 7.529 seconds (process running for 8.562)
HikariProxyConnection#1662029991 wrapping conn0: url=jdbc:h2:mem:testdb user=SA
jdbc:h2:mem:testdb
SA
2023-01-05T23:47:29.792+09:00 INFO 6156 --- \[ restartedMain\] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-01-05T23:47:29.814+09:00 ERROR 6156 --- \[ restartedMain\] o.s.boot.SpringApplication : Application run failed
java.lang.IllegalStateException: Failed to execute ApplicationRunner
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:761) \~\[spring-boot-3.0.1.jar:3.0.1\]
at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:748) \~\[spring-boot-3.0.1.jar:3.0.1\]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) \~\[spring-boot-3.0.1.jar:3.0.1\]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1302) \~\[spring-boot-3.0.1.jar:3.0.1\]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1291) \~\[spring-boot-3.0.1.jar:3.0.1\]
at anyway.sunwon.SunwonApplication.main(SunwonApplication.java:10) \~\[classes/:na\]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) \~\[na:na\]
at java.base/java.lang.reflect.Method.invoke(Method.java:578) \~\[na:na\]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) \~\[spring-boot-devtools-3.0.1.jar:3.0.1\]
Caused by: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar \[INSERT INTO USER VALUES(1, 'testuser')\]
at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:101) \~\[spring-jdbc-6.0.3.jar:6.0.3\]
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70) \~\[spring-jdbc-6.0.3.jar:6.0.3\]
at org.springframework.jdbc.core.JdbcTemplate.translateException(JdbcTemplate.java:1538) \~\[spring-jdbc-6.0.3.jar:6.0.3\]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:393) \~\[spring-jdbc-6.0.3.jar:6.0.3\]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:431) \~\[spring-jdbc-6.0.3.jar:6.0.3\]
at anyway.sunwon.H2Runner.run(H2Runner.java:37) \~\[classes/:na\]
at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:758) \~\[spring-boot-3.0.1.jar:3.0.1\]
... 8 common frames omitted
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "INSERT INTO \[\*\]USER VALUES(1, 'testuser')"; expected "identifier"; SQL statement:
INSERT INTO USER VALUES(1, 'testuser') \[42001-214\]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:502) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:477) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.message.DbException.getSyntaxError(DbException.java:261) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.command.Parser.readIdentifier(Parser.java:5656) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.command.Parser.readIdentifierWithSchema(Parser.java:5616) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.command.Parser.readTableOrView(Parser.java:8328) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.command.Parser.parseInsert(Parser.java:1632) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.command.Parser.parsePrepared(Parser.java:814) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.command.Parser.parse(Parser.java:689) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.command.Parser.parse(Parser.java:661) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.command.Parser.prepareCommand(Parser.java:569) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.engine.SessionLocal.prepareLocal(SessionLocal.java:631) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.engine.SessionLocal.prepareCommand(SessionLocal.java:554) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1116) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:237) \~\[h2-2.1.214.jar:2.1.214\]
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:223) \~\[h2-2.1.214.jar:2.1.214\]
at com.zaxxer.hikari.pool.ProxyStatement.execute(ProxyStatement.java:94) \~\[HikariCP-5.0.1.jar:na\]
at com.zaxxer.hikari.pool.HikariProxyStatement.execute(HikariProxyStatement.java) \~\[HikariCP-5.0.1.jar:na\]
at org.springframework.jdbc.core.JdbcTemplate$1ExecuteStatementCallback.doInStatement(JdbcTemplate.java:422) \~\[spring-jdbc-6.0.3.jar:6.0.3\]
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:381) \~\[spring-jdbc-6.0.3.jar:6.0.3\]
... 11 common frames omitted
2023-01-05T23:47:29.853+09:00 INFO 6156 --- \[ restartedMain\] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2023-01-05T23:47:30.061+09:00 WARN 6156 --- \[ restartedMain\] o.s.b.f.support.DisposableBeanAdapter : Invocation of destroy method failed on bean with name 'inMemoryDatabaseShutdownExecutor': org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) \[90121-214\]
2023-01-05T23:47:30.062+09:00 INFO 6156 --- \[ restartedMain\] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2023-01-05T23:47:30.066+09:00 INFO 6156 --- \[ restartedMain\] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
Process finished with exit code 0
Kindly paste your Java program as well.
stmt.executeUpdate("INSERT INTO CUSTOMER (ID,NAME,AGE,ADDRESS,SALARY) VALUES (1, 'Ramesh', 32, 'Ahmedabad', 2000.00 );");
Pasting the working SQL query in my current system, Thanks.
the application stands up but the graphql end point is not produced. I generated this project on start.spring.io but originally settings is the graphql end point not produced
application.yml
datasource:
url: jdbc:postgresql://localhost:10000/postgres
username: admin
password: 12345
graphql:
graphiql:
enabled: true
log
2022-07-07 09:44:40.006 INFO 10960 --- [ restartedMain] c.i.e.EmployeeManagmentApplication : No active profile set, falling back to 1 default profile: "default"
2022-07-07 09:44:40.173 INFO 10960 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable
2022-07-07 09:44:40.173 INFO 10960 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG'
2022-07-07 09:44:41.787 INFO 10960 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2022-07-07 09:44:41.788 INFO 10960 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2022-07-07 09:44:41.823 INFO 10960 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 13 ms. Found 0 JPA repository interfaces.
2022-07-07 09:44:41.866 INFO 10960 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2022-07-07 09:44:41.869 INFO 10960 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2022-07-07 09:44:41.891 INFO 10960 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 2 ms. Found 0 Redis repository interfaces.
2022-07-07 09:44:43.152 INFO 10960 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2022-07-07 09:44:43.168 INFO 10960 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-07-07 09:44:43.168 INFO 10960 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.64]
2022-07-07 09:44:43.326 INFO 10960 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-07-07 09:44:43.326 INFO 10960 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3149 ms
2022-07-07 09:44:43.500 INFO 10960 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2022-07-07 09:44:43.722 INFO 10960 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2022-07-07 09:44:43.794 INFO 10960 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2022-07-07 09:44:43.927 INFO 10960 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.6.9.Final
2022-07-07 09:44:44.284 INFO 10960 --- [ restartedMain] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2022-07-07 09:44:44.547 INFO 10960 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.PostgreSQL10Dialect
2022-07-07 09:44:44.780 INFO 10960 --- [ restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2022-07-07 09:44:44.793 INFO 10960 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2022-07-07 09:44:44.903 WARN 10960 --- [ restartedMain] JpaBaseConfiguration$JpaWebConfiguration : 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
2022-07-07 09:44:46.688 INFO 10960 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
2022-07-07 09:44:46.779 INFO 10960 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2022-07-07 09:44:46.805 INFO 10960 --- [ restartedMain] c.i.e.EmployeeManagmentApplication : Started EmployeeManagmentApplication in 7.652 seconds (JVM running for 10.128)```
pom.xml
I am new to Hazelcast and in my application when I am starting Hazelcast member it is showing two addresses been blacklisted don't know why, what is the best configuration for Hazelcast clustering?
Here is the log that I am getting:
2021-07-22 13:15:51.823 INFO 212124 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8081 (http)
2021-07-22 13:15:51.844 INFO 212124 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-07-22 13:15:51.845 INFO 212124 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.44]
2021-07-22 13:15:52.094 INFO 212124 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-07-22 13:15:52.094 INFO 212124 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 4676 ms
2021-07-22 13:15:52.417 INFO 212124 --- [ main] com.hazelcast.instance.AddressPicker : [LOCAL] [APP] [4.2] Interfaces is disabled, trying to pick one address from TCP-IP config addresses: [192.168.0.104]
2021-07-22 13:15:53.350 INFO 212124 --- [ main] com.hazelcast.system : [192.168.0.104]:5701 [APP] [4.2] Hazelcast 4.2 (20210324 - 405cfd1) starting at [192.168.0.104]:5701
2021-07-22 13:15:54.178 INFO 212124 --- [ main] com.hazelcast.instance.impl.Node : [192.168.0.104]:5701 [APP] [4.2] Using TCP/IP discovery
2021-07-22 13:15:54.180 WARN 212124 --- [ main] com.hazelcast.cp.CPSubsystem : [192.168.0.104]:5701 [APP] [4.2] CP Subsystem is not enabled. CP data structures will operate in UNSAFE mode! Please note that UNSAFE mode will not provide strong consistency guarantees.
2021-07-22 13:15:54.680 INFO 212124 --- [ main] c.h.internal.diagnostics.Diagnostics : [192.168.0.104]:5701 [APP] [4.2] Diagnostics started
2021-07-22 13:15:54.680 INFO 212124 --- [ main] c.h.i.diagnostics.BuildInfoPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active
2021-07-22 13:15:54.681 INFO 212124 --- [ main] c.h.i.d.SystemPropertiesPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active
2021-07-22 13:15:54.681 INFO 212124 --- [ main] c.h.i.d.ConfigPropertiesPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active
2021-07-22 13:15:54.684 INFO 212124 --- [ main] c.h.i.d.PendingInvocationsPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active: period-millis:30000 threshold:1
2021-07-22 13:15:54.686 INFO 212124 --- [ main] c.h.internal.diagnostics.MetricsPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active, period-millis:60000
2021-07-22 13:15:54.686 INFO 212124 --- [ main] c.h.i.diagnostics.SlowOperationPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active, period-millis:30000
2021-07-22 13:15:54.687 INFO 212124 --- [ main] c.h.i.d.PendingInvocationsPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active: period-millis:30000 threshold-millis:5000
2021-07-22 13:15:54.687 INFO 212124 --- [ main] c.h.i.d.PendingInvocationsPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active: period-millis:5000
2021-07-22 13:15:54.688 INFO 212124 --- [ main] c.h.i.d.OperationProfilerPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active, period-millis:5000
2021-07-22 13:15:54.688 INFO 212124 --- [ main] .h.i.d.MemberHazelcastInstanceInfoPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active, period-millis:60000
2021-07-22 13:15:54.689 INFO 212124 --- [ main] c.h.i.diagnostics.SystemLogPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active: logPartitions:false
2021-07-22 13:15:54.692 INFO 212124 --- [SchedulerThread] c.h.internal.diagnostics.Diagnostics : [192.168.0.104]:5701 [APP] [4.2] Diagnostics log directory is [D:\Parth\Hazelcast\logs]
2021-07-22 13:15:54.694 INFO 212124 --- [ main] c.h.i.diagnostics.StoreLatencyPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active: period-millis:60000 resetPeriod-millis:0
2021-07-22 13:15:54.696 INFO 212124 --- [ main] .h.i.d.MemberHazelcastInstanceInfoPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active, period-millis:10000
2021-07-22 13:15:54.697 INFO 212124 --- [ main] c.h.i.d.OperationHeartbeatPlugin : [192.168.0.104]:5701 [APP] [4.2] Plugin:active: period-millis:10000 max-deviation:33%
2021-07-22 13:15:54.699 INFO 212124 --- [ main] com.hazelcast.core.LifecycleService : [192.168.0.104]:5701 [APP] [4.2] [192.168.0.104]:5701 is STARTING
2021-07-22 13:15:59.367 INFO 212124 --- [cached.thread-3] c.h.internal.cluster.impl.TcpIpJoiner : [192.168.0.104]:5701 [APP] [4.2] [192.168.0.104]:5702 is added to the blacklist.
2021-07-22 13:15:59.524 INFO 212124 --- [cached.thread-5] c.h.internal.cluster.impl.TcpIpJoiner : [192.168.0.104]:5701 [APP] [4.2] [192.168.0.104]:5703 is added to the blacklist.
2021-07-22 13:16:00.178 INFO 212124 --- [ main] c.h.internal.cluster.ClusterService : [192.168.0.104]:5701 [APP] [4.2]
Members {size:1, ver:1} [
Member [192.168.0.104]:5701 - c35ebca4-ca5f-404c-ba0e-1c5e1287aa21 this
]
2021-07-22 13:16:00.194 INFO 212124 --- [ main] com.hazelcast.core.LifecycleService : [192.168.0.104]:5701 [APP] [4.2] [192.168.0.104]:5701 is STARTED
2021-07-22 13:16:00.514 INFO 212124 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-07-22 13:16:01.489 INFO 212124 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8081 (http) with context path ''
2021-07-22 13:16:01.506 INFO 212124 --- [ main] com.APPhub.Application : Started Application in 15.086 seconds (JVM running for 15.996)
Here two addresses getting blacklisted not sure why.
And my server config is as below:
Config config = new Config();
config.getNetworkConfig().setPort(5701)
.setPortAutoIncrement( true ).setPortCount(20);
config.getNetworkConfig().setReuseAddress( true );
System.setProperty( "hazelcast.diagnostics.enabled", "true" );
System.setProperty( "hazelcast.diagnostics.metric.level", "info" );
System.setProperty( "hazelcast.diagnostics.invocation.sample.period.seconds", "30" );
System.setProperty( "hazelcast.diagnostics.pending.invocations.period.seconds", "30" );
System.setProperty( "hazelcast.diagnostics.slowoperations.period.seconds", "30" );
System.setProperty( "hazelcast.diagnostics.storeLatency.period.seconds", "60" );
System.setProperty( "hazelcast.diagnostics.directory", "D:/Parth/Hazelcast/logs/" );
System.setProperty( "hazelcast.diagnostics.filename.prefix", "Server" );
config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(false);
config.getNetworkConfig().getInterfaces().addInterface("127.0.0.1");
JoinConfig join = config.getNetworkConfig().getJoin();
join.getTcpIpConfig().addMember("192.168.0.104");
join.getTcpIpConfig().setEnabled(true);
When trying to connect client it gives:
2021-07-22 12:07:24.081 INFO 192584 --- [ration.thread-0] c.h.c.i.p.t.AuthenticationMessageTask : [192.168.0.104]:5701 [APP] [4.2] Received auth from Connection[id=2, /127.0.0.1:5701->/127.0.0.1:5703, qualifier=null, endpoint=[127.0.0.1]:5703, alive=true, connectionType=JVM, planeIndex=-1], successfully authenticated, clientUuid: 6bebb36c-b865-4fd5-aa12-d0f3ec82ae8d, client version: 4.2
When Connect 1 ==============================================================
6bebb36c-b865-4fd5-aa12-d0f3ec82ae8d
8c54b788-7dfb-401a-ae2c-70444534fa8d
When Connect 1 ==============================================================
2021-07-22 12:07:38.902 WARN 192584 --- [.IO.thread-in-1] c.h.i.server.tcp.TcpServerConnection : [192.168.0.104]:5701 [APP] [4.2] Connection[id=1, /127.0.0.1:5701->/127.0.0.1:5702, qualifier=null, endpoint=[127.0.0.1]:5702, alive=false, connectionType=JVM, planeIndex=-1] closed. Reason: Exception in Connection[id=1, /127.0.0.1:5701->/127.0.0.1:5702, qualifier=null, endpoint=[127.0.0.1]:5702, alive=true, connectionType=JVM, planeIndex=-1], thread=hz.APP1.IO.thread-in-1
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[na:1.8.0_275]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) ~[na:1.8.0_275]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[na:1.8.0_275]
at sun.nio.ch.IOUtil.read(IOUtil.java:197) ~[na:1.8.0_275]
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:379) ~[na:1.8.0_275]
at com.hazelcast.internal.networking.nio.NioInboundPipeline.process(NioInboundPipeline.java:119) ~[hazelcast-all-4.2.jar:4.2]
at com.hazelcast.internal.networking.nio.NioThread.processSelectionKey(NioThread.java:383) [hazelcast-all-4.2.jar:4.2]
at com.hazelcast.internal.networking.nio.NioThread.processSelectionKeys(NioThread.java:368) [hazelcast-all-4.2.jar:4.2]
at com.hazelcast.internal.networking.nio.NioThread.selectLoop(NioThread.java:294) [hazelcast-all-4.2.jar:4.2]
at com.hazelcast.internal.networking.nio.NioThread.executeRun(NioThread.java:249) [hazelcast-all-4.2.jar:4.2]
Client Configuration:
ClientConfig clientConfig = new ClientConfig();
clientConfig.setClusterName("APP");
clientConfig.getNetworkConfig().addAddress("localhost");
clientConfig.getNetworkConfig().setSmartRouting(true);
clientConfig.getNetworkConfig().addOutboundPortDefinition(5702-5720);
clientConfig.setProperty("hazelcast.client.heartbeat.timeout", "60000");
clientConfig.setProperty("hazelcast.client.heartbeat.timeout", "5000");
ClientConnectionStrategyConfig connectionStrategyConfig = clientConfig.getConnectionStrategyConfig();
connectionStrategyConfig.setReconnectMode(ClientConnectionStrategyConfig.ReconnectMode.ON);
connectionRetryConfig.setInitialBackoffMillis(1000)
.setMaxBackoffMillis(60000)
.setMultiplier(2)
.setClusterConnectTimeoutMillis(1000)
.setJitter(0.2);
Let me know what wrong am I doing or what is best configuration for Member and client clustering where Member will be 1 and clients will be multiple.
It's likely that the heartbeat timeout for the client is too short.
You've probably copied the heartbeat configuration from https://docs.hazelcast.com/imdg/4.2/clients/java.html
clientConfig.setProperty("hazelcast.client.heartbeat.timeout", "60000");
clientConfig.setProperty("hazelcast.client.heartbeat.interval", "5000");
but for the second line you've set timeout again instead of interval, overriding the value of 60000 with 5000
Requirement:
Read from the file containing 100K records.
For each records, retrieve data from IBM DB2 database table and then retrieve data from NuoDB database table.
At last, insert the updated records in the NuoDB database table.
Design approached:
Chunk-oriented processing where 1000 records will be read from the file and processed and written into the database.
Issue:
After approx 75K records and running for almost 5 hours, the batch application failed with the below error:
Hibernate: select ... the SELECT query for DB2
Hibernate: select ... the SELECT query for NuoDB
2020-06-08 22:00:00.187 INFO [ ,,,] 32215 --- [ Thread-9] ConfigServletWebServerApplicationContext : Closing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#2a7f1f10: startup date [Mon Jun 08 17:22:51 BST 2020]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext#3972a855
2020-06-08 22:00:00.192 INFO [ ,,,] 32215 --- [ Thread-9] o.s.c.support.DefaultLifecycleProcessor : Stopping beans in phase 0
2020-06-08 22:00:00.193 INFO [ ,,,] 32215 --- [ Thread-9] o.s.i.endpoint.EventDrivenConsumer : Removing {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
2020-06-08 22:00:00.193 INFO [ ,,,] 32215 --- [ Thread-9] o.s.i.channel.PublishSubscribeChannel : Channel ' -1.errorChannel' has 0 subscriber(s).
2020-06-08 22:00:00.193 INFO [ ,,,] 32215 --- [ Thread-9] o.s.i.endpoint.EventDrivenConsumer : stopped _org.springframework.integration.errorLogger
2020-06-08 22:00:00.195 INFO [ ,,,] 32215 --- [ Thread-9] o.s.s.c.ThreadPoolTaskScheduler : Shutting down ExecutorService 'taskScheduler'
2020-06-08 22:00:00.196 INFO [ ,,,] 32215 --- [ Thread-9] o.s.jmx.export.MBeanExporter : Unregistering JMX-exposed beans on shutdown
2020-06-08 22:00:00.203 INFO [ ,,,] 32215 --- [ Thread-9] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2020-06-08 22:00:00.203 INFO [ ,,,] 32215 --- [ Thread-9] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2020-06-08 22:00:00.203 INFO [ ,,,] 32215 --- [ Thread-9] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2020-06-08 22:00:00.203 INFO [ ,,,] 32215 --- [ Thread-9] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2020-06-08 22:00:00.203 INFO [ ,,,] 32215 --- [ Thread-9] com.zaxxer.hikari.HikariDataSource : HikariPool-3 - Shutdown initiated...
2020-06-08 22:00:00.210 INFO [ ,,,] 32215 --- [ Thread-9] com.zaxxer.hikari.HikariDataSource : HikariPool-3 - Shutdown completed.
2020-06-08 22:00:00.210 INFO [ ,,,] 32215 --- [ Thread-9] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Shutdown initiated...
2020-06-08 22:00:00.211 INFO [ ,,,] 32215 --- [ Thread-9] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Shutdown completed.
2020-06-08 22:00:00.212 INFO [ ,,,] 32215 --- [ Thread-9] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2020-06-08 22:00:00.214 INFO [ ,,,] 32215 --- [ Thread-9] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
What can be the actual cause of this issue?
Is this like a database cant be triggered SELECT query for 100K times regularly for 4-6 hours.
I re-run the application with log-level in DEBUG mode and here is the error I got:
com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2030][11211][4.19.72] A communication error occurred during operations on the connection's underlying socket, socket input stream,
or socket output stream. Error location: Command timeout check. Message: Command timed out. ERRORCODE=-4499, SQLSTATE=08001
It seems like your database connection has been lost. You need to restart your job instance. If correctly configured, your job should restart from where it left off after the failure.
If I for instance need to restart my session in Intellij, I always get stuck here, I believe it has something to do with my db, which is a mariadb running in docker. Only solution so far is to reboot my computer, rather drastic solution I think.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c54527dea5d8 mariadb "docker-entrypoint.s…" 2 months ago Up About an hour 127.0.0.1:3306->3306/tcp suspicious_sinoussi
#
:: Spring Boot :: (v2.0.1.RELEASE)
2019-01-29 18:19:02.921 INFO 3979 --- [ main] c.netapp.qronicle.QronicleApplicationKt : Starting QronicleApplicationKt on jmasson-mac-0 with PID 3979 (/Users/jonma/Development/java/report-generator/target/classes started by jonma in /Users/jonma/Development/java/report-generator)
2019-01-29 18:19:02.980 INFO 3979 --- [ main] c.netapp.qronicle.QronicleApplicationKt : No active profile set, falling back to default profiles: default
2019-01-29 18:19:03.295 INFO 3979 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#1ed6388a: startup date [Tue Jan 29 18:19:03 GMT 2019]; root of context hierarchy
2019-01-29 18:19:07.020 INFO 3979 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2019-01-29 18:19:07.570 INFO 3979 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 9096 (http)
2019-01-29 18:19:07.601 INFO 3979 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2019-01-29 18:19:07.601 INFO 3979 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.29
2019-01-29 18:19:07.613 INFO 3979 --- [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/jonma/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
2019-01-29 18:19:07.753 INFO 3979 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2019-01-29 18:19:07.753 INFO 3979 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 4459 ms
2019-01-29 18:19:08.679 INFO 3979 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2019-01-29 18:19:08.684 INFO 3979 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2019-01-29 18:19:08.685 INFO 3979 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpTraceFilter' to: [/*]
2019-01-29 18:19:08.685 INFO 3979 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webMvcMetricsFilter' to: [/*]
2019-01-29 18:19:08.747 INFO 3979 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
added debug to zaxxer.hikar
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader#18b4aac2
2019-01-29 18:45:36.680 INFO 4407 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]
2019-01-29 18:45:36.685 INFO 4407 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2019-01-29 18:45:36.686 INFO 4407 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpTraceFilter' to: [/*]
2019-01-29 18:45:36.687 INFO 4407 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'webMvcMetricsFilter' to: [/*]
2019-01-29 18:45:36.749 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : HikariPool-1 - configuration:
2019-01-29 18:45:36.752 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : allowPoolSuspension.............false
2019-01-29 18:45:36.752 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : autoCommit......................true
2019-01-29 18:45:36.752 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : catalog.........................none
2019-01-29 18:45:36.752 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : connectionInitSql...............none
2019-01-29 18:45:36.752 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : connectionTestQuery.............none
2019-01-29 18:45:36.752 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : connectionTimeout...............30000
2019-01-29 18:45:36.752 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : dataSource......................none
2019-01-29 18:45:36.752 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : dataSourceClassName.............none
2019-01-29 18:45:36.752 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : dataSourceJNDI..................none
2019-01-29 18:45:36.753 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : dataSourceProperties............{password=<masked>}
2019-01-29 18:45:36.753 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : driverClassName................."org.mariadb.jdbc.Driver"
2019-01-29 18:45:36.753 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : healthCheckProperties...........{}
2019-01-29 18:45:36.753 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : healthCheckRegistry.............none
2019-01-29 18:45:36.753 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : idleTimeout.....................600000
2019-01-29 18:45:36.754 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : initializationFailFast..........true
2019-01-29 18:45:36.754 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : initializationFailTimeout.......1
2019-01-29 18:45:36.754 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : isolateInternalQueries..........false
2019-01-29 18:45:36.754 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : jdbc4ConnectionTest.............false
2019-01-29 18:45:36.754 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : jdbcUrl.........................jdbc:mysql://localhost/qronicle?createDatabaseIfNotExist=true
2019-01-29 18:45:36.754 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : leakDetectionThreshold..........0
2019-01-29 18:45:36.754 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : maxLifetime.....................1800000
2019-01-29 18:45:36.754 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : maximumPoolSize.................10
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : metricRegistry..................none
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : metricsTrackerFactory...........com.zaxxer.hikari.metrics.micrometer.MicrometerMetricsTrackerFactory#68b366e2
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : minimumIdle.....................10
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : password........................<masked>
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : poolName........................"HikariPool-1"
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : readOnly........................false
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : registerMbeans..................false
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : scheduledExecutor...............none
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : scheduledExecutorService........internal
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : schema..........................none
2019-01-29 18:45:36.755 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : threadFactory...................internal
2019-01-29 18:45:36.756 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : transactionIsolation............default
2019-01-29 18:45:36.756 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : username........................"root"
2019-01-29 18:45:36.756 DEBUG 4407 --- [ main] com.zaxxer.hikari.HikariConfig : validationTimeout...............5000
2019-01-29 18:45:36.756 INFO 4407 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
You can restart docker. there is no need to restart your PC.
This problem appears with the new docker version. try using an older one like 18.06.1
Same problem found here
Does someone know how to fix this problem?