views:

46

answers:

1

I get that exception bellow once in a minute or so. I was getting it very frequently before, but when I changed the parameter in linux allowing more connections this error appears less frequently but is constantly appearing. App is distributed in nature, and makes large number of connections.

IOException (udp) with (some real IP address):57759
    java.net.SocketException: Operation not permitted
            at sun.nio.ch.DatagramChannelImpl.send0(Native Method)
            at sun.nio.ch.DatagramChannelImpl.sendFromNativeBuffer(DatagramChannelImpl.java:301)
            at sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:265)
            at sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:250)

            ... some other classess I cant put here :) 
A: 

There isn't really any such thing as a connection in UDP. There's a shortcut 'connect' method that does certain things to the local API, but it has no effect on the network. Did you mean 'sends a large number of datagrams'?

EJP