[
https://issues.apache.org/jira/browse/HTTPCLIENT-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17489819#comment-17489819
]
Oleg Kalnichevski commented on HTTPCLIENT-2201:
-----------------------------------------------
[~avasilev] I think I have fixed the immediate problem with the
IllegalStateException that causes the connection termination [1]. Please give
it a try. Could you please find out though why pushHandlerFactory throws a
ProtocolException in the first place?
Oleg
[1]
https://github.com/apache/httpcomponents-core/commit/87a3f867491a63a619c0394109e9b746d3615d34
[2]
https://github.com/apache/httpcomponents-core/blob/87a3f867491a63a619c0394109e9b746d3615d34/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/ClientPushH2StreamHandler.java#L109
> 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-h2.log, 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]