On Thu, Oct 11, 2018 at 8:25 AM Gary Gregory <[email protected]> wrote:

> The tests break for me with Oracle Java 11 on Windows 10:
>
> [INFO] Running org.apache.hc.core5.testing.nio.Http1IntegrationTest
> [ERROR] Tests run: 58, Failures: 0, Errors: 3, Skipped: 0, Time elapsed:
> 103.741 s <<< FAILURE! - in
> org.apache.hc.core5.testing.nio.Http1IntegrationTest
> [ERROR]
> testSimpleGet[https](org.apache.hc.core5.testing.nio.Http1IntegrationTest)
> Time elapsed: 35.053 s  <<< ERROR!
> java.util.concurrent.TimeoutException
>         at
> org.apache.hc.core5.testing.nio.Http1IntegrationTest.testSimpleGet(Http1IntegrationTest.java:215)
>
> [ERROR]
> testHeadPipelined[https](org.apache.hc.core5.testing.nio.Http1IntegrationTest)
> Time elapsed: 35.038 s  <<< ERROR!
> java.util.concurrent.TimeoutException
>         at
> org.apache.hc.core5.testing.nio.Http1IntegrationTest.testHeadPipelined(Http1IntegrationTest.java:683)
>
> [ERROR]
> testSimpleGetIdentityTransfer[https](org.apache.hc.core5.testing.nio.Http1IntegrationTest)
> Time elapsed: 6.067 s  <<< ERROR!
> java.util.concurrent.ExecutionException: java.io.IOException: An existing
> connection was forcibly closed by the remote host
>         at
> org.apache.hc.core5.testing.nio.Http1IntegrationTest.testSimpleGetIdentityTransfer(Http1IntegrationTest.java:245)
> Caused by: java.io.IOException: An existing connection was forcibly closed
> by the remote host
>
> [INFO] Running org.apache.hc.core5.testing.nio.Http1ServerAndRequesterTest
> [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.3
> s - in org.apache.hc.core5.testing.nio.Http1ServerAndRequesterTest
> [INFO] Running org.apache.hc.core5.testing.nio.Http2AlpnTest
> [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.169 s - in org.apache.hc.core5.testing.nio.Http2AlpnTest
> [INFO] Running org.apache.hc.core5.testing.nio.Http2IntegrationTest
> [ERROR] Tests run: 32, Failures: 0, Errors: 2, Skipped: 0, Time elapsed:
> 148.87 s <<< FAILURE! - in
> org.apache.hc.core5.testing.nio.Http2IntegrationTest
> [ERROR]
> testSimpleGet[https](org.apache.hc.core5.testing.nio.Http2IntegrationTest)
> Time elapsed: 35.039 s  <<< ERROR!
> java.util.concurrent.TimeoutException
>         at
> org.apache.hc.core5.testing.nio.Http2IntegrationTest.testSimpleGet(Http2IntegrationTest.java:211)
>
> [ERROR]
> testExcessOfConcurrentStreams[https](org.apache.hc.core5.testing.nio.Http2IntegrationTest)
> Time elapsed: 35.1 s  <<< ERROR!
> java.util.concurrent.TimeoutException
>         at
> org.apache.hc.core5.testing.nio.Http2IntegrationTest.testExcessOfConcurrentStreams(Http2IntegrationTest.java:757)
>

FWIW, I do not think throwing TimeoutException without a message is as
helpful as it could be. I'll see about giving the TimeoutException a
message like the actual timeout.

Gary

>
> [INFO] Running org.apache.hc.core5.testing.nio.Http2ProtocolNegotiationTest
> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 5.078 s - in org.apache.hc.core5.testing.nio.Http2ProtocolNegotiationTest
> [INFO] Running
> org.apache.hc.core5.testing.nio.Http2ServerAndMultiplexingRequesterTest
> [INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 9.186 s - in
> org.apache.hc.core5.testing.nio.Http2ServerAndMultiplexingRequesterTest
> [INFO] Running org.apache.hc.core5.testing.nio.Http2ServerAndRequesterTest
> [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.721 s - in org.apache.hc.core5.testing.nio.Http2ServerAndRequesterTest
> [INFO] Running
> org.apache.hc.core5.testing.nio.TestDefaultListeningIOReactor
> [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.045 s - in org.apache.hc.core5.testing.nio.TestDefaultListeningIOReactor
> [INFO] Running org.apache.hc.core5.testing.reactive.ReactiveClientTest
> [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 3.021 s - in org.apache.hc.core5.testing.reactive.ReactiveClientTest
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR]   Http1IntegrationTest.testHeadPipelined:683 » Timeout
> [ERROR]   Http1IntegrationTest.testSimpleGetIdentityTransfer:245 »
> Execution java.io.IOE...
> [ERROR]   Http1IntegrationTest.testSimpleGet:215 » Timeout
> [ERROR]   Http2IntegrationTest.testExcessOfConcurrentStreams:757 » Timeout
> [ERROR]   Http2IntegrationTest.testSimpleGet:211 » Timeout
> [INFO]
> [ERROR] Tests run: 213, Failures: 0, Errors: 5, Skipped: 0
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache HttpComponents Core Parent 5.0-beta4-SNAPSHOT SUCCESS [
> 12.381 s]
> [INFO] Apache HttpComponents Core HTTP/1.1 ................ SUCCESS [01:39
> min]
> [INFO] Apache HttpComponents Core HTTP/2 .................. SUCCESS [
> 28.066 s]
> [INFO] Apache HttpComponents Core Reactive Extensions ..... SUCCESS [
> 8.775 s]
> [INFO] Apache HttpComponents Core OSGi Bundle ............. SUCCESS [
> 10.366 s]
> [INFO] Apache HttpComponents Core Integration Tests 5.0-beta4-SNAPSHOT
> FAILURE [04:50 min]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 07:32 min
> [INFO] Finished at: 2018-10-11T08:23:32-06:00
> [INFO]
> ------------------------------------------------------------------------
>
> Using: mvn -V clean install -P !use-toolchains
>
> Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe;
> 2018-06-17T12:33:14-06:00)
> Maven home: C:\Java\apache-maven-3.5.4\bin\..
> Java version: 11, vendor: Oracle Corporation, runtime: C:\Program
> Files\Java\jdk-11
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>
> Gary
>
>
>
>
>
> On Thu, Oct 11, 2018 at 7:27 AM Julian Reschke <[email protected]>
> wrote:
>
>> On 2018-10-11 14:21, Oleg Kalnichevski wrote:
>> > Folks
>> >
>> > Java 11 ships with a new TLS 1.3 stack that behaves substantially
>> > differently than TLS 1.2 stack in Java 7 to 10.
>> >
>> > There were many small things that I had to tweak in HttpCore TLS code
>> > to get integration tests to pass.
>> >
>> > Now all integration tests pass for me locally (I run Ubuntu Linux
>> > 18.04) and on ASF Jenkins, but integration tests that involve TLS fail
>> > intermittently in Travic CI.
>> >
>> >
>> https://builds.apache.org/view/H-L/view/HttpComponents/job/httpcomponents-core-5.x-java11/4/
>> >
>> > I suspect this might be OS / platform related.
>> >
>> > I would very much appreciate if people with access to MacOS or Windows
>> > could try building the latest HttpCore snapshot and running the
>> > integration tests.
>> > ...
>>
>> I checked out:
>>
>>    [email protected]:apache/httpcomponents-client.git
>>
>> (is that the right thing?)
>>
>> On Win, with Java 11 I get for "mvn clean install":
>>
>> > [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:jar
>> (attach-javadocs) on project httpclient5: MavenReportException: Error while
>> generating Javadoc:
>> > [ERROR] Exit code: 1 -
>> C:\tmp\httpcomponents-client\httpclient5\src\main\java\org\apache\hc\client5\http\auth\AuthScope.java:41:
>> error: unexpected end tag: </p>
>> > [ERROR]  * </p>
>> > [ERROR]    ^
>>
>> I assume I need to skip Javadoc generation somewhow?
>>
>> Best regards, Julian
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>

Reply via email to