java.io.StreamCorruptedException: invalid stream header: 7371007E

后端 未结 3 457
萌比男神i
萌比男神i 2020-11-30 12:30

I have a client Server application which communicate using objects.
when I send only one object from the client to server all works well.
when I attempt to send seve

3条回答
  •  自闭症患者
    2020-11-30 13:07

    when I send only one object from the client to server all works well.

    when I attempt to send several objects one after another on the same stream I get StreamCorruptedException.

    Actually, your client code is writing one object to the server and reading multiple objects from the server. And there is nothing on the server side that is writing the objects that the client is trying to read.

提交回复
热议问题