• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.StreamCorruptedException : invalid stream header: 4348414C

 
harry ganguly
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm writing one client server program.
Client snippet goes like this:


Server Snippet goes like this:

when running this locally in localhost it's working properly where as in remote server, it;s throwing following error:
java.io.StreamCorruptedException: invalid stream header: 4348414C

Please help...
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is not clear to me how your client and server communicate since I see the client handling ObjectInput and ObjectOutput streams but the server code for handling this is missing! What is clear is that 4348414C is the ASCII characters "CHAL" so I am guessing that the server is sending an error message as characters and not a Java Object.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!