• Post Reply Bookmark Topic Watch Topic
  • New Topic

Object Read problem  RSS feed

 
Ashwin Kumar
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using this code from front end(applet) to write the object to ObjectOutputStream. And I am reading the object from the servlet using Object Input stream, its actually applet-servlet communication.
I am getting java.io.EOFException in the backend when servlet reads the object.
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you flushing and closing that ObjectOutputStream later in the applet?
 
Ashwin Kumar
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I am flushing and closing that ObjectOutputStream, does this imapact ??
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has nothing at all to do with Swing/AWT/SWT/JFace that I can see. It seems to be a serialization question, so I'm going to move this to our I/O forum.
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shonak,
Maybe it's time for the classic JavaWorld article: Dodge the traps hiding in the URLConnection class.

And if we're talking about JavaWorld articles, perhaps you'd also be interested in reading my article: What's your time zone?

Good Luck,
Avi.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!