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

Java_Plugin Https POST method unable to handle the response from the Server.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.2
    • 1.2.1
    • deploy
    • 1.2.2
    • generic
    • generic

      When we are trying to post a file using the Java_Plugin HTTPS POST method, it is posting at the Java Web Server. But we get a Null Pointer Exception when we are trying to get the response from the server, to know whether the server has completed the post operation or not.

      In simple words Java Plug-In throws a Null Pointer Exception for HTTPs POST response.

      Configuration:

      Windows 95 / 98, Plug-In 1.2.1.i & g build, Netscape & Internet Explorer.

      How To Reproduce the Bug:

      Attached are a Test Applet (post_only_Test.java, post_only_Test.class and post_only_Test.html) and Test Servlet (post_only_Servlet.java and post_only_Servlet.class) which are used for this Test Case.

      1. Start the Web Server and copy the post_only_Test.class into the "servlets"
      directory of the Web Server Root.
      2.Install the Plug-In and run the Applet in the "post_only_Test.html" file on a
      Windows Platfrom and any Browser.

      The test case try to do a HTTPs POST on a Servlet and reads its response.

      The set up is already done on "kittest". To run the test case, access the
      following URL "https://kittest:7070/~vmanda/https/tests/updates/post_only_Test.html"

      You'll the following output on the Java Console:

      Java(TM) Plug-in: Version 1.2.1.i
      Using JRE version 1.2.2
      User home directory = H:\PC
      Proxy Configuration: Manual Configuration
             Proxy:http=webcache-cup:8080;ftp=webcache-cup:8080;gopher=webcache-cup:8080
      Proxy Overrides: *localhost

      JAR cache enabled.
      java.lang.NullPointerException
                      at java.io.Reader.<init>(Reader.java:66)
                      at java.io.InputStreamReader.<init>(InputStreamReader.java:85)
                      at java.io.InputStreamReader.<init>(InputStreamReader.java:59)
                      at Get.start(Get.java, Compiled Code)
                      at sun.applet.AppletPanel.run(AppletPanel.java:347)
                      at java.lang.Thread.run(Thread.java:479)

            stanleyh Stanley Ho (Inactive)
            vmandasunw Vijayram Manda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: