Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1893

TLS13HalfCloseHangTestCase fails with IBM JDK

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 2.2.7.Final
    • Core
    • None
    • Hide
      1. clone Undertow repository
      2. build it with appropriate IBM JDK
      3. execute the test with:
        $ JAVA_HOME=/home/jstourac/jdks/ibm/ibm-java-x86_64-sdk-8.0-6.30 mvn verify --show-version -Dmaven.javadoc.skip=true -DskipUnitTests -Pproxy -Denforcer.skip -Dtest=TLS13HalfCloseHangTestCase.java
        

        and see the failure

      Show
      clone Undertow repository build it with appropriate IBM JDK execute the test with: $ JAVA_HOME=/home/jstourac/jdks/ibm/ibm-java-x86_64-sdk-8.0-6.30 mvn verify --show-version -Dmaven.javadoc.skip= true -DskipUnitTests -Pproxy -Denforcer.skip -Dtest=TLS13HalfCloseHangTestCase.java and see the failure
    • Undefined

    Description

      The TLS13HalfCloseHangTestCase.java testcase started to fail with IBM JDK. Reason for this is that support for TLS 1.3 has been added into IBM JDK since version `8.0-6.25`, see release notes. Up to this version the test was simply skipped since TLS 1.3 wasn't supported in this JDK flavour.

      Looks like even applying the mentioned `jdk.tls.client.enableStatusRequestExtension` property or using recently released latest IBM JDK version (8.0-6.30) doesn't help.

      Test failures with following exception:

      [INFO] Running io.undertow.server.ssl.TLS13HalfCloseHangTestCase
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.643 s <<< FAILURE! - in io.undertow.server.ssl.TLS13HalfCloseHangTestCase
      [ERROR] testHang(io.undertow.server.ssl.TLS13HalfCloseHangTestCase)  Time elapsed: 1.64 s  <<< ERROR!
      java.net.SocketException: Socket is closed
      	at com.ibm.jsse2.bj.getInputStream(bj.java:403)
      	at io.undertow.server.ssl.TLS13HalfCloseHangTestCase.readResponse(TLS13HalfCloseHangTestCase.java:102)
      	at io.undertow.server.ssl.TLS13HalfCloseHangTestCase.doRequest(TLS13HalfCloseHangTestCase.java:73)
      	at io.undertow.server.ssl.TLS13HalfCloseHangTestCase.testHang(TLS13HalfCloseHangTestCase.java:54)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      	at java.lang.reflect.Method.invoke(Method.java:508)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
      	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
      	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
      	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:27)
      	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
      	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      	at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83)
      	at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75)
      	at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:383)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:344)
      	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:417)
      

      Attachments

        Activity

          People

            flaviarnn Flavia Rainone
            jstourac@redhat.com Jan Stourac
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: