Open sm-tester opened 6 years ago
Same issue here. Just created simple Verticle:
public class DatabaseVerticle extends AbstractVerticle {
private SQLClient mySQLClient;
@Override
public void start(Future<Void> startFuture) throws Exception {
JsonObject mySQLClientConfig = new JsonObject()
.put("host", config().getString("mysql.host", "localhost"))
.put("port", config().getInteger("mysql.port", 3306))
.put("maxPoolSize", config().getInteger("mysql.maxPoolSize", 100))
.put("username", config().getString("mysql.username", "user"))
.put("password", config().getString("mysql.password", "password"))
.put("database", config().getString("mysql.database", "dbName"))
.put("charset", config().getString("mysql.charset", StandardCharsets.UTF_8.name()));
mySQLClient = MySQLClient.createNonShared(vertx, mySQLClientConfig);
Future<SQLConnection> future = Future.future();
mySQLClient.getConnection(future.completer());
future.compose(conn -> {
Future<Void> f = Future.future();
//Create some table
return f;
}).setHandler(ar ->{
if(ar.failed()){
startFuture.fail(ar.cause());
}else{
startFuture.complete();
}
});
Deployed verticle like this
vertx.deployVerticle(new DatabaseVerticle(), new DeploymentOptions().setConfig(config()));
and than exception was thrown.
Is there any fork that supports this?
Problem when using library with mysql version 8.0.11 GA Release: