I have a listening port on my server that I'm connecting to using a Java class and the Socket interface, i.e.
Socket mySocket = new Socket(host,port);
Why do I get the CancelledKeyException few times a day? Should I do something about it? Is my code wrong?
Updated the code with the solution to fix the problem:
In a desktop network application upon sending data to DatagramSocket sometimes the exceptiption occur:
java.net.SocketException: No buffer space available (maximum connections reached?): Datagram send failed
I am using an Apache CXF client, running in a Windows Java 1.6.0_29-b11 VM to connect to an IBM mainframe (I believe it is zSeries), and invoking a SOAP Web Service ...