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

The appln which is tried to connect yahoo and google throws UnknownHostException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 6, 7
    • deploy
    • generic, x86
    • generic, windows

      The appln which is tried to connect yahoo and google throws UnknownHostException

      Tested OS : windows
      Tested Build : PIT 6U1 B1

      Steps to reproduce :
      1. Install PIT 6u1 b1
      2. In the Java control panel, enable java console
      3. Launch the following appln : http://web-east.east/www/tests/1.7.0/6475003/test.jnlp
      It will spawn two threads to connect to two internet sites (google and yahoo).
      After accepting the security dialog, the UnknownHostException is displayed in the java console

      java.net.UnknownHostException: www.yahoo.com
              at java.net.InetAddress.getAllByName0(Unknown Source)
              at java.net.InetAddress.getAllByName0(Unknown Source)
      .
      .
      .
      at java.net.HttpURLConnection.getResponseCode(Unknown Source)
              at test.run(test.java:26)
              at java.lang.Thread.run(Unknown Source)
      network: Connecting http://www.yahoo.com/index.html with cookie "B=ahhruld2nf8n3&b=3&s=5i;
      .
      .
      URL: http://www.yahoo.com/index.html responseCode: 200

            dgu Dennis Gu (Inactive)
            mnarayansunw Malathi Narayanan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: