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

HttpUrlConnection -JRE 1.3 fails when JRE 1.2 was fine for posting data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.3.0
    • core-libs
    • x86
    • windows_2000



      Name: rl66838 Date: 07/10/2000


      java version "1.3.0"


      We use HttpUrlConnection to post applet data to a DLL under IIS on Windows.
      When using JRE 1.2 (in Plug In 1.2) everything worked fine.

      When we upgraded to JRE 1.3 (via Plug In 1.3) the posts after the 3rd or 4th
      server round trip fail. EG Posts 1,2 and 3 are fine but then post 4 hangs. It
      hangs trying to getInputStream() on the HttpURLConnection.

      If we slow down the applet (say with printlns) it still hangs but after more
      round trips. The applet creates, writes and reads on a new HttpUrlConnection
      for each round trip. IE Keep_Alive is not used.

      Looking at the HTTP packets with a tracer it appears that the main difference
      is that JRE 1.3 is using HTTP/1.1 whereas 1.2 used HTTP/1.0. It appears that
      the web server generates 100-CONTINUE responses when it sees the client is HTTP
      1.1 and performing POSTS. These are an invitation for the client to send the
      data in the post. However the HttpURLCOnnection sends the data before these are
      sent. Who knows if these are causing the hang..

      JDK 1.3 gets :-
      #
      # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 4F533F57494E13120E43505002D4
      #
      Running similar under Java Plug In causes the applet to hang.


      (Review ID: 106678)
      ======================================================================

            michaelm Michael McMahon
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: