[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17484423#comment-17484423
 ] 

Andrei Vasilev commented on HTTPCLIENT-2201:
--------------------------------------------

{panel:title=Stack Trace}
java.lang.IllegalStateException: Exchange handler is null
        at org.apache.hc.core5.util.Asserts.notNull(Asserts.java:56)
        at 
org.apache.hc.core5.http2.impl.nio.ClientPushH2StreamHandler.updateInputCapacity(ClientPushH2StreamHandler.java:156)
        at 
org.apache.hc.core5.http2.impl.nio.AbstractH2StreamMultiplexer$H2Stream.produceInputCapacityUpdate(AbstractH2StreamMultiplexer.java:1657)
        at 
org.apache.hc.core5.http2.impl.nio.AbstractH2StreamMultiplexer.consumeDataFrame(AbstractH2StreamMultiplexer.java:1029)
        at 
org.apache.hc.core5.http2.impl.nio.AbstractH2StreamMultiplexer.consumeFrame(AbstractH2StreamMultiplexer.java:734)
        at 
org.apache.hc.core5.http2.impl.nio.AbstractH2StreamMultiplexer.onInput(AbstractH2StreamMultiplexer.java:445)
        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.client5.http.impl.async.LoggingIOSession$1.inputReady(LoggingIOSession.java:238)
        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.base/java.lang.Thread.run(Thread.java:829)
{panel}

 Full log [^app.log] 

> Exchange handler is null
> ------------------------
>
>                 Key: HTTPCLIENT-2201
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2201
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (async)
>    Affects Versions: 5.2-alpha1
>            Reporter: Andrei Vasilev
>            Priority: Major
>         Attachments: app.log
>
>
> I am running into an issue with line 156 of ClientPushH2StreamHandler. The 
> method updateInputCapacity() is being called and exchangeHandler is null, 
> resulting in an IllegalStateException.
> This logic is quite deep in the HttpClient so I have no idea what I am 
> dealing with. Any possible ideas on why this would happen? I see that the 
> exchangeHandler is initialized in consumePromise, but updateInputCapacity is 
> being called before that resulting in the field being null still.
> I can potentially provide a project to reproduce the issue, but that would 
> take some effort because this is happening deep within my own company's 
> product, and so I would have to take some time to determine what minimal 
> amount of logic is needed to actually cause the issue. 
> I was hoping maybe someone can provide some initial insight into the issue 
> before I do that. 
> https://github.com/apache/httpcomponents-core/blob/master/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/ClientPushH2StreamHandler.java



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to