openfoodfacts-java
openfoodfacts-java copied to clipboard
NoSuchMethodError - when trying to test the java wrapper
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:
- checkout branch "try_api_access"
- Go to 'GetAllImageInfosTest'
- Click on run the test
- See error: java.lang.NoSuchMethodError: 'void ch.qos.logback.classic.LoggerContext.setMDCAdapter(org.slf4j.spi.MDCAdapter)'
Screenshots
We would need help maintening the Wrapper, indeed @Ben-21 :-)
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.
@teolemon, I would like to contribute. @Ben-21, branch you mentioned is not present in repo link shared.