java.lang.ClassCastException: org.apache.catalina.connector.Request$RequestAttachment cannot be cast to com.sun.grizzly.util.ThreadAttachment

Oracle Community | chris_l-3088993 | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Asynchronous Processing (request.startAsync()) + HTTPS

    Oracle Community | 7 years ago | chris_l-3088993
    java.lang.ClassCastException: org.apache.catalina.connector.Request$RequestAttachment cannot be cast to com.sun.grizzly.util.ThreadAttachment

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.apache.catalina.connector.Request$RequestAttachment cannot be cast to com.sun.grizzly.util.ThreadAttachment

      at com.sun.grizzly.filter.SSLReadFilter.saveSecuredBufferRemainders()
    2. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.filter.SSLReadFilter.saveSecuredBufferRemainders(SSLReadFilter.java:608)
      2. com.sun.grizzly.filter.SSLReadFilter.postExecute(SSLReadFilter.java:214)
      3. com.sun.grizzly.DefaultProtocolChain.postExecuteProtocolFilter(DefaultProtocolChain.java:164)
      4. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
      5. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
      6. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
      7. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
      8. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
      9. com.sun.grizzly.ContextTask.run(ContextTask.java:69)
      10. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
      11. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
      11 frames
    3. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:637)
      1 frame