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

test/sun/security/provider/certpath/X509CertPath/IllegalCertiticates.java failing

XMLWordPrintable

    • b04
    • generic
    • generic
    • Verified

        The changes for 7064075 mean that this test fails consistently. We're add it to the ProblemList as part of 7081813 so please remember to remove it when fixing this issue.


        #Test Results (version 2)
        #Sat Aug 20 09:06:23 IST 2011
        #checksum:5145f447ccf005c9
        #-----testdescription-----
        $file=/net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/sun/security/provider/certpath/X509CertPath/IllegalCertiticates.java
        $root=/net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test
        keywords=bug6492692
        run=ASSUMED_ACTION main IllegalCertiticates\n
        source=IllegalCertiticates.java
        title=Some JCK test failed because of the compiler warnings changes

        #-----environment-----

        #-----testresult-----
        description=file:/net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/sun/security/provider/certpath/X509CertPath/IllegalCertiticates.java
        elapsed=182 0:00:00.182
        end=Sat Aug 20 09:06:23 IST 2011
        environment=regtest
        execStatus=Failed. Execution failed: `main' threw exception: java.lang.Exception: No expected CertificateException thrown
        hostname=ashtown.ie.oracle.com
        javatestOS=Linux 2.6.18-128.el5 (amd64)
        javatestVersion=4.1.4
        script=com.sun.javatest.regtest.RegressionScript
        sections=script_messages build compile main
        start=Sat Aug 20 09:06:23 IST 2011
        test=sun/security/provider/certpath/X509CertPath/IllegalCertiticates.java
        work=/export/home/alanb/JTwork/sun/security/provider/certpath/X509CertPath

        #section:script_messages
        ----------messages:(4/211)----------
        JDK under test: (/export/home/alanb/jdk1.8)
        java version "1.8.0-internal"
        Java(TM) SE Runtime Environment (build 1.8.0-internal-201108181350.ab23780.tl-b00)
        OpenJDK 64-Bit Server VM (build 22.0-b01, mixed mode)

        #section:build
        ----------messages:(3/104)----------
        command: build IllegalCertiticates
        reason: Named class compiled on demand
        elapsed time (seconds): 0.099
        result: Passed. Build successful

        #section:compile
        ----------messages:(3/219)----------
        command: compile /net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/sun/security/provider/certpath/X509CertPath/IllegalCertiticates.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.098
        ----------direct:(12/1123)----------
        /net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/sun/security/provider/certpath/X509CertPath/IllegalCertiticates.java:34: warning: X509CertPath is internal proprietary API and may be removed in a future release
        import sun.security.provider.certpath.X509CertPath;
                                             ^
        /net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/sun/security/provider/certpath/X509CertPath/IllegalCertiticates.java:46: warning: X509CertPath is internal proprietary API and may be removed in a future release
                    X509CertPath cp = new X509CertPath(certs);
                    ^
        /net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/sun/security/provider/certpath/X509CertPath/IllegalCertiticates.java:46: warning: X509CertPath is internal proprietary API and may be removed in a future release
                    X509CertPath cp = new X509CertPath(certs);
                                          ^
        Note: /net/rialto/export/Users/ab23780/ws/jdk8/tl/jdk/test/sun/security/provider/certpath/X509CertPath/IllegalCertiticates.java uses unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        3 warnings
        result: Passed. Compilation successful

        #section:main
        ----------messages:(3/137)----------
        command: main IllegalCertiticates
        reason: Assumed action based on file name: run main IllegalCertiticates
        elapsed time (seconds): 0.083
        ----------System.err:(16/884)----------
        java.lang.Exception: No expected CertificateException thrown
        at IllegalCertiticates.main(IllegalCertiticates.java:51)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:474)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
        at java.lang.Thread.run(Thread.java:722)
        Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.security.cert.Certificate
        at sun.security.provider.certpath.X509CertPath.<init>(X509CertPath.java:108)
        at IllegalCertiticates.main(IllegalCertiticates.java:46)
        ... 6 more

        JavaTest Message: Test threw exception: java.lang.Exception
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.Exception: No expected CertificateException thrown


        test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: No expected CertificateException thrown

              xuelei Xuelei Fan
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: