Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchMethodError when using Soda2Consumer.newConsumer method #57

Open
nandini92 opened this issue Sep 8, 2023 · 0 comments

Comments

@nandini92
Copy link

I'm trying out the example code provided in the Readme and unfortunately I'm receiving the following error during compilation:

Exception in thread "main" java.lang.NoSuchMethodError: 'org.glassfish.jersey.client.JerseyClientBuilder org.glassfish.jersey.client.JerseyClientBuilder.withConfig(javax.ws.rs.core.Configuration)'
        at com.socrata.api.HttpLowLevel.createClient(HttpLowLevel.java:160)
        at com.socrata.api.HttpLowLevel.createClient(HttpLowLevel.java:125)
        at com.socrata.api.HttpLowLevel.instantiate(HttpLowLevel.java:171)
        at com.socrata.api.Soda2Consumer.newConsumer(Soda2Consumer.java:30)
        ...

I can see that ClientConfig within JerseyClientBuilder uses jakarta.ws.rs.core.Configurationand and not javax.ws.rs.core.Configuration (although I do see javax.ws.rs.core.Configuration within my dependencies as well). I am unable to determine what is causing this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant