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

Firewall heuristic is wrong.

XMLWordPrintable

    • 1.1
    • generic
    • generic
    • Not verified

      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 ###@###.###

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: