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

test/java/lang/SecurityManager/CheckPackageAccess.java failing

    XMLWordPrintable

Details

    • b113
    • Verified

    Description


      The test seems to assume that FX is present. Here's a sample failure.

      #Test Results (version 2)
      #Fri Oct 11 18:22:05 IST 2013
      #checksum:2bd61eee741885fc
      #-----testdescription-----
      $file=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager/CheckPackageAccess.java
      $root=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test
      keywords=bug6741606 bug7146431 bug8000450 bug8019830 othervm
      run=USER_SPECIFIED main/othervm CheckPackageAccess\n
      source=CheckPackageAccess.java
      title=Make sure all restricted packages listed in the package.access property in the java.security file are blocked

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

      #-----testresult-----
      description=file\:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager/CheckPackageAccess.java
      elapsed=208 0\:00\:00.208
      end=Fri Oct 11 18\:22\:05 IST 2013
      environment=regtest
      execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.RuntimeException\: restricted packages are not consistent with java.security file
      hostname=ashtown.ie.oracle.com
      javatestOS=Linux 3.2.0-23-generic (amd64)
      javatestVersion=4.4
      jtregVersion=jtreg 4.1 dev b00
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile main
      start=Fri Oct 11 18\:22\:05 IST 2013
      test=java/lang/SecurityManager/CheckPackageAccess.java
      user.name=jenkins
      work=/data/jenkins/workspace/jdk8-tl-test/JTwork/java/lang/SecurityManager

      #section:script_messages
      ----------messages:(5/312)----------
      JDK under test: (/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image)
      java version "1.8.0-internal"
      Java(TM) SE Runtime Environment (build 1.8.0-internal-jenkins_2013_10_11_17_49-b00)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b53, mixed mode)


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

      #section:compile
      ----------messages:(3/251)----------
      command: compile -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager/CheckPackageAccess.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.073
      ----------rerun:(21/2303)*----------
      HOME=/var/lib/jenkins \\
      LANG=en_IE.UTF-8 \\
      PATH=/bin:/usr/bin \\
          /data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/javac \\
              -J-ea \\
              -J-esa \\
              -J-Xmx256m \\
              -J-XX:-UseLargePages \\
              -J-DCompatibilityTest.disableNetwork=true \\
              -J-Dtest.vm.opts='-ea -esa -Xmx256m -XX:-UseLargePages -DCompatibilityTest.disableNetwork=true' \\
              -J-Dtest.class.path.prefix=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager \\
              -J-Dtest.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\
              -J-Dtest.src.path=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager \\
              -J-Dtest.compiler.opts= \\
              -J-Dcompile.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\
              -J-Dtest.classes=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager \\
              -J-Dtest.class.path=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager \\
              -J-Dtest.java.opts= \\
              -J-Dtest.src=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager \\
              -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx256m -J-XX:-UseLargePages -J-DCompatibilityTest.disableNetwork=true' \\
              -d /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager -classpath /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager:/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/lib/tools.jar -sourcepath /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager/CheckPackageAccess.java
      result: Passed. Compilation successful

      #section:main
      ----------messages:(3/131)----------
      command: main CheckPackageAccess
      reason: User specified action: run main/othervm CheckPackageAccess
      elapsed time (seconds): 0.135
      ----------System.out:(10/521)----------
      In j.s file, but not in golden set: com.sun.browser.
      In j.s file, but not in golden set: com.sun.glass.
      In j.s file, but not in golden set: com.sun.javafx.
      In j.s file, but not in golden set: com.sun.media.
      In j.s file, but not in golden set: com.sun.openpisces.
      In j.s file, but not in golden set: com.sun.pisces.
      In j.s file, but not in golden set: com.sun.prism.
      In j.s file, but not in golden set: com.sun.scenario.
      In j.s file, but not in golden set: com.sun.t2k.
      In j.s file, but not in golden set: com.sun.webkit.
      ----------System.err:(13/855)----------
      java.lang.RuntimeException: restricted packages are not consistent with java.security file
      at CheckPackageAccess.main(CheckPackageAccess.java:125)
      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:483)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:724)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: restricted packages are not consistent with java.security file
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: restricted packages are not consistent with java.security file
      ----------rerun:(18/2143)*----------
      HOME=/var/lib/jenkins \\
      LANG=en_IE.UTF-8 \\
      PATH=/bin:/usr/bin \\
      CLASSPATH=/u/alanb/ws/code-tools-jtreg/build/images/jtreg/lib/javatest.jar:/u/alanb/ws/code-tools-jtreg/build/images/jtreg/lib/jtreg.jar:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager:/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/lib/tools.jar \\
          /data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/java \\
              -Dtest.vm.opts='-ea -esa -Xmx256m -XX:-UseLargePages -DCompatibilityTest.disableNetwork=true' \\
              -Dtest.class.path.prefix=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager \\
              -Dtest.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\
              -Dtest.src.path=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager \\
              -Dtest.compiler.opts= \\
              -Dcompile.jdk=/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image \\
              -Dtest.classes=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager \\
              -Dtest.class.path=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager \\
              -Dtest.java.opts= \\
              -Dtest.src=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-11_17-48-49/archive/jdk/test/java/lang/SecurityManager \\
              -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx256m -J-XX:-UseLargePages -J-DCompatibilityTest.disableNetwork=true' \\
              -ea -esa -Xmx256m -XX:-UseLargePages -DCompatibilityTest.disableNetwork=true \\
              com.sun.javatest.regtest.MainWrapper /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/2/java/lang/SecurityManager/CheckPackageAccess.jta
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: restricted packages are not consistent with java.security file


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: restricted packages are not consistent with java.security file

      Attachments

        Issue Links

          Activity

            People

              mullan Sean Mullan
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: