sendgrid / sendgrid-java

The Official Twilio SendGrid Led, Community Driven Java API Library
https://sendgrid.com
MIT License
483 stars 408 forks source link

NoSuchMethodError in sendgrid-java-4.10.2 #757

Open nickhais opened 2 months ago

nickhais commented 2 months ago

Hello SendGrid!

Issue Summary:

After upgrading to the newest version of sendgrid-java-4.10.2, I've started seeing these errors in my logs. My code fails when I try to execute mail.build(). Could you please check if the issue is on your side?

Errors found:

java.lang.NoSuchMethodError: 'void com.fasterxml.jackson.core.util.BufferRecycler.releaseToPool()' at com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString(ObjectMapper.java:4047) ~[jackson-databind-2.17.1.jar!/:2.17.1] at com.sendgrid.helpers.mail.Mail.build(Mail.java:517) ~[sendgrid-java-4.10.2.jar!/:na]

My environment: Java 17 and Spring Boot 3.2