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

javax/net/ssl/TLS/TestJSSE.java failed on Mac

    Details

      Backports

        Description

        javax/net/ssl/TLS/TestJSSE.java testcases failed in our nightly test run on Mac platform with below exception:

        Got IOException:
        ----------System.err:(44/2760)----------
        java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1
        at TestJSSE.client(TestJSSE.java:116)
        at TestJSSE.main(TestJSSE.java:95)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:745)
        Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at java.util.ArrayList.add(ArrayList.java:461)
        at CipherTestUtils.addFailure(CipherTestUtils.java:314)
        at CipherTestUtils$Client.lambda$run$1(CipherTestUtils.java:412)
        at CipherTestUtils$Client$$Lambda$3/1131568263.accept(Unknown Source)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1386)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:503)
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
        at CipherTestUtils$Client.run(CipherTestUtils.java:407)
        at CipherTestUtils.main(CipherTestUtils.java:545)
        at TestJSSE.client(TestJSSE.java:111)
        ... 7 more
        javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
        at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1991)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1104)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1343)
        at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:909)
        at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
        at sun.security.ssl.AppInputStream.read(AppInputStream.java:71)
        at CipherTestUtils$Server.handleRequest(CipherTestUtils.java:208)
        at JSSEServer.run(JSSEServer.java:66)
        at java.lang.Thread.run(Thread.java:745)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 1

          Issue Links

            Activity

            Hide
            tidu Tim Du (Inactive) added a comment -
            RULE javax/net/ssl/TLS/TestJSSE.java Exception java.lang.ArrayIndexOutOfBoundsException: ...
            Show
            tidu Tim Du (Inactive) added a comment - RULE javax/net/ssl/TLS/TestJSSE.java Exception java.lang.ArrayIndexOutOfBoundsException: ...
            Hide
            tidu Tim Du (Inactive) added a comment -
            I am try to reproduce the issue on that machine , it can't be reproduced, it should be stabilization issue:
            see reult:http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/timdu/UTE/result/reproduce/8069253/report/html/index.html#locations
            Show
            tidu Tim Du (Inactive) added a comment - I am try to reproduce the issue on that machine , it can't be reproduced, it should be stabilization issue: see reult: http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/timdu/UTE/result/reproduce/8069253/report/html/index.html#locations
            Hide
            mullan Sean Mullan added a comment -
            This looks like it could be a concurrency issue. CipherTestUtils stores the Exceptions in a static ArrayList. If exceptions are added to this ArrayList concurrently, then I think it could cause issues like above.
            Show
            mullan Sean Mullan added a comment - This looks like it could be a concurrency issue. CipherTestUtils stores the Exceptions in a static ArrayList. If exceptions are added to this ArrayList concurrently, then I think it could cause issues like above.
            Hide
            ssides Steve Sides added a comment - - edited
            Two tests,
            javax/net/ssl/DTLS/CipherSuite.java
            javax/net/ssl/TLS/TestJSSE.java
            failed in simlar manner for mach5 on 6/18/15.
            TestJSSE.java failed in same manner as report, and an additional test, CipherSuite, failed in a simlilar(but not exact) manner with a handshake type failure.
            See attached for jtr and console output for both tests.
            Logging on to same machine and rerunning all tests in javax/net/ssl with same command line used did not reproduce the issue.
            Show
            ssides Steve Sides added a comment - - edited Two tests, javax/net/ssl/DTLS/CipherSuite.java javax/net/ssl/TLS/TestJSSE.java failed in simlar manner for mach5 on 6/18/15. TestJSSE.java failed in same manner as report, and an additional test, CipherSuite, failed in a simlilar(but not exact) manner with a handshake type failure. See attached for jtr and console output for both tests. Logging on to same machine and rerunning all tests in javax/net/ssl with same command line used did not reproduce the issue.
            Hide
            weijun Weijun Wang added a comment -
            The CipherSuite.java failure [1] seems to be a little different. Another bug (JDK-8129389) was filed to track it.

            [1] http://java.se.oracle.com/mach5/view/9-dev-test/job/9-dev-tier2-mac/566/artifact/JTwork/jdk_test/javax/net/ssl/DTLS/CipherSuite.jtr/*view*/
            Show
            weijun Weijun Wang added a comment - The CipherSuite.java failure [1] seems to be a little different. Another bug ( JDK-8129389 ) was filed to track it. [1] http://java.se.oracle.com/mach5/view/9-dev-test/job/9-dev-tier2-mac/566/artifact/JTwork/jdk_test/javax/net/ssl/DTLS/CipherSuite.jtr/*view*/
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/93ced310c728
            User: weijun
            Date: 2015-06-29 07:05:18 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/93ced310c728 User: weijun Date: 2015-06-29 07:05:18 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/93ced310c728
            User: lana
            Date: 2015-07-08 22:17:44 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/93ced310c728 User: lana Date: 2015-07-08 22:17:44 +0000

              People

              • Assignee:
                weijun Weijun Wang
                Reporter:
                tidu Tim Du (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: