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

Automatic Proxy Configuration File - and latest Java releases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 6u27, 7u25
    • deploy
    • windows_xp

      A DESCRIPTION OF THE REQUEST :

      Java Plug-in 1.6.0_27
      Using JRE version 1.6.0_27-b07 Java HotSpot(TM) Client VM
      User home directory = C:\Documents and Settings\658911testba

      load: class JavaVersionDisplayApplet.class not found.
      java.lang.ClassNotFoundException: JavaVersionDisplayApplet.class
      at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Exception: java.lang.ClassNotFoundException: JavaVersionDisplayApplet.class

      We have an automatic proxy config which uses the myIpAddress for example below:

         var workstation_ip = myIpAddress;
          if (isInNet(workstation_ip, " 10.64.128.0 " , " 255.255.128.0 " ) ||
          isInNet(workstation_ip, " 10.65.160.0 " , " 255.255.224.0 " ) ||
      isInNet(workstation_ip, " 10.65.192.0 " , " 255.255.192.0 " ) ||
          isInNet(workstation_ip, " 10.66.224.0 " , " 255.255.224.0 " ) ||
          isInNet(workstation_ip, " 10.67.32.0 " , " 255.255.224.0 " ) ||
          isInNet(workstation_ip, " 10.67.100.0 " , " 255.255.252.0 " ) ||
          isInNet(workstation_ip, " 10.67.104.0 " , " 255.255.248.0 " ) ||
          isInNet(workstation_ip, " 10.67.112.0 " , " 255.255.240.0 " ) ||
          isInNet(workstation_ip, " 10.67.144.0 " , " 255.255.240.0 " ) ||
          isInNet(workstation_ip, " 10.67.160.0 " , " 255.255.248.0 " ) ||

      This determines the local IP address and provides a specific proxy depending on your location.

      I've tested and the .pac file works absolutely fine for 1.5.06. However there must be new changes that the latest Java release stops the .pac file from working.

      JUSTIFICATION :
      Works for 1.5.06 the pac file.
      Newer versions such as 1.6.27 and 1.7.25 fail.

      Javatester.org says Object doesn't support this property or method when attempting to test the version.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Java applet launches and the version is shown.
      ACTUAL -
      Object doesn't support this property or method - error message popping up for newer Java versions 1.6.27 and 1.7.25 onwards.

      ---------- BEGIN SOURCE ----------
      Using an automatic proxy configuration file:

         var workstation_ip = myIpAddress;
          if (isInNet(workstation_ip, " 10.64.128.0 " , " 255.255.128.0 " ) ||
          isInNet(workstation_ip, " 10.65.160.0 " , " 255.255.224.0 " ) ||
      isInNet(workstation_ip, " 10.65.192.0 " , " 255.255.192.0 " ) ||
          isInNet(workstation_ip, " 10.66.224.0 " , " 255.255.224.0 " ) ||
          isInNet(workstation_ip, " 10.67.32.0 " , " 255.255.224.0 " ) ||
          isInNet(workstation_ip, " 10.67.100.0 " , " 255.255.252.0 " ) ||
          isInNet(workstation_ip, " 10.67.104.0 " , " 255.255.248.0 " ) ||
          isInNet(workstation_ip, " 10.67.112.0 " , " 255.255.240.0 " ) ||
          isInNet(workstation_ip, " 10.67.144.0 " , " 255.255.240.0 " ) ||
          isInNet(workstation_ip, " 10.67.160.0 " , " 255.255.248.0 " ) ||


      ---------- END SOURCE ----------

            jijising Jitender Singh (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: