java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

There is a dependency in your app that uses <3.0 version jetty. Remove that lib or exclude jetty from its transitive dependencies.

Solutions on the web

via Apache's JIRA Issue Tracker by Genmao Yu, 8 months ago
javax.servlet.http.HttpServletResponse.getStatus()I
via Stack Overflow by Neil
, 1 year ago
javax.servlet.http.HttpServletResponse.getStatus()I
java.lang.NoSuchMethodError: javax.servlet.http.HttpServletResponse.getStatus()I
at org.spark_project.jetty.server.handler.ErrorHandler.handle(ErrorHandler.java:112)
at org.spark_project.jetty.server.Response.sendError(Response.java:597)
at org.spark_project.jetty.server.HttpChannel.handleException(HttpChannel.java:487)
at org.spark_project.jetty.server.HttpConnection$HttpChannelOverHttp.handleException(HttpConnection.java:594)
at org.spark_project.jetty.server.HttpChannel.handle(HttpChannel.java:387)
at org.spark_project.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.spark_project.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
at org.spark_project.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.spark_project.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

11 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.