4.1.0 and Brotli Compression

236 views
Skip to first unread message

timm...@hotmail.com

unread,
Jun 4, 2021, 5:34:34 AM6/4/21
to vert.x
I have just upgraded a project to latest 4.1.0, it seems vertx-core is including an old netty-codec version which does not contain the Brotli compression, I had to override the netty-codec managed dependency version and pull in netty-codec 4.1.65.Final, or else java.lang.ClassNotFoundException: io.netty.handler.codec.compression.Brotli

Thomas SEGISMONT

unread,
Jun 4, 2021, 5:59:00 AM6/4/21
to vert.x
Vert.x uses Netty 4.1.65.Final since the release of 4.1.0.CR1

Here's Maven dependency tree on master branch:

$ mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< io.vertx:vertx-core >-------------------------
[INFO] Building Vert.x Core 4.1.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ vertx-core ---
[INFO] io.vertx:vertx-core:jar:4.1.1-SNAPSHOT
[INFO] +- io.netty:netty-common:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-buffer:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-transport:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-handler:jar:4.1.65.Final:compile
[INFO] |  \- io.netty:netty-codec:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-handler-proxy:jar:4.1.65.Final:compile
[INFO] |  \- io.netty:netty-codec-socks:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-codec-http:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-codec-http2:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-resolver:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-resolver-dns:jar:4.1.65.Final:compile
[INFO] |  \- io.netty:netty-codec-dns:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-codec-haproxy:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-transport-native-epoll:jar:4.1.65.Final:compile
[INFO] |  \- io.netty:netty-transport-native-unix-common:jar:4.1.65.Final:compile
[INFO] +- io.netty:netty-transport-native-kqueue:jar:4.1.65.Final:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.11.3:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.3:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.13.3:provided
[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.13.3:provided
[INFO] +- org.slf4j:slf4j-api:jar:1.7.21:provided
[INFO] +- io.vertx:vertx-codegen:jar:4.1.1-SNAPSHOT:compile
[INFO] +- io.vertx:vertx-docgen:jar:0.9.3:compile
[INFO] +- junit:junit:jar:4.13.1:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.apache.directory.server:apacheds-protocol-dns:jar:1.5.7:test
[INFO] |  +- org.apache.directory.server:apacheds-i18n:jar:1.5.7:test
[INFO] |  +- org.apache.directory.server:apacheds-core-jndi:jar:1.5.7:test
[INFO] |  |  \- org.apache.directory.server:apacheds-core:jar:1.5.7:test
[INFO] |  |     +- org.apache.directory.server:apacheds-core-api:jar:1.5.7:test
[INFO] |  |     |  +- org.apache.directory.server:apacheds-core-entry:jar:1.5.7:test
[INFO] |  |     |  \- org.apache.directory.server:apacheds-core-constants:jar:1.5.7:test
[INFO] |  |     +- org.apache.directory.server:apacheds-utils:jar:1.5.7:test
[INFO] |  |     \- bouncycastle:bcprov-jdk15:jar:140:test
[INFO] |  +- org.apache.directory.server:apacheds-protocol-shared:jar:1.5.7:test
[INFO] |  |  \- org.apache.mina:mina-core:jar:2.0.0-RC1:test
[INFO] |  +- org.apache.directory.shared:shared-ldap:jar:0.9.19:test
[INFO] |  |  +- commons-lang:commons-lang:jar:2.4:test
[INFO] |  |  +- commons-collections:commons-collections:jar:3.2.1:test
[INFO] |  |  +- org.apache.directory.shared:shared-i18n:jar:0.9.19:test
[INFO] |  |  \- antlr:antlr:jar:2.7.7:test
[INFO] |  +- org.apache.directory.shared:shared-ldap-schema:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-ldap-schema-loader:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-ldap-schema-manager:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-cursor:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-ldap-jndi:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-asn1-codec:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-asn1:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-ldap-constants:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-ldap-converter:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-ldap-schema-dao:jar:0.9.19:test
[INFO] |  +- org.apache.directory.shared:shared-ldif:jar:0.9.19:test
[INFO] |  \- org.apache.directory.shared:shared-dsml-parser:jar:0.9.19:test
[INFO] |     +- dom4j:dom4j:jar:1.6.1:test
[INFO] |     |  \- xml-apis:xml-apis:jar:1.0.b2:test
[INFO] |     \- xpp3:xpp3:jar:1.1.4c:test
[INFO] +- org.assertj:assertj-core:jar:3.4.1:test
[INFO] +- org.slf4j:slf4j-simple:jar:1.7.21:test
[INFO] +- io.netty:netty-tcnative-boringssl-static:jar:2.0.39.Final:test
[INFO] \- org.openjdk.jmh:jmh-core:jar:1.19:test
[INFO]    +- net.sf.jopt-simple:jopt-simple:jar:4.6:test
[INFO]    \- org.apache.commons:commons-math3:jar:3.2:test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.160 s
[INFO] Finished at: 2021-06-04T11:56:15+02:00
[INFO] ------------------------------------------------------------------------

Perhaps you have another dependency in conflict?

Le ven. 4 juin 2021 à 11:34, timm...@hotmail.com <timm...@hotmail.com> a écrit :
I have just upgraded a project to latest 4.1.0, it seems vertx-core is including an old netty-codec version which does not contain the Brotli compression, I had to override the netty-codec managed dependency version and pull in netty-codec 4.1.65.Final, or else java.lang.ClassNotFoundException: io.netty.handler.codec.compression.Brotli

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/2bfd6a52-24d1-40cd-bd88-650bce842007n%40googlegroups.com.

timm...@hotmail.com

unread,
Jun 4, 2021, 8:14:22 AM6/4/21
to vert.x
Thanks for the reply

It's weird, here is a snippet from my dependency tree

[INFO] +- io.vertx:vertx-core:jar:4.1.0:compile
[INFO] |  +- io.netty:netty-common:jar:4.1.65.Final:compile
[INFO] |  +- io.netty:netty-buffer:jar:4.1.65.Final:compile
[INFO] |  +- io.netty:netty-transport:jar:4.1.65.Final:compile
[INFO] |  +- io.netty:netty-handler:jar:4.1.65.Final:compile
[INFO] |  |  \- io.netty:netty-codec:jar:4.1.51.Final:compile
[INFO] |  +- io.netty:netty-handler-proxy:jar:4.1.65.Final:compile

I'll get to the bottom of it 

io.netty:netty-handler:jar:4.1.65.Final seems to pull in io.netty:netty-codec:jar:4.1.51.Final




Reply all
Reply to author
Forward
0 new messages