For an unbound and bound DatagramSocket, the call to the receive method (with SO_TIMEOUT disabled) unexpectedly ended with the following Exception.
java.net.SocketException: socket closed
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
at java.net.DatagramSocket.receive(DatagramSocket.java:712)
Also, I did not explicitly close the socket.
This error occurred in Windows Server 2008 using JRE-6.
Even when calling DatagramSocket.close (), it was also not possible to recreate the new DatagramSocket with the same socket address.
Could you tell me the possible causes of the error?
source
share