Hey, I'm using the AdventNetSnmp-4.0.3 library and have a question.
If I start my application (accidentally) multiple times the second application just hangs at this call:
- private SnmpTrapReceiver receiver;
- ...
- //init and handle all stuff...
- ...
- receiver.setPortWithExceptionMsg(this.listenerPort);
If I read the javadoc for SnmpTrapReceiver, its written that in case of an error an exception should be thrown:
- Throws:
- SnmpException - if the socket could not be opened, or the socket could not bind to the specified local port.
but this does not happen, tha app just waits/hangs.
any idea how to solve this?
regards
michael