-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the issue
When I'm trying to start the mockserver with version 5.13.1 or 5.13.2, it results in a NoSuchMethodError, which does NOT appear with 5.13.0:
Exception in thread "main" java.lang.NoSuchMethodError: org.mockserver.mock.action.http.HttpActionHandler.<init>(Lorg/mockserver/configuration/Configuration;Lio/netty/channel/EventLoopGroup;Lorg/mockserver/mock/HttpState;Ljava/util/List;Lorg/mockserver/socket/tls/NettySslContextFactory;)V
at org.mockserver.netty.MockServer.createServerBootstrap(MockServer.java:189)
at org.mockserver.netty.MockServer.<init>(MockServer.java:78)
at org.mockserver.netty.MockServer.<init>(MockServer.java:57)
at org.mockserver.integration.ClientAndServer.<init>(ClientAndServer.java:58)
at org.mockserver.integration.ClientAndServer.<init>(ClientAndServer.java:52)
at MockServer.start(MockServer.java:10)
at MockServer.main(MockServer.java:6)
What you are trying to do
When running a main method that does ClientAndServer client = new ClientAndServer(1080);, it results in the aforementioned error.
A similar error appears when trying to start junit tests when using the MockServerExtension, I assume it's the same kind of issue, but wanted to mention it anyways in case it's a different issue.
MockServer version
5.13.1 and 5.13.2
To Reproduce
Steps to reproduce the issue:
- Clone the minimal reproducible example here: https://github.com/martinfrancois/mockserver-5_13_1-repro
- Run the main method in
src/main/java/MockServer.java - Aforementioned error appears
- Run the unit tests in
src/test/java/MockServerTest.java - Similar
NoSuchMethodErrorappears
Expected behaviour
The mockserver to start normally, as when the mockserver version is 5.13.0, with an output like this:
2022-04-08 16:04:44 5.13.0 INFO 1080 started on port: 1080
MockServer Log
No log output by MockServer, apart from the error.