分析基于wireshark网络嗅探器的java.io.IOException

时间:2012-12-04 19:38:47

标签: java tcp wireshark

我有一个客户端正在

java.io.IOException: End of message stream

当连接抛出异常时,客户端wireshark提交了以下消息,这些消息都突出显示为灰色。

突出显示: tcp.flags& 0x02 || tcp.flags.fin == 1

297 2012-11-30 14:36:49.926004309   10.17.31.1  192.175.217.57  TCP 64  synchronet-db > zymed-zpp [FIN, ACK] Seq=5476 Ack=5648 Win=64688 Len=0

301 2012-11-30 14:36:57.932469330   192.175.217.57  10.17.31.1  TCP 66  pda-gate > synchronet-db [SYN] Seq=0 Win=65535 Len=0 MSS=1380 SACK_PERM=1
302 2012-11-30 14:36:57.932663669   10.17.31.1  192.175.217.57  TCP 66  synchronet-db > pda-gate [SYN, ACK] Seq=0 Ack=1 Win=8192 Len=0 MSS=1460 SACK_PERM=1
305 2012-11-30 14:36:58.277517580   10.17.31.1  192.175.217.57  TCP 64  synchronet-db > pda-gate [FIN, ACK] Seq=1 Ack=88 Win=64860 Len=0


309 2012-11-30 14:37:08.276802200   192.175.217.57  10.17.31.1  TCP 66  esnm-zoning > synchronet-db [SYN] Seq=0 Win=65535 Len=0 MSS=1380 SACK_PERM=1
310 2012-11-30 14:37:08.276975480   10.17.31.1  192.175.217.57  TCP 66  synchronet-db > esnm-zoning [SYN, ACK] Seq=0 Ack=1 Win=8192 Len=0 MSS=1460 SACK_PERM=1
313 2012-11-30 14:37:08.594186629   10.17.31.1  192.175.217.57  TCP 64  synchronet-db > esnm-zoning [FIN, ACK] Seq=1 Ack=88 Win=64860 Len=0
315 2012-11-30 14:37:08.594592509   192.175.217.57  10.17.31.1  TCP 64  esnm-zoning > synchronet-db [FIN, ACK] Seq=88 Ack=2 Win=65535 Len=0

317 2012-11-30 14:37:18.588553260   192.175.217.57  10.17.31.1  TCP 66  nirp > synchronet-db [SYN] Seq=0 Win=65535 Len=0 MSS=1380 SACK_PERM=1
318 2012-11-30 14:37:18.588744940   10.17.31.1  192.175.217.57  TCP 66  synchronet-db > nirp [SYN, ACK] Seq=0 Ack=1 Win=8192 Len=0 MSS=1460 SACK_PERM=1
321 2012-11-30 14:37:18.906341549   10.17.31.1  192.175.217.57  TCP 64  synchronet-db > nirp [FIN, ACK] Seq=1 Ack=88 Win=64860 Len=0
323 2012-11-30 14:37:18.906758749   192.175.217.57  10.17.31.1  TCP 64  nirp > synchronet-db [FIN, ACK] Seq=88 Ack=2 Win=65535 Len=0

知道可能导致异常的原因吗?它只是一个网络问题还是应用程序的问题?

1 个答案:

答案 0 :(得分:2)

抛出异常的类所期望的数据比FIN到达时的数据要多。这不是网络问题,而是应用协议问题。