Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

invalid stream header

Status
Not open for further replies.

Belkorin

Technical User
Jul 15, 2004
1
US
I am trying to run a chat server, but any time I try to connect to it I get the following error and the server shuts down. Does anyone have any ideas about what could be causing this to happen?

java.io.StreamCorruptedException: invalid stream header
at java.io_ObjectInputStream.readStreamHeader(ObjectInputStream.java:737)
at java.io_ObjectInputStream.<init>(ObjectInputStream.java:253)
at org.datashare.TcpSocket.<init>(Unknown Source)
at org.datashare.TcpSocketServer.run(Unknown Source)
Debug Network removing/closing socket Socket-TCP-24.213.62.37:42422-24.213.62.39:1163
Error GeneralStatus ******* DataShareServer:Lost our commandStatusPort listening socket!!!!!!
Debug GeneralStatus Shutting down all connections and Threads...
Debug Network removing socket server TCP:42422
Error GeneralStatus ******* DataShareServer:Lost our commandStatusPort listening socket!!!!!!
java.lang.NullPointerException
at org.datashare.TcpSocket.stopThreadAndCloseSocket(Unknown Source)
at org.datashare.TcpSocket.<init>(Unknown Source)
at org.datashare.TcpSocketServer.run(Unknown Source)
Debug Network Thread DataShare.SocketServer.TCP:42422 has stopped
shutdownHook()...
 
What I think is that you have not set up the sockets you are using properly. Try to print the data of the socket before you are trying to connect.

It also could be the result of a network card or cable that is not working properly. But then you would not be able to post this message.

Hope it helps.
Sjakie

----------
Yes, the world is full of strange people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top