[SNMP4J] DefaultTcpTransportMapping: socket disconnect causes timeouts for all
Frank Fock
fock at agentpp.com
Tue Jun 3 23:33:36 CEST 2014
Hi Ladd,
The exception is logged but catched and does not have a side effect on other
connections (as promised by the Java API). I would suspect a JRE or OS
bug here
(although I cannot exempt an error in SNMP4J at this point).
What JRE version and operating system (incl. version) are you using?
Best regards,
Frank
Am 03.06.2014 15:59, schrieb Ladd:
>> Hi Ladd,
>>
>> Have you set SNMP4J.setForwardRuntimeExceptions(true)?
>> Then you can set it to "false" to ignore runtime exceptions.
>> Otherwise, please send me the full stack trace of the exception.
>>
>> Best regards,
>> Frank
>>
> Frank,
>
> The exception I'm seeing is when one of the agents is stopped. This is when
> the other still-running agent begins timing out. The exception when the
> first agent is stopped looks like this:
>
> 2014-06-03 09:29:46,496 [31mWARN [0;39m
> [32m[o.s.t.DefaultTcpTransportMapping][0;39m - java.io.IOException: An
> existing connection was forcibly closed by the remote host
> 2014-06-03 09:29:46,506 [31mWARN [0;39m [32m[Transport: tcp-snmp][0;39m
> - java.io.IOException: An existing connection was forcibly closed by the
> remote host
> at sun.nio.ch.SocketDispatcher.read0(Native Method)
> at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
> at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198)
> at sun.nio.ch.IOUtil.read(IOUtil.java:171)
> at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:245)
> at
> DefaultTcpTransportMapping$ServerThread.readMessage
> (DefaultTcpTransportMapping.java:983)
> at
> DefaultTcpTransportMapping$ServerThread.run
> (DefaultTcpTransportMapping.java:811)
> at java.lang.Thread.run(Thread.java:662)
>
> I'm not seeing exceptions related to the second agent timing out. Those are
> indicated by the getTable's response TableEvent.getStatus().
>
> Thanks!
>
> - Ladd
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j
--
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax: +49 7024 8688231
More information about the SNMP4J
mailing list