• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ObjectOutputStream,readObject I/O error

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I've seen postings for this problem everywhere but no real solution so I decided to give it a shot.
I'm using readObject to deserialize an object sent through a socket. The first read blocks and works fine but once the first object is read from the stream the readObject starts throwing "java.io.EOFException: Expecting code" which is not really a problem because I can just catch it, but it is the fact that readObject stops blocking and begins to spin. Also once the EOFException is thrown connection to the server is lost.
I've tried everything I could think of short of standing on my head, if anyone one has any suggestions I'd be very appreciative.
Client Code:

*code tags added for easier reading-- Jason*
[ March 23, 2004: Message edited by: jason adam ]
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic