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

sun/tools/jstatd/TestJstatdExternalRegistry.java: java.lang.SecurityException: attempt to add a Permission to a readonly Permissions object

    Details

    • Subcomponent:
    • Resolved In Build:
      b117
    • Verification:
      Not verified

      Backports

        Description

        #-----testresult-----
        description=file\:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd/TestJstatdExternalRegistry.java
        elapsed=6145 0\:00\:06.145
        end=Thu Oct 31 03\:52\:04 GMT 2013
        environment=regtest
        execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.RuntimeException\: Should get an empty output, got\: Could not create remote object attempt to add a Permission to a readonly Permissions object java.lang.SecurityException\: attempt to add a Permission to a readonly Permissions object at java.security.Permissions.add(Permissions.java\:126) at java.security.Policy$UnsupportedEmptyCollection.add(Policy.java\:827) at sun.rmi.server.LoaderHandler.getLoaderAccessControlContext(LoaderHandler.java\:1005) at sun.rmi.server.LoaderHandler.lookupLoader(LoaderHandler.java\:881) at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java\:564) at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java\:646) at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java\:311) at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java\:255) at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java\:1559) at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java\:1515) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java\:1774) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java\:1351) at java.io.ObjectInputStream.readObject(ObjectInputStream.java\:371) at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source) at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java\:410) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java\:268) at sun.rmi.transport.Transport$1.run(Transport.java\:178) at sun.rmi.transport.Transport$1.run(Transport.java\:175) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java\:174) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java\:557) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java\:812) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java\:671) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java\:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java\:617) at java.lang.Thread.run(Thread.java\:744) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java\:276) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java\:253) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java\:379) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at java.rmi.Naming.rebind(Naming.java\:177) at sun.tools.jstatd.Jstatd.bind(Jstatd.java\:57) at sun.tools.jstatd.Jstatd.main(Jstatd.java\:143)
        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 build compile main
        start=Thu Oct 31 03\:51\:58 GMT 2013
        test=sun/tools/jstatd/TestJstatdExternalRegistry.java
        user.name=jenkins
        work=/data/jenkins/workspace/jdk8-tl-test/JTwork/sun/tools/jstatd

        #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_31_02_53-b00)
        Java HotSpot(TM) 64-Bit Server VM (build 25.0-b56, mixed mode)


        #section:build
        ----------messages:(3/145)----------
        command: build JstatdTest JstatGCUtilParser
        reason: User specified action: run build JstatdTest JstatGCUtilParser
        elapsed time (seconds): 0.152
        result: Passed. Build successful

        #section:compile
        ----------messages:(3/351)----------
        command: compile -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd/JstatdTest.java /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd/JstatGCUtilParser.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.152
        ----------rerun:(21/2709)*----------
        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/3/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/lib/testlibrary \\
                -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-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/lib/testlibrary \\
                -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/3/sun/tools/jstatd \\
                -J-Dtest.class.path=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/sun/tools/jstatd:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/lib/testlibrary \\
                -J-Dtest.java.opts= \\
                -J-Dtest.src=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd \\
                -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/3/sun/tools/jstatd -classpath /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/lib/testlibrary:/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-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/lib/testlibrary -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd/JstatdTest.java /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd/JstatGCUtilParser.java
        ----------direct:(2/221)----------
        Note: /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/lib/testlibrary/jdk/testlibrary/StreamPumper.java uses unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        result: Passed. Compilation successful

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

        #section:compile
        ----------messages:(3/250)----------
        command: compile -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd/TestJstatdExternalRegistry.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.007
        ----------rerun:(21/2608)*----------
        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/3/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/lib/testlibrary \\
                -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-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/lib/testlibrary \\
                -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/3/sun/tools/jstatd \\
                -J-Dtest.class.path=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/sun/tools/jstatd:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/lib/testlibrary \\
                -J-Dtest.java.opts= \\
                -J-Dtest.src=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd \\
                -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/3/sun/tools/jstatd -classpath /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/lib/testlibrary:/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-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/lib/testlibrary -XDignore.symbol.file=true /data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd/TestJstatdExternalRegistry.java
        result: Passed. Compilation successful

        #section:main
        ----------messages:(3/150)----------
        command: main TestJstatdExternalRegistry
        reason: User specified action: run main/timeout=60 TestJstatdExternalRegistry
        elapsed time (seconds): 5.985
        ----------rerun:(17/2055)*----------
        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/java \\
                -Dtest.vm.opts='-ea -esa -Xmx256m -XX:-UseLargePages -DCompatibilityTest.disableNetwork=true' \\
                -Dtest.class.path.prefix=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/lib/testlibrary \\
                -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-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/lib/testlibrary \\
                -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/3/sun/tools/jstatd \\
                -Dtest.class.path=/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/sun/tools/jstatd:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/lib/testlibrary \\
                -Dtest.java.opts= \\
                -Dtest.src=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd \\
                -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx256m -J-XX:-UseLargePages -J-DCompatibilityTest.disableNetwork=true' \\
                -classpath /data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/sun/tools/jstatd:/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd:/data/jenkins/workspace/jdk8-tl-test/JTwork/classes/3/lib/testlibrary:/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/lib/tools.jar \\
                TestJstatdExternalRegistry
        ----------System.out:(27/1291)----------
        Start rmiregistry on port 58129

        Start jstatd:
        [/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/jstatd -J-XX:+UsePerfData -J-Djava.security.policy=/data/jenkins/jobs/jdk8-tl-build/builds/2013-10-31_02-41-55/archive/jdk/test/sun/tools/jstatd/all.policy -p 58129]

        Start jps:
        [/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/jps -J-XX:+UsePerfData ashtown:58129]
        RMI Server JStatRemoteHost not available

        Waiting until jstatd is running...

        Start jps:
        [/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/jps -J-XX:+UsePerfData ashtown:58129]
        RMI Server JStatRemoteHost not available

        Waiting until jstatd is running...

        Start jps:
        [/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/jps -J-XX:+UsePerfData ashtown:58129]
        RMI Server JStatRemoteHost not available

        Waiting until jstatd is running...

        Start jps:
        [/data/jenkins/jobs/jdk8-tl-build/lastSuccessful/archive/build/linux-x86_64-normal-server-release/images/j2sdk-image/bin/jps -J-XX:+UsePerfData ashtown:58129]
        RMI Server JStatRemoteHost not available

        ----------System.err:(48/2985)----------
        java.lang.RuntimeException: Should get an empty output, got:
        Could not create remote object
        attempt to add a Permission to a readonly Permissions object
        java.lang.SecurityException: attempt to add a Permission to a readonly Permissions object
        at java.security.Permissions.add(Permissions.java:126)
        at java.security.Policy$UnsupportedEmptyCollection.add(Policy.java:827)
        at sun.rmi.server.LoaderHandler.getLoaderAccessControlContext(LoaderHandler.java:1005)
        at sun.rmi.server.LoaderHandler.lookupLoader(LoaderHandler.java:881)
        at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:564)
        at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:646)
        at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:311)
        at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:255)
        at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1559)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1774)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371)
        at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
        at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:410)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:268)
        at sun.rmi.transport.Transport$1.run(Transport.java:178)
        at sun.rmi.transport.Transport$1.run(Transport.java:175)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:174)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:557)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:812)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:671)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:744)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:379)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:177)
        at sun.tools.jstatd.Jstatd.bind(Jstatd.java:57)
        at sun.tools.jstatd.Jstatd.main(Jstatd.java:143)

        at jdk.testlibrary.Asserts.error(Asserts.java:392)
        at jdk.testlibrary.Asserts.assertTrue(Asserts.java:377)
        at jdk.testlibrary.ProcessThread$ProcessRunnable.xrun(ProcessThread.java:130)
        at jdk.testlibrary.XRun.run(XRun.java:40)
        at java.lang.Thread.run(Thread.java:744)
        at jdk.testlibrary.TestThread.run(TestThread.java:126)

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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ykantser Yekaterina Kantserova (Inactive)
                  Reporter:
                  ykantser Yekaterina Kantserova (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: