Azure Java EventHubTrigger using r2dbc-mssql gives netty errors

Nalla 1 Reputation point
2020-08-07T19:21:42.927+00:00

I am trying to persist the messages received b y a Java EventHubTrigger to Azure SQL Database using r2dbc-mssql driver.

When the function gets triggered I get the following error:

Caused by: java.lang.NoSuchMethodError: io.netty.handler.ssl.SslContextBuilder.trustManager(Ljavax/net/ssl/TrustManager;)Lio/netty/handler/ssl/SslContextBuilder; 

My dependencies are:

<dependency>
    <groupId>io.r2dbc</groupId>
    <artifactId>r2dbc-mssql</artifactId>
    <version>0.8.4.RELEASE</version>
</dependency>
<dependency>
    <groupId>io.projectreactor</groupId>
    <artifactId>reactor-core</artifactId>
    <version>3.3.8.RELEASE</version>
/dependency>

I also tried manually including the r2dbc-mssql-1.0.0.M7.jar in my function project but I still get the netty error. I tried both java.version=1.8 and 11 in the pom.xml. Both give the same netty error.

Please suggest a fix. Thanks.

Azure SQL Database
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,205 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
555 questions
{count} votes