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

Regression: -classic flag causes 25 JCK tests to fail on Linux

XMLWordPrintable

    • b01
    • x86
    • linux

      Ran JCK on Madhatter - Mercury and on RedHat Linux 7.3 for 1.3.1_12.
      25 JCK tests failed which pass if the -classic flag is removed.

      Traced back the problem and it seems to have occurred in 1.3.1_09.
      1.3.1_08b3 passes but 1.3.1_09b2 fails. I can't test 1.3.1_09b1 because
      I could not locate it on /java/re/jdk.

      The failing tests are:

      api/java_security/KeyFactory/KeyFactoryTests.html#generatePrivateTests
      api/java_security/KeyFactory/KeyFactoryTests.html#generatePublicTests
      api/java_security/KeyFactory/KeyFactoryTests.html#getKeySpecTests
      api/java_security/KeyFactory/KeyFactoryTests.html#miscTests
      api/java_security/KeyPair/KeyPairTests.html#getPrivate
      api/java_security/KeyPair/KeyPairTests.html#getPublic
      api/java_security/KeyPairGenerator/KeyPairGeneratorTests.html#generateKeyPair
      api/java_security/KeyPairGenerator/KeyPairGeneratorTests.html#initialize
      api/java_security/SecureRandom/SecureRandomTests.html#SecureRandom101
      api/java_security/SecureRandom/SecureRandomTests.html#getSeed101
      api/java_security/SecureRandom/SecureRandomTests.html#nextBytes101
      api/java_security/Signature/SignatureTests.html#initSign
      api/java_security/Signature/SignatureTests.html#initVerify
      api/java_security/Signature/SignatureTests.html#signTests
      api/java_security/Signature/SignatureTests.html#update
      api/java_security/Signature/SignatureTests.html#toString
      api/java_security/Signature/SignatureTests.html#verify
      api/java_security/SignedObject/SignedObjectTests.html#CtorGetTests
      api/java_security/SignedObject/SignedObjectTests.html#getSignatureTests
      api/java_security/SignedObject/SignedObjectTests.html#verifyTests
      api/java_security/Signer/SignerTests.html#keymethods
      api/java_security/spec/PKCS8EncodedKeySpec/PKCS8EncodedKeySpecTests.html#CtorGetTests
      api/java_security/spec/PKCS8EncodedKeySpec/PKCS8EncodedKeySpecTests.html#getFormatTests
      api/java_security/spec/X509EncodedKeySpec/X509EncodedKeySpecTests.html#CtorGetTests
      api/java_security/spec/X509EncodedKeySpec/X509EncodedKeySpecTests.html#getFormatTests


      A sample of the errors is:

      java.lang.InternalError: URLSeedGenerator file:/dev/random generated exception: Invalid argument
      at sun.security.provider.SeedGenerator$URLSeedGenerator._getByte(SeedGenerator.java:443)
      at sun.security.provider.SeedGenerator.getByte(SeedGenerator.java:112)
      at sun.security.provider.SecureRandom.engineGenerateSeed(SecureRandom.java:112)
      at sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:170)
      at java.security.SecureRandom.nextBytes(SecureRandom.java:324)
      at java.security.SecureRandom.next(SecureRandom.java:346)
      at java.util.Random.nextInt(Random.java:176)
      at sun.security.provider.DSAKeyPairGenerator.generateX(DSAKeyPairGenerator.java:323)
      at sun.security.provider.DSAKeyPairGenerator.generateKeyPair(DSAKeyPairGenerator.java:289)
      at sun.security.provider.DSAKeyPairGenerator.generateKeyPair(DSAKeyPairGenerator.java:283)
      at javasoft.sqe.tests.api.java.security.spec.X509EncodedKeySpec.getFormatTests.getFormat001(getFormatTests.java:44)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:409)
      at javasoft.sqe.jck.lib.ProviderTest.invokeTestCase(ProviderTest.java:125)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:205)
      at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:137)
      at javasoft.sqe.tests.api.java.security.spec.X509EncodedKeySpec.getFormatTests.main(getFormatTests.java:70)
      getFormat001: Failed. Test case throws exception: java.lang.InternalError: URLSeedGenerator file:/dev/random generated exception: Invalid argument
      STATUS:Failed.tests: 1; failed: 1; first test case failure: getFormat001
      ###@###.### 10/8/04 14:28 GMT

            chegar Chris Hegarty
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: