EOFException in ObjectInputStream thrown accessing Servlet. Only for Webstart ?!

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/01 9:23 UTC
Read the original article Hit count: 291

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;

The latter 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. Can anyone expand on the cookie solution?

Many thanks.

© Stack Overflow or respective owner

Related posts about java

Related posts about objectinputstream