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

Firewall heuristic is wrong.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      From ###@###.### Thu Jun 15 10:43 PDT 1995
      Date: Thu, 15 Jun 95 10:22:55 PDT
      From: "Stephen Peters" <###@###.###>
      To: hotjava-interest@java
      Subject: HotJava doesn't work through firewalls!
      X-Orcl-Application: In-Reply-To:UNX01.US.ORACLE.COM:###@###.###'s message of 14-Jun-95 23:28
      Mime-Version: 1.0
      Precedence: bulk
      X-Info: To unsubscribe, send 'unsubscribe' to ###@###.###


      Well, actually, I lied, it does. Maybe it just doesn't work through *some*
      firewalls.
       
      When you pull HotJava down pristine from java.sun.com, accessing sites through
      the Oracle firewall fails with a message reading something like
      "net.SocketException: No route to Host".
       
      The problem appears to be that HotJava is expecting one kind of exception
      (unknown host) when it can't find a given machine, and instead is getting the
      above exception. Since HotJava only decides to route the HTTP traffic through
      the firewall proxy if the exception is caught, getting the wrong exception
      causes the error. I've made a temporary fix which tries the firewall if it
      receives *any* exception in accessing the host.
       
      This problem can be fixed by changing line 117 in
      classrc/net/www/http/HttpClient.java from
       
                     } catch (UnknownHostException e) {
       
      to
       
                     } catch (Exception e) {
       
       
      and then compiling to get the new HttpClient.class.
       
      - - - - - - - - - - - - - - - - - - - - - - - - - -
      Stephen Peters "Yo ho ho and a bottle of suds / It's a pirate's
      Oracle Corporation life we choose / No we don't want a bucket of
      Sun SBU Product Lead blood / Just a Cup is all we can use...
      (415) 506-4934 [work] -- Jimmy Buffett, "Take It Back"
      PGP Fingerprint: BF A4 D0 CF 89 25 08 AE 0C A5 CC DD 34 3D 6A C6

      -
      Note to Sun employees: this is an EXTERNAL mailing list!
      Info: send 'help' to ###@###.###

        Attachments

          Activity

            People

            Assignee:
            mmuellersunw Marianne Mueller (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: