Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-708

AbstractH2StreamMultiplexer: FrameInputBuffer: java.nio.BufferOverflowException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.2-alpha1
    • 5.1.4, 5.2-beta1
    • HttpCore NIO
    • None

    Description

      I am experiencing BufferOverflowException when GETting file from URL. The issue can be easily reproduced using AsyncClientHttpExchange example 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!

      Attachments

        1. BufferOverflowException.txt
          79 kB
          Lubos Husivarga

        Activity

          People

            Unassigned Unassigned
            lhusivarga Lubos Husivarga
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: