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

JCK-runtime-6.0: api/java_net/distributed/index.html#NetDistributed fails under plugin

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b90
    • Introduced In Version:
      6
    • Resolved In Build:
      b99
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      JCK : JCK 6.0 b29
      J2SE : FAIL - since JDK_6.0_b90
                       PASS - JDK_6.0_b89
      Platform[s] : seems to be all

      The test fails only under plugin.

      Failing tests:
      ===================
      api/java_net/distributed/index.html#NetDistributed[distributed2004]

      Jtr file:
      ===================
      attached

      How to reproduce:
      ===================
      1) Use attached script. Open "start.sh" for edit and specify correct paths for the following parameters:
      JRE_HOME, JCK_HOME, SYSTEM_OS_ARCH and BROWSER.
      2) Specify correct JDK plugin for the browser - make $BROWSER_HOME/plugins/libjavaplugin_oji.so symbolic link to $JDK_HOME/jre/

      Test output:
      ===================
      ----------messages:(1/270)----------
      command: com.sun.javatest.agent.ActiveAgentCommand com.sun.jck.lib.ExecJCKTestSameJVMCmd -loadDir /net/stt-13/export1/stt/jck_promotions/6.0/beta/b27/binaries/JCK-runtime-60/classes javasoft.sqe.tests.api.java.net.distributed.NetDistributedTests -msgSwitch stt-07:56484
      ----------out1:(20/731)----------
      distributed2001: Passed. OKAY
      distributed2002: Passed. OKAY
      distributed2003: Passed. OKAY
      distributed2004: Failed. Unexpected SecurityException: java.security.AccessControlException: access denied (java.io.FilePermission /tmp/jar_cache11908.tmp read)
      distributed2005: Passed. OKAY
      ...
      distributed2020: Passed. OKAY
      ----------out2:(63/4480)----------
      Executing command via localhost,port=56437,localport=1944
      ****************** 2001 *****************
      ****************** 2002 *****************
      ****************** 2003 *****************
      ****************** 2004 *****************
      java.security.AccessControlException: access denied (java.io.FilePermission /tmp/jar_cache11908.tmp read)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
      at java.security.AccessController.checkPermission(AccessController.java:546)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
      at java.io.File.exists(File.java:731)
      at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(CachedJarURLConnection.java:108)
      at javasoft.sqe.tests.api.java.net.distributed.NetDistributedTests$4.run(NetDistributedTests.java:715)
      at javasoft.sqe.jck.lib.SecurityTestRunner.runTestWithTCKSM(SecurityTestRunner.java:278)
      at javasoft.sqe.jck.lib.SecurityTestRunner.runTestWithPermissions(SecurityTestRunner.java:235)
      at javasoft.sqe.jck.lib.SecurityTestRunner.runTestWithAllPermissions(SecurityTestRunner.java:157)
      at javasoft.sqe.jck.lib.AllPermissionSM.testRun(AllPermissionSM.java:86)
      at javasoft.sqe.tests.api.java.net.distributed.NetDistributedTests.distributed2004(NetDistributedTests.java:740)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:589)
      at javasoft.sqe.javatest.lib.TestCases.invokeTestCases(TestCases.java:173)
      at com.sun.jck.lib.DistributedMultiTest.go(DistributedMultiTest.java:57)
      at javasoft.sqe.tests.api.java.net.distributed.NetDistributedTests.go(NetDistributedTests.java:77)
      at com.sun.jck.lib.DistributedTest.run(DistributedTest.java:71)
      at com.sun.jck.lib.DistributedMultiTest.run(DistributedMultiTest.java:35)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:589)
      at com.sun.jck.lib.ExecJCKTestSameJVMCmd$Version2Test.execute(ExecJCKTestSameJVMCmd.java:461)
      at com.sun.jck.lib.ExecJCKTestSameJVMCmd$StandardTest.run(ExecJCKTestSameJVMCmd.java:373)
      at com.sun.jck.lib.ExecJCKTestSameJVMCmd.execute(ExecJCKTestSameJVMCmd.java:241)
      at com.sun.jck.lib.ExecJCKTestSameJVMCmd.run(ExecJCKTestSameJVMCmd.java:142)
      at com.sun.javatest.agent.Agent$Task.executeCommand(Agent.java:818)
      at com.sun.javatest.agent.Agent$Task.execute(Agent.java:749)
      at com.sun.javatest.agent.Agent$Task.handleRequest(Agent.java:610)
      at com.sun.javatest.agent.Agent.handleRequestsUntilClosed(Agent.java:377)
      at com.sun.javatest.agent.Agent.access$000(Agent.java:41)
      at com.sun.javatest.agent.Agent$1.run(Agent.java:253)
      at java.lang.Thread.run(Thread.java:619)
      ****************** 2005 *****************
      ****************** 2006 *****************
      ...
      ****************** 2016 *****************
      correctly failed to setup test: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1024- listen,resolve)
      ****************** 2017 *****************
      correctly failed to setup test: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1024- listen,resolve)
      ****************** 2018 *****************
      correctly failed to setup test: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1024- listen,resolve)
      ****************** 2019 *****************
      correctly failed to setup test: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1024- listen,resolve)
      ****************** 2020 *****************
      correctly failed to setup test: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1024- listen,resolve)
      result: Failed. test cases: 20; passed: 19; failed: 1; first test case failure: distributed2004

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ngthomas Thomas Ng (Inactive)
              Reporter:
              aishmetysunw Arthur Ishmetyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: