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

Japanese SunOS: java.net.ConnectException has garbled message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.3.0
    • core-libs
    • sparc
    • solaris_8

    Description



      Name: pa48320 Date: 09/10/2002


      "uname -a" output:
      SunOS jpsun2084 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-Enterprise

      This is a Japanese Solaris machine. Using the following test code:

      package mypackage1;
      import java.net.Socket;
      public class Class1 {
        public static void main(String[] args) throws Exception {
           // Throws exception with garbled message.
           new Socket( "jpsun2084.jp.oracle.com", 23791 );
        }
      }

      This code correctly throws a ConnectException, but the message attached to the ConnectException is garbled in Japanese:

      Exception in thread "main" java.net.ConnectException: ????????????????????????????????????????????????????????????
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:355)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:142)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:129)
      at java.net.Socket.<init>(Socket.java:273)
      at java.net.Socket.<init>(Socket.java:100)
      at mypackage1.Class1.main(Class1.java:6)

      This kind of Socket code is used in an application server client which then displays the (unreadable) exception message to the user.
      (Review ID: 164302)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              jccollet Jean-Christophe Collet (Inactive)
              pallenba Peter Allenbach (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: