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

Testcase failures: sun/security/pkcs11/ec/ReadCertificates.java

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • OpenJDK6
    • OpenJDK6
    • security-libs
    • None

    Description

      --------------------------------------------------
      TEST: sun/security/validator/CertReplace.java
      JDK under test: (/home/ohair/hgrepos/openjdk6/jdk6-master/build/solaris-i586/j2sdk-image)
      openjdk version "1.6.0-internal"
      OpenJDK Runtime Environment (build 1.6.0-internal-ohair_28_Mar_2011_16_50-b00)
      OpenJDK Server VM (build 19.0-b09, mixed mode)

      ACTION: build -- Passed. Build successful
      REASON: Named class compiled on demand
      TIME: 1.032 seconds
      messages:
      command: build CertReplace
      reason: Named class compiled on demand
      elapsed time (seconds): 1.032

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 1.031 seconds
      messages:
      command: compile /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/validator/CertReplace.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.031
      STDOUT:
      STDERR:
      /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/validator/CertReplace.java:38: warning: sun.security.validator.Validator is internal proprietary API and may be removed in a future release
      import sun.security.validator.Validator;
                                   ^
      /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/validator/CertReplace.java:46: warning: sun.security.validator.Validator is internal proprietary API and may be removed in a future release
              Validator v = Validator.getInstance
              ^
      /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/validator/CertReplace.java:47: warning: sun.security.validator.Validator is internal proprietary API and may be removed in a future release
                  (Validator.TYPE_PKIX, Validator.VAR_GENERIC, ks);
                   ^
      /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/validator/CertReplace.java:47: warning: sun.security.validator.Validator is internal proprietary API and may be removed in a future release
                  (Validator.TYPE_PKIX, Validator.VAR_GENERIC, ks);
                                        ^
      /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/validator/CertReplace.java:46: warning: sun.security.validator.Validator is internal proprietary API and may be removed in a future release
              Validator v = Validator.getInstance
                            ^
      Note: /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/validator/CertReplace.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      5 warnings

      ACTION: main -- Failed. Execution failed: `main' threw exception: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
      REASON: Assumed action based on file name: run main CertReplace
      TIME: 0.266 seconds
      messages:
      command: main CertReplace
      reason: Assumed action based on file name: run main CertReplace
      elapsed time (seconds): 0.266
      STDOUT:
      STDERR:
      sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
      at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:288)
      at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:271)
      at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:181)
      at sun.security.validator.Validator.validate(Validator.java:235)
      at sun.security.validator.Validator.validate(Validator.java:204)
      at CertReplace.main(CertReplace.java:49)
      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:616)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: java.security.cert.CertPathValidatorException: timestamp check failed
      at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:153)
      at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(PKIXCertPathValidator.java:325)
      at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:187)
      at java.security.cert.CertPathValidator.validate(CertPathValidator.java:267)
      at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:283)
      ... 11 more
      Caused by: java.security.cert.CertificateExpiredException: NotAfter: Thu Aug 19 01:48:14 PDT 2010
      at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:273)
      at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:587)
      at sun.security.provider.certpath.BasicChecker.verifyTimestamp(BasicChecker.java:178)
      at sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:130)
      at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:131)
      ... 15 more

      JavaTest Message: Test threw exception: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed

      TEST RESULT: Failed. Execution failed: `main' threw exception: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
      --------------------------------------------------
      --------------------------------------------------
      TEST: sun/security/ssl/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnection/CriticalSubjectAltName.java
      JDK under test: (/home/ohair/hgrepos/openjdk6/jdk6-master/build/solaris-i586/j2sdk-image)
      openjdk version "1.6.0-internal"
      OpenJDK Runtime Environment (build 1.6.0-internal-ohair_28_Mar_2011_16_50-b00)
      OpenJDK Server VM (build 19.0-b09, mixed mode)

      ACTION: build -- Passed. Build successful
      REASON: Named class compiled on demand
      TIME: 0.863 seconds
      messages:
      command: build CriticalSubjectAltName
      reason: Named class compiled on demand
      elapsed time (seconds): 0.863

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.862 seconds
      messages:
      command: compile /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnection/CriticalSubjectAltName.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.862
      STDOUT:
      STDERR:

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.DefaultSSLContextImpl)
      REASON: Assumed action based on file name: run main CriticalSubjectAltName
      TIME: 0.25 seconds
      messages:
      command: main CriticalSubjectAltName
      reason: Assumed action based on file name: run main CriticalSubjectAltName
      elapsed time (seconds): 0.25
      STDOUT:
      STDERR:
      Server died...
      java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.DefaultSSLContextImpl)
      at javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory.java:196)
      at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:203)
      at sun.net.www.protocol.https.HttpsClient.createSocket(HttpsClient.java:366)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:160)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:409)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
      at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
      at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:332)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
      at CriticalSubjectAltName.doClientSide(CriticalSubjectAltName.java:133)
      at CriticalSubjectAltName.startClient(CriticalSubjectAltName.java:253)
      at CriticalSubjectAltName.<init>(CriticalSubjectAltName.java:184)
      at CriticalSubjectAltName.main(CriticalSubjectAltName.java:170)
      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:616)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.DefaultSSLContextImpl)
      at java.security.Provider$Service.newInstance(Provider.java:1262)
      at sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
      at sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
      at javax.net.ssl.SSLContext.getInstance(SSLContext.java:142)
      at javax.net.ssl.SSLContext.getDefault(SSLContext.java:85)
      at javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:119)
      at javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:344)
      at javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:302)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.&lt;init&gt;(HttpsURLConnectionImpl.java:85)
      at sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
      at sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
      at java.net.URL.openConnection(URL.java:963)
      at CriticalSubjectAltName.doClientSide(CriticalSubjectAltName.java:131)
      ... 9 more
      Caused by: java.security.PrivilegedActionException: java.io.FileNotFoundException: /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnection/./crisubn.jks (No such file or directory)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.security.ssl.DefaultSSLContextImpl.getDefaultKeyManager(DefaultSSLContextImpl.java:137)
      at sun.security.ssl.DefaultSSLContextImpl.<init>(DefaultSSLContextImpl.java:57)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
      at java.lang.Class.newInstance0(Class.java:372)
      at java.lang.Class.newInstance(Class.java:325)
      at java.security.Provider$Service.newInstance(Provider.java:1238)
      ... 21 more
      Caused by: java.io.FileNotFoundException: /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnection/./crisubn.jks (No such file or directory)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:137)
      at java.io.FileInputStream.<init>(FileInputStream.java:96)
      at sun.security.ssl.DefaultSSLContextImpl$2.run(DefaultSSLContextImpl.java:140)
      at sun.security.ssl.DefaultSSLContextImpl$2.run(DefaultSSLContextImpl.java:138)
      ... 31 more

      JavaTest Message: Test threw exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.DefaultSSLContextImpl)
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.DefaultSSLContextImpl)

      TEST RESULT: Failed. Execution failed: `main' threw exception: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.DefaultSSLContextImpl)
      --------------------------------------------------
      --------------------------------------------------
      TEST: sun/security/pkcs11/ec/TestKeyFactory.java
      JDK under test: (/home/ohair/hgrepos/openjdk6/jdk6-master/build/solaris-i586/j2sdk-image)
      openjdk version "1.6.0-internal"
      OpenJDK Runtime Environment (build 1.6.0-internal-ohair_28_Mar_2011_16_50-b00)
      OpenJDK Server VM (build 19.0-b09, mixed mode)

      ACTION: build -- Passed. Build successful
      REASON: Named class compiled on demand
      TIME: 0.815 seconds
      messages:
      command: build TestKeyFactory
      reason: Named class compiled on demand
      elapsed time (seconds): 0.815

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.813 seconds
      messages:
      command: compile /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/pkcs11/ec/TestKeyFactory.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.813
      STDOUT:
      STDERR:

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Could not parse key values
      REASON: Assumed action based on file name: run main TestKeyFactory
      TIME: 0.23 seconds
      messages:
      command: main TestKeyFactory
      reason: Assumed action based on file name: run main TestKeyFactory
      elapsed time (seconds): 0.23
      STDOUT:
      Beginning test run TestKeyFactory...
      Running test with provider SunPKCS11-Solaris...
      Testing private key...
      Testing public key...
      STDERR:
      java.lang.RuntimeException: Could not parse key values
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1016)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.getW(P11Key.java:1037)
      at sun.security.ec.ECKeyFactory.implTranslatePublicKey(ECKeyFactory.java:186)
      at sun.security.ec.ECKeyFactory.engineTranslateKey(ECKeyFactory.java:146)
      at sun.security.ec.ECKeyFactory.engineGetKeySpec(ECKeyFactory.java:258)
      at java.security.KeyFactory.getKeySpec(KeyFactory.java:400)
      at sun.security.pkcs11.P11KeyFactory.engineGetKeySpec(P11KeyFactory.java:80)
      at java.security.KeyFactory.getKeySpec(KeyFactory.java:400)
      at TestKeyFactory.testPublic(TestKeyFactory.java:75)
      at TestKeyFactory.test(TestKeyFactory.java:107)
      at TestKeyFactory.main(TestKeyFactory.java:129)
      at PKCS11Test.premain(PKCS11Test.java:79)
      at PKCS11Test.testDefault(PKCS11Test.java:113)
      at PKCS11Test.main(PKCS11Test.java:86)
      at TestKeyFactory.main(TestKeyFactory.java:114)
      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:616)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: java.io.IOException: extra data given to DerValue constructor
      at sun.security.util.DerValue.init(DerValue.java:386)
      at sun.security.util.DerValue.<init>(DerValue.java:294)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1005)
      ... 20 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Could not parse key values
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could not parse key values

      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Could not parse key values
      --------------------------------------------------
      --------------------------------------------------
      TEST: sun/security/pkcs11/ec/TestECGenSpec.java
      JDK under test: (/home/ohair/hgrepos/openjdk6/jdk6-master/build/solaris-i586/j2sdk-image)
      openjdk version "1.6.0-internal"
      OpenJDK Runtime Environment (build 1.6.0-internal-ohair_28_Mar_2011_16_50-b00)
      OpenJDK Server VM (build 19.0-b09, mixed mode)

      ACTION: build -- Passed. Build successful
      REASON: Named class compiled on demand
      TIME: 0.8 seconds
      messages:
      command: build TestECGenSpec
      reason: Named class compiled on demand
      elapsed time (seconds): 0.8

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.799 seconds
      messages:
      command: compile /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/pkcs11/ec/TestECGenSpec.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.799
      STDOUT:
      STDERR:

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Could not parse key values
      REASON: Assumed action based on file name: run main TestECGenSpec
      TIME: 0.223 seconds
      messages:
      command: main TestECGenSpec
      reason: Assumed action based on file name: run main TestECGenSpec
      elapsed time (seconds): 0.223
      STDOUT:
      Beginning test run TestECGenSpec...
      Running test with provider SunPKCS11-Solaris...
      Testing NIST P-192...
      secp192r1 [NIST P-192, X9.62 prime192v1] (1.2.840.10045.3.1.1)
      1.2.840.10045.3.1.1
      SunPKCS11-Solaris EC private key, 192 bits (id 137164384, session object, not sensitive, extractable)
        private value: 4429849494833971611682778704565181396002759553712795538352
        parameters: secp192r1 [NIST P-192, X9.62 prime192v1] (1.2.840.10045.3.1.1)
      STDERR:
      java.lang.RuntimeException: Could not parse key values
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1016)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.getParams(P11Key.java:1041)
      at TestECGenSpec.main(TestECGenSpec.java:77)
      at PKCS11Test.premain(PKCS11Test.java:79)
      at PKCS11Test.testDefault(PKCS11Test.java:113)
      at PKCS11Test.main(PKCS11Test.java:86)
      at TestECGenSpec.main(TestECGenSpec.java:41)
      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:616)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=22, too big.
      at sun.security.util.DerInputStream.getLength(DerInputStream.java:561)
      at sun.security.util.DerValue.init(DerValue.java:365)
      at sun.security.util.DerValue.<init>(DerValue.java:294)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1005)
      ... 12 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Could not parse key values
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could not parse key values

      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Could not parse key values
      --------------------------------------------------
      --------------------------------------------------
      TEST: sun/security/pkcs11/ec/TestECDSA.java
      JDK under test: (/home/ohair/hgrepos/openjdk6/jdk6-master/build/solaris-i586/j2sdk-image)
      openjdk version "1.6.0-internal"
      OpenJDK Runtime Environment (build 1.6.0-internal-ohair_28_Mar_2011_16_50-b00)
      OpenJDK Server VM (build 19.0-b09, mixed mode)

      ACTION: build -- Passed. Build successful
      REASON: Named class compiled on demand
      TIME: 0.835 seconds
      messages:
      command: build TestECDSA
      reason: Named class compiled on demand
      elapsed time (seconds): 0.835

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.835 seconds
      messages:
      command: compile /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/pkcs11/ec/TestECDSA.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.835
      STDOUT:
      STDERR:

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.Exception: Result mismatch, actual: false
      REASON: Assumed action based on file name: run main TestECDSA
      TIME: 0.247 seconds
      messages:
      command: main TestECDSA
      reason: Assumed action based on file name: run main TestECDSA
      elapsed time (seconds): 0.247
      STDOUT:
      Beginning test run TestECDSA...
      Running test with provider SunPKCS11-Solaris...
      STDERR:
      java.lang.Exception: Result mismatch, actual: false
      at TestECDSA.verify(TestECDSA.java:89)
      at TestECDSA.test(TestECDSA.java:160)
      at TestECDSA.main(TestECDSA.java:134)
      at PKCS11Test.premain(PKCS11Test.java:79)
      at PKCS11Test.testDefault(PKCS11Test.java:113)
      at PKCS11Test.main(PKCS11Test.java:86)
      at TestECDSA.main(TestECDSA.java:108)
      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:616)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:679)

      JavaTest Message: Test threw exception: java.lang.Exception: Result mismatch, actual: false
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: Result mismatch, actual: false

      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: Result mismatch, actual: false
      --------------------------------------------------
      --------------------------------------------------
      TEST: sun/security/pkcs11/ec/TestCurves.java
      JDK under test: (/home/ohair/hgrepos/openjdk6/jdk6-master/build/solaris-i586/j2sdk-image)
      openjdk version "1.6.0-internal"
      OpenJDK Runtime Environment (build 1.6.0-internal-ohair_28_Mar_2011_16_50-b00)
      OpenJDK Server VM (build 19.0-b09, mixed mode)

      ACTION: compile -- Passed. Compilation successful
      REASON: User specified action: run compile -XDignore.symbol.file TestCurves.java
      TIME: 0.848 seconds
      messages:
      command: compile -XDignore.symbol.file /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/pkcs11/ec/TestCurves.java
      reason: User specified action: run compile -XDignore.symbol.file TestCurves.java
      elapsed time (seconds): 0.848
      STDOUT:
      STDERR:

      ACTION: build -- Passed. All files up to date
      REASON: Named class compiled on demand
      TIME: 0.0 seconds
      messages:
      command: build TestCurves
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Could not parse key values
      REASON: User specified action: run main TestCurves
      TIME: 0.275 seconds
      messages:
      command: main TestCurves
      reason: User specified action: run main TestCurves
      elapsed time (seconds): 0.275
      STDOUT:
      Beginning test run TestCurves...
      Running test with provider SunPKCS11-Solaris...
      Testing secp112r1 (1.3.132.0.6)...
      STDERR:
      java.lang.RuntimeException: Could not parse key values
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1016)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.getParams(P11Key.java:1041)
      at sun.security.pkcs11.P11ECDHKeyAgreement.engineDoPhase(P11ECDHKeyAgreement.java:111)
      at javax.crypto.KeyAgreement.doPhase(KeyAgreement.java:542)
      at TestCurves.main(TestCurves.java:78)
      at PKCS11Test.premain(PKCS11Test.java:79)
      at PKCS11Test.testDefault(PKCS11Test.java:113)
      at PKCS11Test.main(PKCS11Test.java:86)
      at TestCurves.main(TestCurves.java:47)
      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:616)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: java.io.IOException: extra data given to DerValue constructor
      at sun.security.util.DerValue.init(DerValue.java:386)
      at sun.security.util.DerValue.<init>(DerValue.java:294)
      at sun.security.pkcs11.P11Key$P11ECPublicKey.fetchValues(P11Key.java:1005)
      ... 14 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Could not parse key values
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Could not parse key values

      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Could not parse key values
      --------------------------------------------------
      --------------------------------------------------
      TEST: sun/security/pkcs11/ec/ReadPKCS12.java
      JDK under test: (/home/ohair/hgrepos/openjdk6/jdk6-master/build/solaris-i586/j2sdk-image)
      openjdk version "1.6.0-internal"
      OpenJDK Runtime Environment (build 1.6.0-internal-ohair_28_Mar_2011_16_50-b00)
      OpenJDK Server VM (build 19.0-b09, mixed mode)

      ACTION: build -- Passed. Build successful
      REASON: Named class compiled on demand
      TIME: 0.892 seconds
      messages:
      command: build ReadPKCS12
      reason: Named class compiled on demand
      elapsed time (seconds): 0.892

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.892 seconds
      messages:
      command: compile /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/pkcs11/ec/ReadPKCS12.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.892
      STDOUT:
      STDERR:

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.Exception: Signature does not verify
      REASON: Assumed action based on file name: run main ReadPKCS12
      TIME: 0.36 seconds
      messages:
      command: main ReadPKCS12
      reason: Assumed action based on file name: run main ReadPKCS12
      elapsed time (seconds): 0.36
      STDOUT:
      Beginning test run ReadPKCS12...
      Running test with provider SunPKCS11-Solaris...

      Reading secp256r1server-secp384r1ca.p12...
      Aliases: [secp256r1server-secp384r1ca]
      Certificates: 1
      SunPKCS11-Solaris EC private key, 256 bits (id 137660024, session object, not sensitive, extractable)
        private value: 65791747389612877308328414167485269568018894375174534339692254764010750814547
        parameters: secp256r1 [NIST P-256, X9.62 prime256v1] (1.2.840.10045.3.1.7)
      SunPKCS11-Solaris EC public key, 256 bits (id 138211624, session object)
        public x coord: 42614676993469824119761749346428461394596542510123434571770587139469826646276
        public y coord: 10902793992407123771765266622190830272658354370599118679704222978039441524291
        parameters: secp256r1 [NIST P-256, X9.62 prime256v1] (1.2.840.10045.3.1.7)
      STDERR:
      java.lang.Exception: Signature does not verify
      at ReadPKCS12.main(ReadPKCS12.java:137)
      at PKCS11Test.premain(PKCS11Test.java:79)
      at PKCS11Test.testDefault(PKCS11Test.java:113)
      at PKCS11Test.main(PKCS11Test.java:86)
      at ReadPKCS12.main(ReadPKCS12.java:47)
      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:616)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:679)

      JavaTest Message: Test threw exception: java.lang.Exception: Signature does not verify
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.Exception: Signature does not verify

      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: Signature does not verify
      --------------------------------------------------
      On OpenSolaris: These 8 tests failed:

      sun/security/pkcs11/ec/ReadCertificates.java
      sun/security/pkcs11/ec/ReadPKCS12.java
      sun/security/pkcs11/ec/TestCurves.java
      sun/security/pkcs11/ec/TestECDSA.java
      sun/security/pkcs11/ec/TestECGenSpec.java
      sun/security/pkcs11/ec/TestKeyFactory.java
      sun/security/ssl/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnection/CriticalSubjectAltName.java
      sun/security/validator/CertReplace.java


      --------------------------------------------------
      TEST: sun/security/pkcs11/ec/ReadCertificates.java
      JDK under test: (/home/ohair/hgrepos/openjdk6/jdk6-master/build/solaris-i586/j2sdk-image)
      openjdk version "1.6.0-internal"
      OpenJDK Runtime Environment (build 1.6.0-internal-ohair_28_Mar_2011_16_50-b00)
      OpenJDK Server VM (build 19.0-b09, mixed mode)

      ACTION: build -- Passed. Build successful
      REASON: Named class compiled on demand
      TIME: 0.976 seconds
      messages:
      command: build ReadCertificates
      reason: Named class compiled on demand
      elapsed time (seconds): 0.976

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.976 seconds
      messages:
      command: compile /u/ohair/hgrepos/openjdk6/jdk6-master/jdk/test/sun/security/pkcs11/ec/ReadCertificates.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.976
      STDOUT:
      STDERR:
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.security.SignatureException: Signature does not match.
      REASON: Assumed action based on file name: run main ReadCertificates
      TIME: 0.441 seconds
      messages:
      command: main ReadCertificates
      reason: Assumed action based on file name: run main ReadCertificates
      elapsed time (seconds): 0.441
      STDOUT:
      Beginning test run ReadCertificates...
      Running test with provider SunPKCS11-Solaris...
      Loading sunlabscerts.pem...
      OK: 79 certificates.
      Verifying CN=dev.experimentalstuff.com, OU=Test Server (RSA 1024), O=Sun Microsystems Laboratories, L=Mountain View, ST=CA, C=US...
      Verifying CN=dev.experimentalstuff.com, OU=Test Server (rsa1024server-rsa1024ca), O=Sun Microsystems Laboratories, L=Mountain View, ST=CA, C=US...
      Verifying CN=dev.experimentalstuff.com, OU=Test Server (rsa1024server-rsa2048ca), O=Sun Microsystems Laboratories, L=Mountain View, ST=CA, C=US...
      Verifying CN=dev.experimentalstuff.com, OU=Test Server (rsa1024server-secp160r1ca), O=Sun Microsystems Laboratories, L=Mountain View, ST=CA, C=US...
      STDERR:
      java.security.SignatureException: Signature does not match.
      at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:463)
      at ReadCertificates.main(ReadCertificates.java:103)
      at PKCS11Test.premain(PKCS11Test.java:79)
      at PKCS11Test.testDefault(PKCS11Test.java:113)
      at PKCS11Test.main(PKCS11Test.java:86)
      at ReadCertificates.main(ReadCertificates.java:57)
      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:616)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:679)

      JavaTest Message: Test threw exception: java.security.SignatureException: Signature does not match.
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.security.SignatureException: Signature does not match.

      TEST RESULT: Failed. Execution failed: `main' threw exception: java.security.SignatureException: Signature does not match.
      --------------------------------------------------

      Attachments

        Issue Links

          Activity

            People

              vinnie Vincent Ryan
              ohair Kelly Ohair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: