Giuseppe La Scaleia created HTTPCLIENT-2056:
-----------------------------------------------
Summary: Bug with httpclient5
Key: HTTPCLIENT-2056
URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2056
Project: HttpComponents HttpClient
Issue Type: Bug
Reporter: Giuseppe La Scaleia
After upgrading my project to use httpclient 5 i have the following error :
java.lang.IllegalStateException: Current state = RESET, new state = FLUSHED
at
java.base/java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:991)
at java.base/java.nio.charset.CharsetEncoder.flush(CharsetEncoder.java:674)
at
org.apache.hc.client5.http.utils.ByteArrayBuilder.encode(ByteArrayBuilder.java:83)
at
org.apache.hc.client5.http.utils.ByteArrayBuilder.doAppend(ByteArrayBuilder.java:107)
at
org.apache.hc.client5.http.utils.ByteArrayBuilder.append(ByteArrayBuilder.java:149)
at
org.apache.hc.client5.http.utils.ByteArrayBuilder.append(ByteArrayBuilder.java:175)
at
org.apache.hc.client5.http.impl.auth.BasicScheme.generateAuthResponse(BasicScheme.java:171)
at
org.apache.hc.client5.http.impl.auth.HttpAuthenticator.addAuthResponse(HttpAuthenticator.java:345)
at
org.apache.hc.client5.http.impl.classic.ProtocolExec.execute(ProtocolExec.java:156)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)
at
org.apache.hc.client5.http.impl.classic.HttpRequestRetryExec.execute(HttpRequestRetryExec.java:93)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)
at
org.apache.hc.client5.http.impl.classic.RedirectExec.execute(RedirectExec.java:116)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement$1.proceed(ExecChainElement.java:57)
at
org.apache.hc.client5.http.impl.classic.ContentCompressionExec.execute(ContentCompressionExec.java:128)
at
org.apache.hc.client5.http.impl.classic.ExecChainElement.execute(ExecChainElement.java:51)
at
org.apache.hc.client5.http.impl.classic.InternalHttpClient.doExecute(InternalHttpClient.java:178)
at
org.apache.hc.client5.http.impl.classic.CloseableHttpClient.execute(CloseableHttpClient.java:67)
I think it depends for multithreading use with ByteArrayBuilder.
Regards
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]