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

[1.3.1_09] OutOfBoundsException with -server when ToString applies to rmi.UID

XMLWordPrintable

    • 12
    • x86
    • windows_2000
    • Verified

      When we use toString for java.rmi.server.UID with -server in 1.3.1_09,
      ArrayIndexOutOfBoundsException Occurs.

      CONFIGRATION:
       OS: Windows2000(SP3, japanese)/WindowsXP(SP1, Japanese)
       JDK version: 1.3.1_09


      REPRODUCTION:
       To Compile the attached test program, Uidtest.java
       and invoke "java -server Uidtest".

       You will see the following message.

      .....

      3179c3:f71363e967:-8000
      3179c3:f71363e967:-8000
      3179c3:f71363e967:-8000
      java.lang.ArrayIndexOutOfBoundsException
              at java.lang.Long.toString(Long.java:98)
              at java.rmi.server.UID.toString(UID.java:150)
              at Uidtest.main(Uidtest.java:10)



      TEST PROGRAM:

      ==== Uitest.java =====
      import java.rmi.server.UID;

      public class Uidtest
      {
        public static final UID u = new UID();
        public static void main(String args[])
        {
           try{
             for(int i=0; i<10000; i++){
              System.out.println(u.toString());


             }
           }catch(Exception e){
             e.printStackTrace();
             System.exit(0);
           }
        }

      }

      <====


      NOTE:
       - This issue does not occur in 1.4.X and 1.5(b14).
       - This occurs with -server option, not with -client.
       - We found the Web site
           http://forum.java.sun.com/thread.jsp?forum=4&thread=226539
         but could not find out the related bugid.

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

            poonam Poonam Bajaj Parhar
            tbaba Tadayuki Baba (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: