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

POST requests in EA Plugin 1.2.1.k from Netscape is not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.2.2
    • 1.2.1
    • deploy
    • 1.2.2
    • x86
    • windows_nt



        Name: sg39081 Date: 03/30/99


        The client is JDK1.2 and the server is JDK1.1

        Server side: servlet running in a Weblogic Tengah server, listening for requests on SSL port 7002. The doPost method
        of the servlet prints something when is gets called.

        Client Side: Applet is downloaded over https from the same weblogic server. The url is https://myserver.com/applet.html
        The applet runs in the 1.2.1k (Early Access)
        version of the plugin. This particular problem happens only in
        Netscape Communicator After the applet is downloaded,
        it starts communicating to the servlet in POST requests.

        The program is too big, but this is an edited piece which
        causes the error (I am trying to do http tunneling where I serialize the message object):

          URL url = new URL("https://myserver.com:7002/myServlet");
          URLConnection conn = (URLConnection) url.openConnection();
          conn.setDoOutput(true);
          conn.setUseCaches(false);

          conn.setRequestProperty("Content-type",
                    "MyType" + message.getClass().getName());

          OutputStream outStream = conn.getOutputStream();

           out = new ObjectOutputStream(outStream);
          if (isJDK12) {
            out.useProtocolVersion(ObjectStreamConstants.PROTOCOL_VERSION_1);
          }
             
              out.flush();
              out.writeObject(message);
              out.flush();
              out.close();
          
             // receive response
             try {

             InputStream inTemp = conn.getInputStream();
             in = new ObjectInputStream(inTemp);
             
             Object obj = in.readObject();
             } catch (IOException ie) {ie.printStackTrace();};

             if (obj == null) throw new MyException();
         
        --ERRORS:

        1) The servlet's post method never get called. (this worked
        fine in IE, and in netscape with previous plugins)
        2) When I try to do
        in.readObject() I get the following IO exception:

        java.io.StreamCorruptedException: InputStream does not contain a serialized object

        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:731)

        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:165)

        at com.randomwalk.knightsecurities.eknight.client.EKnightComm.receiveResponse(EKnightComm.java:161)

        at com.randomwalk.knightsecurities.eknight.client.EKnightComm.processRequest(EKnightComm.java:223)

        at com.randomwalk.knightsecurities.eknight.client.EKnightComm.login(EKnightComm.java:267)

        at com.randomwalk.knightsecurities.eknight.client.EKnightClient.login(EKnightClient.java:140)

        at com.randomwalk.knightsecurities.eknight.client.LoginDialog.actionPerformed(LoginDialog.java:200)

        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1066)

        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1101)

        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)

        javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)

        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:204)

        at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)

        at java.awt.Component.processMouseEvent(Component.java:3146)

        at java.awt.Component.processEvent(Component.java:2985)

        at java.awt.Container.processEvent(Container.java:991)

        at java.awt.Component.dispatchEventImpl(Component.java:2380)

        at java.awt.Container.dispatchEventImpl(Container.java:1036)

        at java.awt.Component.dispatchEvent(Component.java:2293)

        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2039)

        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1816)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1719)

        at java.awt.Container.dispatchEventImpl(Container.java:1023)

        at java.awt.Component.dispatchEvent(Component.java:2293)

        at java.awt.EventQueue.dispatchEvent(EventQueue.java:275)

        at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:96)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:87)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:78)
        (Review ID: 56012)
        ======================================================================

              stanleyh Stanley Ho (Inactive)
              sgoodsunw Sheri Good (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: