When I do this I get a new error:

java.io.StreamCorruptedException: InputStream does not contain a serialized
object
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.<init>(Unknown Source)

But the Object I try to send is a String and this is surely a  serialized
object.


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: Per Hubinette <[EMAIL PROTECTED]>; Per Hubinette
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, December 13, 1999 11:05 PM
Subject: Re: Applet-servlet java.io.StreamCorruptedException


> On Tue, 14 Dec 1999, Per Hubinette wrote:
>
> This could mean you didn't set the content type on server-side in the
response
>
> header
>  > java.io.StreamCorruptedException: Caught EOFException while reading the
> stream header
>
> In the servlet's service method try setting it
> something like
>
> resp.setContentType("application/x-www-urlencoding");
> before actually sending anything
>
> I'm not sure this is your problem's cause but it is worth the try.Good
luck.
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to