<#C03N1E6HFPY|> Hey Awesome ppl. I'am trying to ru...
# help
r
#C03N1E6HFPY Hey Awesome ppl. I'am trying to run tests which are already setup but when stubbing , I get an exception : Caused by: com.github.tomakehurst.wiremock.common.JsonException: { "errors" : [ { "code" : 10, "source" : { "pointer" : "/" }, "title" : "Error parsing JSON", "detail" : "Cannot construct instance of
com.github.tomakehurst.wiremock.common.Errors
(although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (404)" } ] } here is my dependency from my pom.xml:
Copy code
<dependency>
  <groupId>org.wiremock</groupId>
  <artifactId>wiremock-standalone</artifactId>
  <scope>test</scope>
  <version>3.4.1</version>
</dependency>
Let me know if you need any other info for me to get a solution to this one. and fyi..these tests run fine on ubuntu machine of my colleague.
t
You’re running a very old version there. I suggest upgrading to 3.12.0 and try again.
r
Tried with the 3.12.0 version as well ,same issue : Caused by: java.lang.RuntimeException: Unable to start Quarkus test resource class com.hyphencare.platform.testutil.WiremockServer at io.quarkus.test.common.TestResourceManager$TestResourceEntryRunnable.run(TestResourceManager.java:548) at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: com.github.tomakehurst.wiremock.common.InvalidInputException: { "errors" : [ { "code" : 10, "source" : { "pointer" : "/" }, "title" : "Error parsing JSON", "detail" : "Error parsing response body '404 page not found\n' with status code 404 for http://localhost:8080/__admin/mappings. Error: Cannot construct instance of
com.github.tomakehurst.wiremock.common.Errors
(although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (404)" } ] } at com.github.tomakehurst.wiremock.common.ClientError.fromErrors(ClientError.java:38) ........
l
I think this might be a little tricky to diagnose without more information. Would you be able to provide a simple project that reproduces the issue so we can help figure out what is going on ?