NoSuchMethodError: org.glassfish.jersey.internal.LocalizationMessages.WARNING_PROPERTIES()Ljava/lang/String

I'm getting this error below, I've tried excluding Jersey from every dependency and have the versions synced, but still getting the error. I've isolated every jersey I can think of. Could FasterXML be the culprit somehow?

Any pointer is appreciated!

2023-08-11 01:28:58,514 ERROR Executor task launch worker for task 49576$ - Failed to extract merchant profile for merchantAccountNumber: 123123123123123
java.lang.NoSuchMethodError: org.glassfish.jersey.internal.LocalizationMessages.WARNING_PROPERTIES()Ljava/lang/String;
    at org.glassfish.jersey.internal.config.SystemPropertiesConfigurationModel.getProperties(
    at org.glassfish.jersey.internal.config.SystemPropertiesConfigurationProvider.getProperties(
    at org.glassfish.jersey.internal.config.ExternalPropertiesConfigurationFactory.readExternalPropertiesMap(

Complete stack trace:

Here's the dependency tree:

handler pom.xml:

runner pom.xml:


  • Yes FasterXLM could conflict with Jersey, fasterxml-jackson and jersey-server, upgrade your jersey-server to v3 which will remove localization-messages dependency cause

    jersey-server depends: jaxrs-api which that depends on localization-message while fasterxml-jackson depends on jackson-databind which also depends on localization-messages

    you can either do that or use jackson instead

    Edit: excluding localization-messages which is dependency of jaxrs-api so not good, instead upgrade jaxrs-api to v3


    if these didn't worked, include "LocalizationMessages" to your import statement and use getMessage to get message from file

    well after a bit of searching i see that WARNING_PROPERTIES() has been removed from LocalizationMessages's new version and that's why you get NoSuchMethodError, let me know if that fixes the issue.