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

TEST_BUG: 16 Regression-test java/rmi/activation/ tests fail in Solaris 10

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b29
    • CPU:
      x86, sparc
    • OS:
      solaris_10
    • Verification:
      Verified

      Description



      Name: icR10030 Date: 10/29/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b23, b24, b25
      Testbase : Regression-test
      Platform[s] : Solaris 10 (sparc), Solaris 10 (x86)
      switch/Mode :
      Falling test[s]:
      java/rmi/activation/ActivationSystem/stubClassesPermitted/StubClassesPermitted.java
      java/rmi/activation/CommandEnvironment/SetChildEnv.java
      java/rmi/dgc/VMID/CheckVMID.java
      java/rmi/registry/classPathCodebase/ClassPathCodebase.java
      java/rmi/server/RMIClassLoader/downloadArrayClass/DownloadArrayClass.java
      java/rmi/server/RMIClassLoader/loadProxyClasses/LoadProxyClasses.java
      java/rmi/server/RMIClassLoader/useCodebaseOnly/UseCodebaseOnly.java
      java/rmi/server/RMIClientSocketFactory/equalsCollision/EqualsCollision.java
      java/rmi/server/RMIServerSocketFactory/equalsCollision/EqualsCollision.java
      java/rmi/server/RMISocketFactory/useSocketFactory/unicast/UseCustomSocketFactory.java
      java/rmi/server/clientStackTrace/ClientStackTrace.java
      java/rmi/server/useCustomRef/UseCustomRef.java
      java/rmi/transport/dgcDeadLock/DGCDeadLock.java
      java/rmi/transport/httpGetClientHost/HttpGetClientHost.java
      java/rmi/transport/httpSocket/HttpSocketTest.java
      sun/rmi/server/MarshalOutputStream/marshalForeignStub/MarshalForeignStub.java


      16 Regression-test java/rmi/activation/ tests fail with JDK1.5.0-b23/b24/b25 in Solaris 10 only
      The tests pass in jdk1.5.0-b20

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/all/b24/ws/j2se/test/java/rmi/activation/ActivationSystem/stubClassesPermitted/StubClassesPermitted.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b24/regtest/sparc/sol10_sparc_cde_linux-8/workDir/test/java/rmi/activation/ActivationSystem/stubClassesPermitted/StubClassesPermitted.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)

      --- script start ---
      #!/bin/sh
      RESULT_DIR=`pwd`
      WORK_DIR=$RESULT_DIR/workDir/test
      REPORT_DIR=$RESULT_DIR/reportDir

      #Paths in Java Software:
      JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
      JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b24/binaries/solaris-sparc"
      TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b24/ws/j2se/test"

      #Alternative paths outside Java Software:
      #JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      #JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      #JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b24/binaries/solaris-sparc"
      #TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b24/ws/j2se/test"

      #Alternative paths for the NSK site:
      #JT_HOME="/net/linux-15/export/home/java/jct"
      #JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
      #JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/sparc"
      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/test"


      TESTVMOPTS="-d64"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

      TEST="java/rmi/activation/ActivationSystem/stubClassesPermitted/StubClassesPermitted.java"

      mkdir -p $WORK_DIR/scratch 2>&1
      mkdir -p $WORK_DIR/jtData 2>&1
      mkdir -p $REPORT_DIR 2>&1

      #rm $WORK_DIR/jtData/ResultCache.jtw 2>&1

      cd $WORK_DIR/scratch

      $JAVA_HOME/bin/java -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-8" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"

      --- script end ---

      Script output:
      ==============

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/237)----------
      command: compile /net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/ActivationSystem/stubClassesPermitted/../../../testlibrary/RMID.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 8.457
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/239)----------
      command: compile /net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/ActivationSystem/stubClassesPermitted/../../../testlibrary/JavaVM.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 8.512
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/243)----------
      command: compile /net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/ActivationSystem/stubClassesPermitted/../../../testlibrary/StreamPipe.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 7.471
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/250)----------
      command: compile /net/linux-15/export/home/java/regtest.tiger/test/java/rmi/activation/ActivationSystem/stubClassesPermitted/../../../testlibrary/ActivationLibrary.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 8.646
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/118)----------
      command: build CanCreateStubs
      reason: User specified action: run build CanCreateStubs
      elapsed time (seconds): 0.012
      result: Passed. No need to compile: CanCreateStubs.java

      #section:build
      ----------messages:(3/131)----------
      command: build StubClassesPermitted
      reason: User specified action: run build StubClassesPermitted
      elapsed time (seconds): 0.0020
      result: Passed. No need to compile: StubClassesPermitted.java

      #section:build
      ----------messages:(3/141)----------
      command: build StubClassesPermitted_Stub
      reason: User specified action: run build StubClassesPermitted_Stub
      elapsed time (seconds): 0.0020
      result: Passed. No need to compile: StubClassesPermitted_Stub.java

      #section:build
      ----------messages:(3/107)----------
      command: build StubClassesPermitted
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0010
      result: Passed. No need to compile: StubClassesPermitted.java

      #section:main
      ----------messages:(3/203)----------
      command: main StubClassesPermitted
      reason: User specified action: run main/othervm/policy=security.policy/secure=java.lang.SecurityManager/timeout=240 StubClassesPermitted
      elapsed time (seconds): 8.624
      ----------System.out:(0/0)----------
      ----------System.err:(47/2826)----------

      Regression test for bug/rfe 4179055

      rmid shut down
      java.lang.ExceptionInInitializerError
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:275)
      at sun.security.jca.ProviderList$6.run(ProviderList.java:653)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.security.jca.ProviderList.doLoadProvider(ProviderList.java:635)
      at sun.security.jca.ProviderList.loadProvider(ProviderList.java:615)
      at sun.security.jca.ProviderList.getProvider(ProviderList.java:371)
      at sun.security.jca.ProviderList.access$200(ProviderList.java:44)
      at sun.security.jca.ProviderList$3.get(ProviderList.java:189)
      at sun.security.jca.ProviderList$3.get(ProviderList.java:188)
      at java.util.AbstractList$Itr.next(AbstractList.java:422)
      at java.security.SecureRandom.getPrngAlgorithm(SecureRandom.java:497)
      at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:171)
      at java.security.SecureRandom.<init>(SecureRandom.java:145)
      at java.rmi.server.UID.<init>(UID.java:98)
      at java.rmi.server.ObjID.<clinit>(ObjID.java:249)
      at sun.rmi.registry.RegistryImpl.<clinit>(RegistryImpl.java:54)
      at java.rmi.registry.LocateRegistry.createRegistry(LocateRegistry.java:186)
      at StubClassesPermitted.main(StubClassesPermitted.java:57)
      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:324)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
      at java.lang.Thread.run(Thread.java:549)
      Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.security.util)
      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
      at java.security.AccessController.checkPermission(AccessController.java:401)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
      at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1503)
      at java.lang.ClassLoader$1.run(ClassLoader.java:313)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.lang.ClassLoader.checkPackageAccess(ClassLoader.java:311)
      at sun.security.pkcs11.SunPKCS11.<clinit>(SunPKCS11.java:44)
      ... 27 more

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

      STATUS:Failed.`main' threw exception: java.lang.ExceptionInInitializerError
      result: Failed. Execution failed: `main' threw exception: java.lang.ExceptionInInitializerError


      test result: Failed. Execution failed: `main' threw exception: java.lang.ExceptionInInitializerError


      Specific machine info:
      ======================
      Hostname: linux-8
      OS: Solaris 10 (sparc) (CDE)
      SunOS linux-8 5.10 s10_40 sun4u sparc SUNW,Sun-Blade-100

      Hostname: linux-18
      OS: Solaris 10 (x86) (CDE)
      SunOS linux-18 5.10 s10_42 i86pc i386 i86pc


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

      Name: vsR10238 Date: 11/19/2003



      The following regression tests failed due to this bug
      on Solaris 10/Sparc with JDK1.5.0-b28:
      java/rmi/dgc/dgcImplInsulation/DGCImplInsulation.java
      java/rmi/transport/checkAccept/CheckAccept.java

      java.lang.ExceptionInInitializerError
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      ###@###.###


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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peterjones Peter Jones
              Reporter:
              ichesunw Iche Iche (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: