Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8240553

httpclient/whitebox/FlowTestDriver.java fails due to "SSLException: Tag mismatch!"

XMLWordPrintable

    • x86_64
    • linux

      The following test fails in the JDK15 CI:

      java/net/httpclient/whitebox/FlowTestDriver.java

      Here's a snippet from the log file:

      ----------System.out:(91/5998)----------
      Seed from AbstractRandomTest.getSeed = 7283647866038179423L
      Monitor starting
      clientReader: bufsize = 15896
      serverLoopback: bufsize = 512
      ALPN: proto2
      AAALPN = proto2
      Handshake took 484 ms
      [TestNG] Running:
        java/net/httpclient/whitebox/FlowTestDriver.java

      Submitting 3000 buffer arrays
      LoopCount should be 2400000
      Finished submission. Waiting for loopback
      All bytes received:
      clientWriter close: 19287412 written
      clientWriter close return
      test jdk.internal.net.http.FlowTest.run(): failure
      java.util.concurrent.CompletionException: javax.net.ssl.SSLException: Tag mismatch!
      at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:412)
      at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2108)
      at java.net.http/jdk.internal.net.http.FlowTest.run(FlowTest.java:146)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      at org.testng.TestRunner.privateRun(TestRunner.java:773)
      at org.testng.TestRunner.run(TestRunner.java:623)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
      at org.testng.SuiteRunner.run(SuiteRunner.java:259)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
      at org.testng.TestNG.run(TestNG.java:1018)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
      at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: javax.net.ssl.SSLException: Tag mismatch!
      at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:324)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:267)
      at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:262)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:121)
      at java.base/sun.security.ssl.SSLEngineImpl.decode(SSLEngineImpl.java:729)
      at java.base/sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:684)
      at java.base/sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:499)
      at java.base/sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:475)
      at java.base/javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:634)
      at java.net.http/jdk.internal.net.http.common.SSLFlowDelegate$Reader.unwrapBuffer(SSLFlowDelegate.java:529)
      at java.net.http/jdk.internal.net.http.common.SSLFlowDelegate$Reader.processData(SSLFlowDelegate.java:433)
      at java.net.http/jdk.internal.net.http.common.SSLFlowDelegate$Reader$ReaderDownstreamPusher.run(SSLFlowDelegate.java:268)
      at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SynchronizedRestartableTask.run(SequentialScheduler.java:175)
      at java.net.http/jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask.run(SequentialScheduler.java:147)
      at java.net.http/jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run(SequentialScheduler.java:198)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
      ... 1 more
      Caused by: javax.crypto.AEADBadTagException: Tag mismatch!
      at java.base/com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:623)
      at java.base/com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1118)
      at java.base/com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1055)
      at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:943)
      at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:491)
      at java.base/javax.crypto.CipherSpi.bufferCrypt(CipherSpi.java:794)
      at java.base/javax.crypto.CipherSpi.engineDoFinal(CipherSpi.java:730)
      at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2502)
      at java.base/sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.decrypt(SSLCipher.java:1656)
      at java.base/sun.security.ssl.SSLEngineInputRecord.decodeInputRecord(SSLEngineInputRecord.java:240)
      at java.base/sun.security.ssl.SSLEngineInputRecord.decode(SSLEngineInputRecord.java:197)
      at java.base/sun.security.ssl.SSLEngineInputRecord.decode(SSLEngineInputRecord.java:160)
      at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:109)
      ... 14 more

      ===============================================
      java/net/httpclient/whitebox/FlowTestDriver.java
      Total tests run: 1, Failures: 1, Skips: 0
      ===============================================

      ----------System.err:(14/858)----------

      Starting this as a P3 since this is a Tier2 failure.

            dfuchs Daniel Fuchs
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: