This message was deleted.
# general
s
This message was deleted.
d
I would guess this is more related to the jackson version referenced in spring than to wiremock - but it's just a guess. Maybe it helps to add a Noargs constructor - or use a builder:
Copy code
@Jacksonized
@Builder
@NoArgsConstructor
d
I tried to with loading current version 2.15.2 of jackson-databind, -datatype-jsr310, -datatype-jdk8 and with each combination if the suggested annotations, unfortunately with no effect.
d
can you create a minimal setup to reproduce it and push it to github?
d
The console output:
Copy code
2023-07-28T10:39:39.871+02:00  INFO 35314 --- [           main] org.eclipse.jetty.server.Server          : Stopped Server@64dfb31d{STOPPING}[11.0.13,sto=0]
2023-07-28T10:39:39.877+02:00  INFO 35314 --- [           main] o.e.jetty.server.AbstractConnector       : Stopped ServerConnector@5cf0673d{HTTP/1.1, (http/1.1)}{0.0.0.0:0}
2023-07-28T10:39:39.881+02:00  INFO 35314 --- [           main] o.e.j.s.h.ContextHandler.application     : Destroying Spring FrameworkServlet 'dispatcherServlet'
2023-07-28T10:39:39.882+02:00  INFO 35314 --- [           main] o.e.jetty.server.handler.ContextHandler  : Stopped o.s.b.w.e.j.JettyEmbeddedWebAppContext@769b0752{application,/,[file:///private/var/folders/n8/k_rcy5wj6jzfrtdlqprdd0th0000gn/T/jetty-docbase.0.6202064899982443399/],STOPPED}
[ERROR] Tests run: 9, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 7.558 s <<< FAILURE! - in com.xxx.malcolm.MalcolmIT
[ERROR] responseIsProxiedWhenRequestFailed  Time elapsed: 0.288 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
expected: 400 BAD_REQUEST
 but was: 500 INTERNAL_SERVER_ERROR
	at com.xxx.malcolm.MalcolmIT.responseIsProxiedWhenRequestFailed(MalcolmIT.java:295)
[ERROR] withNoConfiguredUsernameAndPassword  Time elapsed: 0.014 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
expected: 401 UNAUTHORIZED
 but was: 500 INTERNAL_SERVER_ERROR
	at com.xxx.malcolm.MalcolmIT.withNoConfiguredUsernameAndPassword(MalcolmIT.java:100)
[ERROR] withInvalidUsernameAndPassword  Time elapsed: 0.013 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
expected: 401 UNAUTHORIZED
 but was: 500 INTERNAL_SERVER_ERROR
	at com.xxx.malcolm.MalcolmIT.withInvalidUsernameAndPassword(MalcolmIT.java:119)
[ERROR] authenticationSuccessful  Time elapsed: 0.013 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
expected: 200 OK
 but was: 500 INTERNAL_SERVER_ERROR
	at com.xxx.malcolm.MalcolmIT.authenticationSuccessful(MalcolmIT.java:181)
[ERROR] responseIsProxiedWhenRequestIsSuccessful  Time elapsed: 0.013 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: 
expected: 200 OK
 but was: 500 INTERNAL_SERVER_ERROR
	at com.xxx.malcolm.MalcolmIT.responseIsProxiedWhenRequestIsSuccessful(MalcolmIT.java:263)
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   MalcolmIT.authenticationSuccessful:181 
expected: 200 OK
 but was: 500 INTERNAL_SERVER_ERROR
[ERROR]   MalcolmIT.responseIsProxiedWhenRequestFailed:295 
expected: 400 BAD_REQUEST
 but was: 500 INTERNAL_SERVER_ERROR
[ERROR]   MalcolmIT.responseIsProxiedWhenRequestIsSuccessful:263 
expected: 200 OK
 but was: 500 INTERNAL_SERVER_ERROR
[ERROR]   MalcolmIT.withInvalidUsernameAndPassword:119 
expected: 401 UNAUTHORIZED
 but was: 500 INTERNAL_SERVER_ERROR
[ERROR]   MalcolmIT.withNoConfiguredUsernameAndPassword:100 
expected: 401 UNAUTHORIZED
 but was: 500 INTERNAL_SERVER_ERROR
[INFO] 
[ERROR] Tests run: 9, Failures: 5, Errors: 0, Skipped: 0
[INFO]
649 Views