posted 14 years ago
Hi,
I am running some code and I get this exception:
I/O Socket is closed
java.net.SocketException: Socket is closed
at java.net.Socket.getOutputStream(Socket.java:808)
at iitm.donlab.mpp.transport.IsoClient.sendMessage(IsoClient.java:282)
at iitm.donlab.mpp.manager.IsoMsgHandler.performActionPush(IsoMsgHandler.java:568)
at iitm.donlab.mpp.transport.IsoClient$ProcessorClient.run(IsoClient.java:175)
at java.lang.Thread.run(Thread.java:619)
The snippet of code is as follows:
I get sock.isConnected() as true and sock.inInputShutdown() and sock.isOutputShutdown() both as false. sick.isBound() is also true.
Could you please tell me the reasons I could get the error at this line "isoMsg.write(sock.getOutputStream(), 2);" even when the socket is connected and the streams are not shut down.