-
Bug
-
Resolution: Fixed
-
P2
-
1.3.0
-
beta
-
x86
-
windows_nt
Name: yyT116575 Date: 01/05/2001
Java(TM) Plug-in: Version 1.3.0_01
Using JRE version 1.3.0_01 Java HotSpot(TM) Client VM
User home directory = C:\WINNT\Profiles\dab
Proxy Configuration: no proxy
applet code:
this snippet is setting up the connection to the servlet. A userId is placed
into the parameters vector, which is shipped into the GetServlet. The error
occurs at the writeObject() (I think).
The error response is:
Exception occurred: java.io.StreamCorruptedException: InputStream does not
contain a serialized object
Exception occurred: java.lang.NullPointerException
This code works fine without HTTPS. (the getAppServerName() method in this
snippet resolves to "https://12.2.51.10"
java.net.URL initURL = new java.net.URL(getAppServerName() + "/servlets/ErmGetServlet");
java.net.URLConnection servletConnection = initURL.openConnection();
servletConnection.setDoOutput(true);
servletConnection.setDoInput(true);
servletConnection.setUseCaches(false);
servletConnection.setRequestProperty("Content-Type", "application/octet-stream");
ObjectOutputStream oos = new
ObjectOutputStream(servletConnection.getOutputStream());
Vector initParam = new Vector();
initParam.addElement(userId);
oos.writeObject(initParam);
oos.flush();
oos.close();
ObjectInputStream oois = new java.io.ObjectInputStream(servletConnection.getInputStream());
Object obj = oois.readObject();
Vector v = (Vector)obj;
RequestResult resp = (RequestResult)v.elementAt(0);
if (!resp.completedSuccessfully()) {
System.out.println("Error retrieving parameter data");
String msg = "Error retrieving parameter data!\n " + "The following error occured: \n" + resp.getMessage();
JFrame f = new JFrame();
JOptionPane.showMessageDialog(f, msg, "Retrieve Error", JOptionPane.ERROR_MESSAGE);
exitReturn();
}
else {
System.out.println("Model retrieved");
}
..........
this problem is remarkably similar to a March 1999 bug> ID # 4225493 where this
was reportedly fixed in 1.2.2, kestrel. However I have tried this with plug-ins
1.2.2_006, 1.2.2_007, 1.3, 1.3.0_01 with the same results in every case.
(Review ID: 114600)
======================================================================
- relates to
-
JDK-4225493 POST requests in EA Plugin 1.2.1.k from Netscape is not working
- Resolved