Webstart omits cookie, resulting in EOFException in ObjectInputStream when accessing Servlets?!
Posted
by Houtman
on Stack Overflow
See other posts from Stack Overflow
or by Houtman
Published on 2010-04-01T09:18:46Z
Indexed on
2010/04/02
14:53 UTC
Read the original article
Hit count: 346
Hi,
My app. is started from both the commandline and by using an JNLP file. Im running java version 1.6.0_14
First i had the problem that i created the Buffered input and output streams in incorrect order. Found the solution here at StackOverflow . So starting from the commandline works fine now.
But when starting the app using Webstart, it ends here
java.io.EOFException
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)
at <..>remoting.thinclient.RemoteSocketChannel.<init>(RemoteSocketChannel.java:76)
I found some posts regarding similar problems;
- at ibm.com - identifies cookies problem
- at bugs.sun.com - identifies problem as solved in 6u10(b12)?
The first suggests that there is a problem in Webstart with cookies. It doesn't seem to be acknowledged as a proper java bug though..
Still i am a bit lost in the solution provided regarding the cookies.(ibm link) Can anyone expand on the cookie solution?
I can't find information on how the cookie is generated in the first place.
Many thanks.
© Stack Overflow or respective owner