vertx-web
vertx-web copied to clipboard
Error in BodyHandler.create(false) after update to 4.3.1
Bug
After upgrade to 4.3.1 version I have the issue in the following lines:
.route(path)
.method(HttpMethod.POST)
.handler(BodyHandler.create(false))
.handler(endStep);
I have received the following message: Cannot add [SECURITY_POLICY] handler to route with [BODY] handler at index 0
Version
4.3.1
I have swapped CORS and BODY handlers and that issue was gone.
But I have new one:
Here:
server.requestHandler(router).listen(port).onFailure(t -> {
I received:
java.lang.ClassNotFoundException: io.netty.handler.codec.compression.CompressionOptions
ClassNotFoundException is usually a sign that the project is mixing the wrong versions of dependencies.