ObjectInput and Output streams are not being accepted by client/server

前端 未结 2 1559
-上瘾入骨i
-上瘾入骨i 2020-12-12 08:15

I have one program with two serverside processes. One server just sends an ArrayList to client. The other server first takes a string from client and then finds proper recor

2条回答
  •  佛祖请我去吃肉
    2020-12-12 08:46

    You need to create and flush() the ObjectOutputStream first, or it will get stuck trying to read the header, the other end hasn't sent because its waiting to read your header.

提交回复
热议问题