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.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
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)
Author of Posts in the Saloon