eclipse-ee4j / grizzly

Grizzly
https://eclipse-ee4j.github.io/grizzly
Other
148 stars 69 forks source link

ClassCastException: Response cannot be cast to Buffer #2120

Closed amberream closed 1 year ago

amberream commented 3 years ago

Ran into this today calling Response.resume. I was making repeated requests, not sure if that had anything to do with it...

java.lang.ClassCastException: org.glassfish.grizzly.http.server.Response cannot be cast to org.glassfish.grizzly.Buffer
    at org.glassfish.grizzly.nio.transport.TCPNIOTransportFilter.handleRead(TCPNIOTransportFilter.java:71)
    at org.glassfish.grizzly.filterchain.TransportFilter.handleRead(TransportFilter.java:173)
    at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
    at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
    at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
    at org.glassfish.grizzly.filterchain.FilterChainContext$1.run(FilterChainContext.java:202)
    at org.glassfish.grizzly.filterchain.FilterChainContext.resume(FilterChainContext.java:226)
    at org.glassfish.grizzly.http.server.Response.resume(Response.java:1927)