ActiveCampaign/postmark-java

Java 9: Illegal reflective access warning caused by JAXB dependency

liorhar opened this issue · 8 comments

When using postmark's lib with java version greater than 8 there's a warning about illegal access caused by the jaxb dependency.
See here - javaee/jaxb-v2#1197

Upgrading from version 2.3.0 to 2.3.1 should resolve that issue.
Btw, does postmark use jaxb at all? I excluded it from my dependencies and everything seems to work fine

Hi @liorhar

could you share details which version of Java are you using? Jackson library requires those dependencies and can cause issues on newer java versions when removed.

Igor

I'm using java 13 (adopt openjdk) I believe the issue is with every version greater than 8

Hi @liorhar

I have investigated this issue and need bit more help to nail the issue. It seems to be a warning happening only for patch requests, which would be if using: "setMessageStream" method. Do you see it on any other endpoints?

hi @ibalosh I only use the method deliverMessageWithTemplate and that's where I saw the warning.

gotcha

Hi @liorhar

we have released a new version of the library (1.7) , which uses later version of Jersey client in which jaxb is optional and removed. Could you let me know if you still see the warning, and if so, could you share the exact warning here?

Thanks

yeah, it looks good now, thanks 🙏

Hey, glad it works now ok, thank you for letting us know