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

JCK: api/java_rmi/Naming/bind.html#Bind0007 may crash Java VM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux, windows_98

      Description


      The following JCK1.3 tests fail on Linux RedHat 6.2 and Windows:
            api/java_rmi/Naming/bind.html#Bind0007
            api/java_rmi/Activation/ActivationID/Activate.html#ActivateTest0005
            api/java_rmi/Activation/Activatable/Register.html#RegisterTest0006

      The following test fails due to the same reason:
      -------------------------------test.java--------------------------------
      import java.rmi.*;
      import java.rmi.server.UnicastRemoteObject;

      interface NBind extends Remote {}

      public class test
      {
          public static void main(String [] args)
          {
              try {
                  Naming.bind("rmi://:1000/NBind7", (NBind) new NBindImpl());
              } catch (Exception e) {
                  e.printStackTrace();
              }
          }
      }
      class NBindImpl extends UnicastRemoteObject implements NBind {

          public NBindImpl() throws RemoteException {}
      }
      ---------------------------output------------------------------------------------
      [kotl@linux-14 rmi]$ javac test.java
      [kotl@linux-14 rmi]$ rmic NBindImpl
      [kotl@linux-14 rmi]$ java test
      java.rmi.ConnectException: Connection refused to host: 129.144.234.224; nested exception is:
              java.net.ConnectException: Connection refused
      java.net.ConnectException: Connection refused
      #
      # HotSpot Virtual Machine Error, Unexpected Signal 11
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 4F533F4C494E55580E435050059E
      #
      # Problematic Thread: prio=1 tid=0x0x804ebd8 nid=0x6ce1 runnable
      #
      Aborted
      [kotl@linux-14 rmi]$
      -----------------------------------------------------------------------------------


      To reproduce the bug, run script below
      You may need to set JCK and JAVA_HOME.
      -------------------------------------------------------------------------------------
      #!/bin/sh
      SWITCH="$@"
      JAVA_HOME=/usr/local/java/jdk1.4/linux-i386
      JCK=/net/orthello/home2/JCK-13
      CLASSPATH=$JCK/classes:$JCK/javatest.jar
      export CLASSPATH
      executeClass="javasoft.sqe.tests.api.java.rmi.Naming.BindTests -TestCaseID Bind0007 -RMIRegistryPort 2098"

      $JAVA_HOME/bin/java ${SWITCH} -version
      $JAVA_HOME/bin/java ${SWITCH} -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy ${executeClass}
      RESULT="$?"
      if [ $RESULT = 95 ]; then
       echo Test passed
      elif [ $RESULT = 97 ]; then
       echo Test failed
      else
       echo Result is $RESULT
      fi

      ------------------------------------ output ------------------------------------------

      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b40)
      Java HotSpot(TM) Client VM (build 1.4beta-B40, mixed mode)
      Using RMIRegistryPort: 2098
      java.rmi.ConnectException: Connection refused to host: 129.144.234.224; nested exception is:
              java.net.ConnectException: Connection refused
      java.net.ConnectException: Connection refused
      #
      # HotSpot Virtual Machine Error, Unexpected Signal 11
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 4F533F4C494E55580E435050059E
      #
      # Problematic Thread: prio=1 tid=0x0x804ebd0 nid=0x6abd runnable
      #
      Result is 134

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jcoomes John Coomes
              Reporter:
              irasunw Ira Ira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: