Hi, I have a problem. I'm getting constant excepti...
# ktor
w
Hi, I have a problem. I'm getting constant exceptions in my application hosted with netty. The application I'm running is a plugin inside another software that also uses Netty. However, they use version 4.1.6.Final and Ktor uses a much newer version. This does not seem to work as Netty constantly throws exceptions that it can't find certain classes etc. Is there a fix for this? I already tried excluding Netty from the Ktor maven dependency, but that does not seem to work.
d
do you have a small project reproducing the issue? that would help
w
Well, I'm using Nukkit software (https://github.com/NukkitX/Nukkit/blob/master/pom.xml#L110) and I was using Ktor 0.9.3. 0.9.0 worked fine. I do not have any FOSS project that I could share right now.
o
Unfortunately Netty doesn’t maintain binary compatibility good enough… I don’t think we can do a lot here…
We have 4.1.24 and you have 4.1.6, which means they should be fully binary compatible, but they are not
w
Yep, so not a lot I can do about it, I guess?
o
You can try building ktor with that Netty version (see https://github.com/ktorio/ktor/blob/master/gradle.properties#L7), but we cannot guarantee it will work correctly.
I tried, no chance. It won’t even compile.