Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-30624

[GSS](8.1.z) XNIO-444 - HttpUpgrade throws IllegalArgumentException "The buffer is this buffer"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 8.0 Update 8
    • Remoting
    • False
    • Hide

      None

      Show
      None
    • False
    • Known Issue

      It happens when push back is needed, as the push back is the same buffer it needs to read data to:

      2025-07-03 13:28:52,202 ERROR [org.xnio.listener] (XNIO-1 I/O-1) XNIO001007: A channel event listener threw an exception: java.lang.IllegalArgumentException: The source buffer is this buffer
              at java.base/java.nio.Buffer.createSameBufferException(Buffer.java:265)
              at java.base/java.nio.ByteBuffer.put(ByteBuffer.java:995)
              at java.base/java.nio.HeapByteBuffer.put(HeapByteBuffer.java:243)
              at org.jboss.xnio@3.8.16.Final-redhat-00001//org.xnio.Buffers.copy(Buffers.java:236)
              at org.jboss.xnio@3.8.16.Final-redhat-00001//org.xnio.conduits.PushBackStreamSourceConduit$BufferConduit.read(PushBackStreamSourceConduit.java:141)
              at org.jboss.xnio@3.8.16.Final-redhat-00001//org.xnio.conduits.PushBackStreamSourceConduit.read(PushBackStreamSourceConduit.java:52)
              at org.jboss.xnio@3.8.16.Final-redhat-00001//org.xnio.conduits.ConduitStreamSourceChannel.read(ConduitStreamSourceChannel.java:127)
              at org.jboss.xnio@3.8.16.Final-redhat-00001//org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:410)
              at org.jboss.xnio@3.8.16.Final-redhat-00001//org.xnio.http.HttpUpgrade$HttpUpgradeState$UpgradeResultListener.handleEvent(HttpUpgrade.java:400)
              at org.jboss.xnio@3.8.16.Final-redhat-00001//org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
              at org.jboss.xnio@3.8.16.Final-redhat-00001//org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
              at org.jboss.xnio.nio@3.8.16.Final-redhat-00001//org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:89)
              at org.jboss.xnio.nio@3.8.16.Final-redhat-00001//org.xnio.nio.NioHandle$1.run(NioHandle.java:50)
              at org.jboss.xnio.nio@3.8.16.Final-redhat-00001//org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:624)
              at org.jboss.xnio.nio@3.8.16.Final-redhat-00001//org.xnio.nio.WorkerThread.run(WorkerThread.java:491)
      
      

              flaviarnn Flavia Rainone
              rhn-support-jbaesner Joerg Baesner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: