vertx-zero icon indicating copy to clipboard operation
vertx-zero copied to clipboard

HikariDataPool may produce ClassCastException when vertx-jooq.yml config as follows:

Open nutsjian opened this issue 3 years ago • 1 comments

jooq:
  provider:
    driverClassName: com.mysql.cj.jdbc.Driver
    username: root
    password: 123456
    hostname: database.0coolvertx0.io
    instance: DB_ETERNAL
    jdbcUrl: jdbc:mysql://database.0coolvertx0.io:3306/DB_ETERNAL
    options:
      hikari.max.lifetime: 25600000
      hikari.minimum.idle: 2
      hikari.maximum.pool.size: 8

line:70 this.dataSource.setMaxLifetime(this.database.getOption(OPT_MAX_LIFETIME, 25600000L));

hikari.max.lifetime:java.lang.Integer cannot be cast to class java.lang.Long

nutsjian avatar Dec 01 '21 10:12 nutsjian

Add new Api for JsonObject extract data to avoid auto cast here. Sorry to delay. The latest version 0.9.0-SNAPSHOT fixed.

silentbalanceyh avatar Mar 17 '22 07:03 silentbalanceyh