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

NoSuchMethodError - when trying to test the java wrapper

Open Ben-21 opened this issue 1 year ago • 3 comments

What

I am getting the following: java.lang.NoSuchMethodError: 'void ch.qos.logback.classic.LoggerContext.setMDCAdapter(org.slf4j.spi.MDCAdapter)' when trying to run a test of the wrapper. I am running a spring boot app, which you can find here: my-app

I am new to this stuff, so maybe I am completely missing something here... Are you still developing the wrapper (because the last commits to source code files is quite a time ago)?

Steps to reproduce the behavior:

  1. checkout branch "try_api_access"
  2. Go to 'GetAllImageInfosTest'
  3. Click on run the test
  4. See error: java.lang.NoSuchMethodError: 'void ch.qos.logback.classic.LoggerContext.setMDCAdapter(org.slf4j.spi.MDCAdapter)'

Screenshots

image

Ben-21 avatar Sep 30 '23 08:09 Ben-21

We would need help maintening the Wrapper, indeed @Ben-21 :-)

teolemon avatar Sep 30 '23 09:09 teolemon

We would need help maintening the Wrapper, indeed @Ben-21 :-)

Ah, ok I see 🙂 When I am more experienced, I will come back to you 😉. For the moment I will switch to using webclient instead.

Ben-21 avatar Sep 30 '23 10:09 Ben-21

@teolemon, I would like to contribute. @Ben-21, branch you mentioned is not present in repo link shared.

sriganth3 avatar Jan 05 '24 04:01 sriganth3