[ https://issues.apache.org/jira/browse/HTTPCORE-708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499181#comment-17499181 ]
Oleg Kalnichevski commented on HTTPCORE-708: -------------------------------------------- [~lhusivarga] I have a preliminary fix for the issue but I am not entirely happy with it. I may come up with a different one but do feel free to take a look at the present version. Oleg > AbstractH2StreamMultiplexer: FrameInputBuffer: > java.nio.BufferOverflowException > ------------------------------------------------------------------------------- > > Key: HTTPCORE-708 > URL: https://issues.apache.org/jira/browse/HTTPCORE-708 > Project: HttpComponents HttpCore > Issue Type: Bug > Components: HttpCore NIO > Affects Versions: 5.2-alpha1 > Reporter: Lubos Husivarga > Priority: Major > Fix For: 5.1.4, 5.2-alpha3 > > Attachments: BufferOverflowException.txt > > > I am experiencing BufferOverflowException when GETting file from URL. The > issue can be easily reproduced using [AsyncClientHttpExchange > example|https://github.com/apache/httpcomponents-client/blob/master/httpclient5/src/test/java/org/apache/hc/client5/http/examples/AsyncClientHttpExchange.java] > and this image URL: > [https://burst.shopifycdn.com/photos/centered-car-driving-through-forest.jpg?width=1442&format=pjpg&exif=0&iptc=0] > > stacktrace: > Caused by: java.nio.BufferOverflowException > at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:213) > at > org.apache.hc.core5.http2.impl.nio.FrameInputBuffer.put(FrameInputBuffer.java:89) > at > org.apache.hc.core5.http2.impl.nio.AbstractH2StreamMultiplexer.onInput(AbstractH2StreamMultiplexer.java:437) > at > org.apache.hc.core5.http2.impl.nio.AbstractH2IOEventHandler.inputReady(AbstractH2IOEventHandler.java:65) > at > org.apache.hc.core5.http2.impl.nio.ClientH2IOEventHandler.inputReady(ClientH2IOEventHandler.java:39) > at > org.apache.hc.core5.reactor.ssl.SSLIOSession.decryptData(SSLIOSession.java:594) > at > org.apache.hc.core5.reactor.ssl.SSLIOSession.access$200(SSLIOSession.java:73) > at > org.apache.hc.core5.reactor.ssl.SSLIOSession$1.inputReady(SSLIOSession.java:201) > at > org.apache.hc.core5.reactor.InternalDataChannel.onIOEvent(InternalDataChannel.java:140) > at > org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(InternalChannel.java:51) > at > org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(SingleCoreIOReactor.java:178) > at > org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:127) > at > org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:85) > at > org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44) > at java.lang.Thread.run(Thread.java:748) > > Debug Log using categories: [^BufferOverflowException.txt] > log4j.category.org.apache.hc.client5.http2=debug > log4j.category.org.apache.hc.client5.http2.frame=debug > log4j.category.org.apache.hc.client5.http2.frame.payload=debug > > Thank you for any idea! -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org