postmark-java icon indicating copy to clipboard operation
postmark-java copied to clipboard

Client is not compatible with Jackson 2.20+

Open lbenedetto opened this issue 4 months ago • 4 comments

Describe the bug https://github.com/ActiveCampaign/postmark-java/blob/f8a36202fb8fedc5be779bfa9326743088605e81/src/main/java/com/postmarkapp/postmark/client/data/parser/DataHandler.java#L20

java.lang.NoSuchFieldError: Class com.fasterxml.jackson.databind.PropertyNamingStrategy does not have member field 'com.fasterxml.jackson.databind.PropertyNamingStrategy UPPER_CAMEL_CASE'
	at com.postmarkapp.postmark.client.data.parser.DataHandler.<init>(DataHandler.java:20)
	at com.postmarkapp.postmark.client.data.parser.DataHandler.<init>(DataHandler.java:25)
	at com.postmarkapp.postmark.client.HttpClientHandler.<init>(HttpClientHandler.java:20)
	at com.postmarkapp.postmark.client.BaseApiClient.<init>(BaseApiClient.java:18)
	at com.postmarkapp.postmark.client.ApiClient.<init>(ApiClient.java:55)
	at com.postmarkapp.postmark.Postmark.getApiClient(Postmark.java:62)

PropertyNamingStrategy is deprecated and replaced with PropertyNamingStrategies

There are many other dependencies in this library which are several years out of date, including some with security issues. This project unfortunately seems abandoned.

lbenedetto avatar Sep 02 '25 16:09 lbenedetto

running into the same issue

elijulian avatar Sep 03 '25 09:09 elijulian

added a PR: https://github.com/ActiveCampaign/postmark-java/pull/73/files

elijulian avatar Sep 03 '25 11:09 elijulian

response that i got from postmark customer support on this

Image

elijulian avatar Oct 01 '25 07:10 elijulian

Such answer is a shame. While it's not a bug, not maintaining a library can open vulnerabilities ; that would have severe impacts too. Thank you for trying, offering the immediate solution through a PR.

jlannoy avatar Oct 31 '25 15:10 jlannoy