Problems deserializing objects with Microsoft VM

I am getting a 30 second delay when deserializing objects: using Java 1.1.8 ObjectOutputStream.defaultReadObject() causes a 30 second delay. This only happens on Internet Explorer using the Microsoft Virtual Machine.Any ideas what's causing this delay?
[267 byte] By [javamaniam] at [2007-9-30 8:51:12]
# 1

HERE'S THE CODE ..

URLConnection con = servlet.openConnection();

con.setDoInput(true);

con.setDoOutput(true);

con.setUseCaches(false);

con.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");

ObjectOutputStream out = new ObjectOutputStream(SecurityToolkit.openOutputStream(con));

int numObjects = objs.length;

for (int x = 0; x < numObjects; x++) {

out.writeObject(objs[x]);

}

out.flush();

out.close();

InputStream inStream = SecurityToolkit.openInputStream(con);

ObjectInputStream in = new ObjectInputStream(inStream);

//

return in;

So .. this is the ObjectInputStream returned and objects are read off this stream. But reading hangs for 30 seconds and then starts reading again.

javamaniam at 2007-7-2 20:15:51 > top of Java-index,Administration Tools,Sun Connection...
# 2
Can you try BufferInputStream/BufferedOutputStreame.g.new ObjectOutputStream(new BufferedOutputStream(SecurityToolkit.openOutputStream(con)));
Peter-Lawrey at 2007-7-2 20:15:51 > top of Java-index,Administration Tools,Sun Connection...