This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hello, I was trying to communicate from a stand alone application to servlet through URL connections. but while retrieving back the information it gives me error that Stream is not seralized. where i am wrong? pl help. regards, Arun
It's very likely that the serializer of the client isn't compatible with the serializer on the server. Try transmitting the data in text format instead of using writeObject.
Customer surveys are for companies who didn't pay proper attention to begin with.
arun mahajan
Ranch Hand
Joined: Dec 07, 2001
Posts: 304
posted
0
The exact Error is: java.io.StreamCorruptedException: Caught EOFException while reading the stream h eader at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:727 ) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:165) at LogoServer.test.NewServer.readLocal(Compiled Code) at LogoServer.test.NewServer.run(NewServer.java:46)
A little more info, please: + Is the client app or the servlet throwing the exception? I don't think that when you write your objects you should cast them as (Object). See The Java Tutorial: Serializing Objects.
CJP (Certifiable Java Programmer), AMSE (Anti-Microsoft Software Engineer)<br />Author of <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi" target="_blank" rel="nofollow">Posts in the Saloon</a>
arun mahajan
Ranch Hand
Joined: Dec 07, 2001
Posts: 304
posted
0
Server application is giving me this error. In any case I will look into the given link and will let you know how much helpful it is. regards, arun