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

closed/java/rmi/activation/ActivationGroupDesc/useExecPolicy/UseDefaultExecPolicy.java fails on win

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 7
    • core-libs
    • x86
    • windows_xp

      Testsuite name: regression j2se
      test: closed/java/rmi/activation/ActivationGroupDesc/useExecPolicy/UseDefaultExecPolicy.java
      JDK/JRE tested: jdk 7 b107
      OS/architecture: windows-x86
      Reproducible: Always
      Reproducible on machine: kendo.russia
      Is it a platform specific regression: N
      Is it a Regression: N

      Test run log location:
      #Test Results (version 2)
      #Mon Sep 06 16:19:03 MSD 2010
      #checksum:33b8ab360041270c
      #-----testdescription-----
      $file=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\UseDefaultExecPolicy.java
      $root=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test
      author=Ann Wollrath
      keywords=bug4308570 bug4392317 closed-security othervm
      library=../../../../../../java/rmi/testlibrary
      run=USER_SPECIFIED build TestLibrary RMID ActivationLibrary TestParams\r\nUSER_SPECIFIED build ActivateMe\r\nUSER_SPECIFIED build ExecPolicy\r\nUSER_SPECIFIED build UseDefaultExecPolicy\r\nUSER_SPECIFIED build UseDefaultExecPolicy_Stub\r\nUSER_SPECIFIED main/othervm/policy=security.policy/timeout=240 UseDefaultExecPolicy\r\n
      source=UseDefaultExecPolicy.java
      title=synopsis: rmid should have a hook to screen command to be executed

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

      #-----testresult-----
      description=file:///K:/regression/workspaces/1.7.0/1.7.0b107/j2se/test/closed/java/rmi/activation/ActivationGroupDesc/useExecPolicy/UseDefaultExecPolicy.java
      end=Mon Sep 06 16:19:03 MSD 2010
      environment=regtest
      execStatus=Failed. Execution failed: `main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: java.lang.RuntimeException: rmid should not have registered group!
      javatestOS=Windows XP 5.1 (x86)
      javatestVersion=3.2.2_03
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile build compile build compile build compile build compile build main
      start=Mon Sep 06 16:18:34 MSD 2010
      test=closed/java/rmi/activation/ActivationGroupDesc/useExecPolicy/UseDefaultExecPolicy.java
      work=C:\\JQA\\regression\\7b107\\cur\\work\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy

      #section:script_messages
      ----------messages:(1/42)*----------
      JDK under test: C:\\jdk\\7b107\\jdk1.7.0

      #section:build
      ----------messages:(3/182)----------
      command: build TestLibrary RMID ActivationLibrary TestParams
      reason: User specified action: run build TestLibrary RMID ActivationLibrary TestParams
      elapsed time (seconds): 1.891
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/858)*----------
      command: compile K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\..\\..\\..\\..\\..\\..\\java\\rmi\\testlibrary\\TestLibrary.java K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\..\\..\\..\\..\\..\\..\\java\\rmi\\testlibrary\\RMID.java K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\..\\..\\..\\..\\..\\..\\java\\rmi\\testlibrary\\ActivationLibrary.java K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\..\\..\\..\\..\\..\\..\\java\\rmi\\testlibrary\\TestParams.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.719
      ----------System.out:(0/0)----------
      ----------System.err:(4/573)*----------
      Note: K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\..\\..\\..\\..\\..\\..\\java\\rmi\\testlibrary\\TestLibrary.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\..\\..\\..\\..\\..\\..\\java\\rmi\\testlibrary\\TestLibrary.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/112)----------
      command: build ActivateMe
      reason: User specified action: run build ActivateMe
      elapsed time (seconds): 1.031
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/241)*----------
      command: compile K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\ActivateMe.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.031
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/112)----------
      command: build ExecPolicy
      reason: User specified action: run build ExecPolicy
      elapsed time (seconds): 1.157
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/241)*----------
      command: compile K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\ExecPolicy.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.157
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/132)----------
      command: build UseDefaultExecPolicy
      reason: User specified action: run build UseDefaultExecPolicy
      elapsed time (seconds): 1.343
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/251)*----------
      command: compile K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\UseDefaultExecPolicy.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.343
      ----------System.out:(0/0)----------
      ----------System.err:(2/247)*----------
      Note: K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\UseDefaultExecPolicy.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/142)----------
      command: build UseDefaultExecPolicy_Stub
      reason: User specified action: run build UseDefaultExecPolicy_Stub
      elapsed time (seconds): 1.157
      result: Passed. Build successful

      #section:compile
      ----------messages:(3/256)*----------
      command: compile K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\UseDefaultExecPolicy_Stub.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 1.157
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/106)----------
      command: build UseDefaultExecPolicy
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0
      result: Passed. All files up to date

      #section:main
      ----------messages:(3/174)----------
      command: main UseDefaultExecPolicy
      reason: User specified action: run main/othervm/policy=security.policy/timeout=240 UseDefaultExecPolicy
      elapsed time (seconds): 22.031
      ----------System.out:(3/37)----------

      Regression test for bug 4308570

      ----------System.err:(65/6534)*----------
      RMID: starting rmid...
      JAVAVM: command = [C:\\jdk\\7b107\\jdk1.7.0\\jre\\bin\\java, -Djava.security.policy=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\rmid.security.policy, -Dsun.rmi.server.activation.debugExec=true, -Dtest.src=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy, -Dtest.classes=C:\\JQA\\regression\\7b107\\cur\\work\\classes\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy, -Djava.rmi.server.logLevel=v, sun.rmi.server.Activation, -log, C:\\JQA\\regression\\7b107\\cur\\work\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\UseDefaultExecPolicy\\.\\log, -port, 1098, -C-Dtest.src=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy, -C-Dtest.classes=C:\\JQA\\regression\\7b107\\cur\\work\\classes\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy]

      JAVAVM: finished starting vm.
      RMID: finished starting rmid.
      Creating activation group descriptors to accept
      Registering activation group descriptor (should succeed)
      Creating descriptor
      Registering descriptor (should succeed)
      Activate object via method call (should succeed)
      # rmid: debugExec: running "C:\\jdk\\7b107\\jdk1.7.0\\jre\\bin\\java -Djava.security.policy=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\group.security.policy -Dtest.src=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy -Dtest.classes=C:\\JQA\\regression\\7b107\\cur\\work\\classes\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy sun.rmi.server.ActivationGroupInit"
      Registering activation group descriptor (should succeed)
      # Mon Sep 06 16:18:55 MSD 2010:ExecGroup-0:err:ACTIVATION_LIBRARY: inactive successful
      Creating descriptor
      Registering descriptor (should succeed)
      Activate object via method call (should succeed)
      # rmid: debugExec: running "C:\\jdk\\7b107\\jdk1.7.0\\jre\\bin\\java -Da.b.c=match -Da.b=match -Dtest.wildcard=match -Djava.security.policy=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\group.security.policy -Dtest.src=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy -Dtest.classes=C:\\JQA\\regression\\7b107\\cur\\work\\classes\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy sun.rmi.server.ActivationGroupInit"
      Registering activation group descriptor (should succeed)
      # Mon Sep 06 16:18:56 MSD 2010:ExecGroup-1:err:ACTIVATION_LIBRARY: inactive successful
      Creating descriptor
      Registering descriptor (should succeed)
      Activate object via method call (should succeed)
      # rmid: debugExec: running "C:\\jdk\\7b107\\jdk1.7.0\\jre\\bin\\java -Da.b.c=match -Da.b=match -Dtest.wildcard=match -Djava.security.policy=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\group.security.policy -Dtest.src=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy -Dtest.classes=C:\\JQA\\regression\\7b107\\cur\\work\\classes\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy sun.rmi.server.ActivationGroupInit"
      Registering activation group descriptor (should succeed)
      # Mon Sep 06 16:18:56 MSD 2010:ExecGroup-2:err:ACTIVATION_LIBRARY: inactive successful
      Creating descriptor
      Registering descriptor (should succeed)
      Activate object via method call (should succeed)
      # rmid: debugExec: running "C:\\jdk\\7b107\\jdk1.7.0\\jre\\bin\\java -Da.b=foo -Djava.security.policy=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy\\group.security.policy -Dtest.src=K:\\regression\\workspaces\\1.7.0\\1.7.0b107\\j2se\\test\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy -Dtest.classes=C:\\JQA\\regression\\7b107\\cur\\work\\classes\\closed\\java\\rmi\\activation\\ActivationGroupDesc\\useExecPolicy sun.rmi.server.ActivationGroupInit"
      Creating activation group descriptors to reject
      Registering activation group descriptor (should fail)
      # Mon Sep 06 16:18:57 MSD 2010:ExecGroup-3:err:ACTIVATION_LIBRARY: inactive successful
      TEST FAILED:
      Test failed with: rmid should not have registered group!
      java.lang.RuntimeException: rmid should not have registered group!
      at UseDefaultExecPolicy.main(UseDefaultExecPolicy.java:138)
      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:613)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
      at java.lang.Thread.run(Thread.java:717)
      RMID: getting a reference to the activation system
      RMID: obtained a reference to the activation system
      # activation daemon shut down
      RMID: testlibrary finished shutting down rmid
      RMID: rmid exited on shutdown request
      ACTIVATION_LIBRARY: finished destroying rmid
      RMID: removing rmid's old log file...
      TestFailedException: TEST FAILED: ; nested exception is:
      java.lang.RuntimeException: rmid should not have registered group!
      java.lang.RuntimeException: rmid should not have registered group!
      at UseDefaultExecPolicy.main(UseDefaultExecPolicy.java:138)
      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:613)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
      at java.lang.Thread.run(Thread.java:717)

      JavaTest Message: Test threw exception: TestFailedException: TEST FAILED: ; nested exception is:
      java.lang.RuntimeException: rmid should not have registered group!
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: java.lang.RuntimeException: rmid should not have registered group!
      result: Failed. Execution failed: `main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: java.lang.RuntimeException: rmid should not have registered group!


      test result: Failed. Execution failed: `main' threw exception: TestFailedException: TEST FAILED: ; nested exception is: java.lang.RuntimeException: rmid should not have registered group!


      Steps to reproduce:

      [C:/JQA/regression/7b107] C:/jdk/7b107/jdk1.7.0/bin/java UseDefaultExecPolicy

      Regression test for bug 4308570

      RMID: starting rmid...
      JAVAVM: command = [C:\jdk\7b107\jdk1.7.0\jre\bin\java, -Djava.security.policy=.\
      rmid.security.policy, -Dsun.rmi.server.activation.debugExec=true, -Dtest.src=.,
      -Dtest.classes=., -Djava.rmi.server.logLevel=v, sun.rmi.server.Activation, -log,
       C:\JQA\regression\7b107\.\log, -port, 1098, -C-Dtest.src=., -C-Dtest.classes=.]


      JAVAVM: finished starting vm.
      RMID: finished starting rmid.
      Creating activation group descriptors to accept
      Registering activation group descriptor (should succeed)
      Creating descriptor
      Registering descriptor (should succeed)
      Activate object via method call (should succeed)
      # rmid: debugExec: running "C:\jdk\7b107\jdk1.7.0\jre\bin\java -Djava.security.p
      olicy=.\group.security.policy -Dtest.src=. -Dtest.classes=. sun.rmi.server.Activ
      ationGroupInit"
      Registering activation group descriptor (should succeed)
      # Mon Sep 06 18:26:17 MSD 2010:ExecGroup-0:err:ACTIVATION_LIBRARY: inactive succ
      essful
      Creating descriptor
      Registering descriptor (should succeed)
      Activate object via method call (should succeed)
      # rmid: debugExec: running "C:\jdk\7b107\jdk1.7.0\jre\bin\java -Da.b.c=match -Da
      .b=match -Dtest.wildcard=match -Djava.security.policy=.\group.security.policy -D
      test.src=. -Dtest.classes=. sun.rmi.server.ActivationGroupInit"
      Registering activation group descriptor (should succeed)
      # Mon Sep 06 18:26:18 MSD 2010:ExecGroup-1:err:ACTIVATION_LIBRARY: inactive succ
      essful
      Creating descriptor
      Registering descriptor (should succeed)
      ....
      MID: removing rmid's old log file...
      Exception in thread "main" TestFailedException: TEST FAILED: ; nested exception
      is:
              java.lang.RuntimeException: rmid should not have registered group!
      java.lang.RuntimeException: rmid should not have registered group!
              at UseDefaultExecPolicy.main(UseDefaultExecPolicy.java:138)

            Unassigned Unassigned
            ikobzaresunw Ivan Kobzarev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: