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

Applet download fails for firewall authentication scheme basic

XMLWordPrintable

    • beta
    • generic
    • generic



        Name: yyT116575 Date: 02/23/2001


        java version "1.3.0_01"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
        Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)

        Running Java Plugin 1.3.0_01 on either Linux or Windows 2000,
        with Netscape 4.x or IE on the latter, Netscape 4.x or Mozilla
        (NS 6.x) on the former, when I try to download an applet from an
        Apache server with directory-specific password authentication
        turned on (Apache Version 1.3.12, running on Windows 2000 - with
        Jakarta-Tomcat extensions, probably not relevant), I get the
        following exception for each jar it tries to download, either on
        the console or in a popup window if "track lifecycle exceptions"
        is turned on in the plugin:


        java.lang.NullPointerException
            at
        sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:478)
            at
        sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(HttpURLConnection.java:326)
            at
        sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:788)
            at
        sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(HttpURLConnection.java:267)
            at
        sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(HttpURLConnection.java:324)
            at
        sun.plugin.cachescheme.PluginURLConnection.downloadFile(PluginURLConnection.java:137)
            at
        sun.plugin.cachescheme.PluginJarCacheHandler.downloadJarFileToCache(PluginJarCacheHandler.java:239)
            at
        sun.plugin.cachescheme.PluginJarCacheHandler.cacheHandler(PluginJarCacheHandler.java:156)
            at
        sun.plugin.cachescheme.PluginJarCacheHandler.getJarFilesPath(PluginJarCacheHandler.java:123)
            at sun.applet.AppletPanel.runLoader(AppletPanel.java:514)
            at sun.applet.AppletPanel.run(AppletPanel.java:293)
        ...


        A similar exception occurs no matter which 'cache_option' is
        used, and which of 'cache_archive' and plain 'archive' is used.
        No jars are ever downloaded (though it will re-attempt for each
        jar listed in the archive, and the applet of course doesn't
        start. Whether or not the client machine comes out to the server
        through a firewall of its own doesn't matter. I'm not set up to
        try it using a proxy.

        The message on the applet window in the browser goes something like this:

        Loading Java Applet...
        Sending events to applet. LOAD
        Sending events to applet. INIT
        Opening http://dev.polexis.com/applet/Signed/nsxapplet.jar
        Connecting http://dev.polexis.com/applet/Signed/nsxapplet.jar
        Connecting http://dev.polexis.com/applet/Signed/nsxapplet.jar with no proxy
        Firewall authentication: site=dev.polexis.com/209.132.124.118:-1, protocol=http,
        prompt=LEIF 4.0 Applet Demo, scheme=basic
        Opening http://dev.polexis.com/applet/Signed/nsxapplet.jar
        Connecting http://dev.polexis.com/applet/Signed/nsxapplet.jar with no proxy
        Opening http://dev.polexis.com/applet/Signed/nsxapplet.jar
        Connecting http://dev.polexis.com/applet/Signed/nsxapplet.jar with no proxy


        You may reproduce the problem by trying the applet at:

        http://dev.polexis.com/Test/clock.html

        Here, the username and password are both 'test'. The HTML, class
        file, and source file, taken from:

        http://192.9.48.9/products/plugin/1.3.0_01/demos/applets/Clock/example1.html

        are available at: http://dev.polexis.com/TestC/clock.html
        (Review ID: 117567)
        ======================================================================

              stanleyh Stanley Ho (Inactive)
              yyoungsunw Yung-ching Young (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: