eclipse-ee4j / grizzly

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

Grizzly 2.3.36-MULE-023 - HeapBuffer throwing IndexOutOfBoundsException #2152

Closed seeker25 closed 2 years ago

seeker25 commented 2 years ago

Grizzly is being used for Mule.

Seem to be getting this exception, intermittently:

Root Exception stack trace: java.lang.IndexOutOfBoundsException at org.glassfish.grizzly.memory.HeapBuffer.get(HeapBuffer.java:357) at org.glassfish.grizzly.http.HttpCodecFilter.decodeHttpPacketFromBytes(HttpCodecFilter.java:818) at org.glassfish.grizzly.http.HttpCodecFilter.decodeHttpPacket(HttpCodecFilter.java:770) at org.glassfish.grizzly.http.HttpCodecFilter.handleRead(HttpCodecFilter.java:593) at org.glassfish.grizzly.http.HttpClientFilter.handleRead(HttpClientFilter.java:182) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:540) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) at java.lang.Thread.run(Thread.java:748)

Any suggestions? I couldn't find much by googling.

Thank you.

seeker25 commented 2 years ago

Related to a Mule build, upgraded from 2.3.36-MULE-023 to 2.3.36-MULE-024, seemed to fix this problem that would occur on PUTS and POSTS when they use 100-continue.