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

JCK: 3 api/java_security/ProtectionDomain tests fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • security-libs
    • beta
    • sparc
    • generic
    • Verified



      Name: kaC94536 Date: 12/09/2000



      The following JCK1.3 tests fail on Linux RedHat 6.2, Windows and Sparc Solaris:

      api/java_security/ProtectionDomain/index.html#CtorGetTests
      api/java_security/ProtectionDomain/index.html#impliesTests
      api/java_security/ProtectionDomain/index.html#toStringTests
           
      To reproduce the bug, run script below
      You may need to set JCK and JAVA_HOME.

      -------------------------------------------------------------------------------------
      #!/bin/sh
      SWITCH="$@"
      JAVA_HOME=/usr/local/java/jdk1.4/linux-i386
      JCK=/net/orthello/home2/JCK-13
      CLASSPATH=$JCK/classes:$JCK/javatest.jar
      export CLASSPATH
      executeClass="javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests -TestURL file:$JCK/tests/api/java_security/ProtectionDomain/index.html#CtorGetTests -TestCaseID ALL"

      $JAVA_HOME/bin/java ${SWITCH} -version
      $JAVA_HOME/bin/java ${SWITCH} -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy ${executeClass}
      RESULT="$?"
      if [ $RESULT = 95 ]; then
       echo Test passed
      elif [ $RESULT = 97 ]; then
       echo Test failed
      else
       echo Result is $RESULT
      fi

      ------------------------------------ output ------------------------------------------

      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b44)
      Java HotSpot(TM) Client VM (build 1.4beta-B44, mixed mode)
      ProtectionDomain001: Passed. ProtectionDomain created successfully. null CodeSource returned as expected.
      ProtectionDomain002: Passed. ProtectionDomain created successfully. null CodeSource returned as expected.
      ProtectionDomain003: Passed. ProtectionDomain created successfully. null CodeSource returned as expected.
      ProtectionDomain004: Failed. Incorrect ProtectionDomain creation - codesource/perms dont match.
      ProtectionDomain005: Passed. ProtectionDomain created successfully. CodeSource/perms match.
      ProtectionDomain006: Failed. Incorrect ProtectionDomain creation - codesource/perms dont match.
      java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:320)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1395)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1147)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1078)
      at java.security.ProtectionDomain$1.run(ProtectionDomain.java:144)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain.getPermissions(ProtectionDomain.java:139)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.checkPD(CtorGetTests.java:94)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.ProtectionDomain007(CtorGetTests.java:151)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
      at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.main(CtorGetTests.java:256)
      ProtectionDomain007: Failed. Test case throws exception: java.lang.NullPointerException
      java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:320)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1395)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1147)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1078)
      at java.security.ProtectionDomain$1.run(ProtectionDomain.java:144)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain.getPermissions(ProtectionDomain.java:139)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.checkPD(CtorGetTests.java:94)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.ProtectionDomain008(CtorGetTests.java:156)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
      at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.main(CtorGetTests.java:256)
      ProtectionDomain008: Failed. Test case throws exception: java.lang.NullPointerException
      java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:320)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1395)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1147)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1078)
      at java.security.ProtectionDomain$1.run(ProtectionDomain.java:144)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain.getPermissions(ProtectionDomain.java:139)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.checkPD(CtorGetTests.java:94)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.ProtectionDomain009(CtorGetTests.java:161)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
      at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.main(CtorGetTests.java:256)
      ProtectionDomain009: Failed. Test case throws exception: java.lang.NullPointerException
      ProtectionDomain010: Failed. Incorrect ProtectionDomain creation - codesource/perms dont match.
      ProtectionDomain011: Passed. ProtectionDomain created successfully. CodeSource/perms match.
      ProtectionDomain012: Failed. Incorrect ProtectionDomain creation - codesource/perms dont match.
      ProtectionDomain013: Failed. Incorrect ProtectionDomain creation - codesource/perms dont match.
      ProtectionDomain014: Passed. ProtectionDomain created successfully. CodeSource/perms match.
      ProtectionDomain015: Failed. Incorrect ProtectionDomain creation - codesource/perms dont match.
      ProtectionDomain016: Failed. Incorrect ProtectionDomain creation - codesource/perms dont match.
      java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:320)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1395)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1147)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1078)
      at java.security.ProtectionDomain$1.run(ProtectionDomain.java:144)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain.getPermissions(ProtectionDomain.java:139)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.checkPD(CtorGetTests.java:94)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.ProtectionDomain017(CtorGetTests.java:207)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
      at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.main(CtorGetTests.java:256)
      ProtectionDomain017: Failed. Test case throws exception: java.lang.NullPointerException
      ProtectionDomain018: Failed. Incorrect ProtectionDomain creation - codesource/perms dont match.
      java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:320)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1395)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1147)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1078)
      at java.security.ProtectionDomain$1.run(ProtectionDomain.java:144)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain.getPermissions(ProtectionDomain.java:139)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.checkPD(CtorGetTests.java:94)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.ProtectionDomain019(CtorGetTests.java:219)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
      at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.main(CtorGetTests.java:256)
      ProtectionDomain019: Failed. Test case throws exception: java.lang.NullPointerException
      java.lang.NullPointerException
      at java.util.Hashtable.get(Hashtable.java:320)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1395)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1147)
      at sun.security.provider.PolicyFile.getPermissions(PolicyFile.java:1078)
      at java.security.ProtectionDomain$1.run(ProtectionDomain.java:144)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain.getPermissions(ProtectionDomain.java:139)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.checkPD(CtorGetTests.java:94)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.ProtectionDomain020(CtorGetTests.java:224)
      at java.lang.reflect.Method.invoke(Native Method)
      at javasoft.sqe.jck.lib.MultiTest.runTests(MultiTest.java:139)
      at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:101)
      at javasoft.sqe.tests.api.java.security.ProtectionDomain.CtorGetTests.main(CtorGetTests.java:256)
      ProtectionDomain020: Failed. Test case throws exception: java.lang.NullPointerException
      ProtectionDomain021: Passed. ProtectionDomain created successfully. CodeSource/perms match.
      ProtectionDomain022: Failed. Incorrect ProtectionDomain creation - codesource/perms dont match.
      STATUS:Failed. tests: 22; passed: 7; failed: 15; first test case failure: ProtectionDomain004
      Test failed

      ======================================================================

      ======================================================================

            claisunw Charlie Lai (Inactive)
            kanisimosunw Konstantin Anisimov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: