hi all, I am developing a web API using pedestal and jetty and suddenly I get the following exception (with stacktrace) when trying to access my service, anyone has any idea what I’ve done wrong or what this means?
WARN org.eclipse.jetty.server.HttpChannel - /foo
java.lang.IncompatibleClassChangeError: Found interface org.eclipse.jetty.http.pathmap.PathSpec, but class was expected
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:455)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:505)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:370)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:267)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
at java.base/java.lang.Thread.run(Thread.java:832)
sorry, I get this exceptioin while trying to access any endpoint on my server, regardless if that endpoint has en existing route or not
I have another project with a similar setup that works ok, from the logs I can see that it loads jetty-9.4.18.v20190429
while the project that does not work loads jetty-9.4.35.v20201120
for some reason, I have no explicit dep i my deps.edn
ok, so I also have a dep to stylefruits/gniazdo {:mvn/version "1.2.0"}
which in turn uses the later version of jetty (sorry to spam)