How do I avoid the UnknownHostException in this line:
TransportMapping transport = new DefaultUdpTransportMapping();
I use the SNMP4J 2.2.0 API and use multiple threads (one thread for each switch)
How do I avoid the UnknownHostException in this line:
TransportMapping transport = new DefaultUdpTransportMapping();
I use the SNMP4J 2.2.0 API and use multiple threads (one thread for each switch)
OK I got this fixed by calling
TransportMapping transport = new DefaultUdpTransportMapping();
only once for each thread. With 50 threads it still works fine.
My guess is that the networkIf / OS / Java was out of available ports