N
Nigel Wade
I've got rather a peculiar error with my applet client/server comms. The
applet opens a Socket and attempts to read some objects sent back by the
server. However, the applet throws a StreamCorruptedException.
I've managed to narrow the problem down to the GregorianCalendar class. If I
send a GregorianCalendar object, the *next* object I try to read will throw
the exception.
Now for the really intersting bit. If I set a policy of
grant {
permission java.security.AllPermission;
}
it works perfectly.
Does anyone have any idea why de-serializing a GregorianCalendar in an
applet might cause this problem?
The version of Java I'm using is 1.4.1.
applet opens a Socket and attempts to read some objects sent back by the
server. However, the applet throws a StreamCorruptedException.
I've managed to narrow the problem down to the GregorianCalendar class. If I
send a GregorianCalendar object, the *next* object I try to read will throw
the exception.
Now for the really intersting bit. If I set a policy of
grant {
permission java.security.AllPermission;
}
it works perfectly.
Does anyone have any idea why de-serializing a GregorianCalendar in an
applet might cause this problem?
The version of Java I'm using is 1.4.1.