'Vertx Http Client not working after setShared to true
I got the following when I set .setShared(true) in my WebClientOptions:
java.lang.ClassCastException: class io.vertx.core.http.impl.SharedHttpClient cannot be cast to class io.vertx.core.http.impl.HttpClientImpl (io.vertx.core.http.impl.SharedHttpClient and io.vertx.core.http.impl.HttpClientImpl are in unnamed module of loader 'app')
Solution 1:[1]
Was resolve in https://github.com/vert-x3/vertx-web/issues/2165
Just need to update vertx-web version to 4.2.8 or higher
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Alexey Surovenko |