org.eclipse.jetty.servlet.ServletHolder$1: java.lang.ClassCastException: org.eclipse.jetty.util.DecoratedObjectFactory cannot be cast to org.eclipse.jetty.util.DecoratedObjectFactory

Stack Overflow | wsj | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Jetty9 websocket, start the service is normal, access error?

    Stack Overflow | 8 months ago | wsj
    org.eclipse.jetty.servlet.ServletHolder$1: java.lang.ClassCastException: org.eclipse.jetty.util.DecoratedObjectFactory cannot be cast to org.eclipse.jetty.util.DecoratedObjectFactory

    Root Cause Analysis

    1. org.eclipse.jetty.servlet.ServletHolder$1

      java.lang.ClassCastException: org.eclipse.jetty.util.DecoratedObjectFactory cannot be cast to org.eclipse.jetty.util.DecoratedObjectFactory

      at org.eclipse.jetty.servlet.ServletHolder.makeUnavailable()
    2. Jetty
      SelectChannelEndPoint$2.run
      1. org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:580)
      2. org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:637)
      3. org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:482)
      4. org.eclipse.jetty.servlet.ServletHolder.ensureInstance(ServletHolder.java:774)
      5. org.eclipse.jetty.servlet.ServletHolder.prepare(ServletHolder.java:759)
      6. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:578)
      7. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      8. org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
      9. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
      10. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158)
      11. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
      12. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      13. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090)
      14. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      15. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
      16. org.eclipse.jetty.server.Server.handle(Server.java:517)
      17. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308)
      18. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242)
      19. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261)
      20. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      21. org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
      21 frames
    3. org.eclipse.jetty
      ExecuteProduceConsume.run
      1. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
      2. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
      2 frames
    4. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
      2 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame