mirromutth / r2dbc-mysql

R2DBC MySQL Implementation
Apache License 2.0
656 stars 98 forks source link

NoSuchMethodError: io.netty.channel.SingleThreadEventLoop.<init> #107

Closed NovaFox161 closed 4 years ago

NovaFox161 commented 4 years ago

Trying to include r2dbc-mysql and r2dbc-pools into my project to make my database calls reactive (since I was using the raw jdbc driver before). Getting this error when attempting to make a call to the database. https://hastebin.com/erobofinis.pl

Using 0.8.1.RELEASE for both r2dbc-mysql and r2dbc-pools

I've verified the compiled jar has the correct netty version (4.1.44) as brought in by r2dbc-mysql and have made sure there's no transitive versions being brought in.

Using java 8 with the latest mysql version at the time of writing.

Not sure what else to do other than open up an issue here as I can't track down if this is a widespread issue or something I'm doing wrong (since the stack trace doesn't seem to be caused by my code directly)

Much help appreciated. Thank you

NovaFox161 commented 4 years ago

This issue can be closed, was related to maven pulling in netty 4.1.48 somehow. Forcing netty version 4.1.44 by including netty directly in the pom fixed the issue.