[SNMP4J] what does protocol family unavailable exception mean
Frank Fock
fock at agentpp.com
Fri Feb 28 09:20:35 CET 2014
Hi Prathib,
May be the information available from the following site could help too:
http://diario.beerensalat.info/2008/10/12/java_and_ipv6_on_bsd.html
According to them, setting a socket option |IPV6_V6ONLY=0| could help on
dual stack OS to enable shared IPv4/v6 support as it should be supported
by Java.
The local IP of the transport mapping must be 0.0.0.0 (INADDR_ANY) in
any case.
Hope this helps.
Best regards,
Frank
Am 28.02.2014 08:48, schrieb Prathib Kumar:
> Hi Frank,
>
> I guess We have also hit upon the similar issue a while back with the
> mix of IPV4 and IPV6 devices in our system
> (http://markmail.org/message/dimkbvvewacon7vu) and solution which we
> went was, bind to both IPV4 and IPV6 ips on the local system separatly
> and use the separate transport mapping for IPV4 and IPV6 devices
>
> But yesterday, we have seen even that was not helping. I m yet to
> root cause the actual failure.
>
> However, if you get any clues on this problem, it would be great.
>
> Regards
> Prathib Kumar.
>
>
>
> On Fri, Feb 28, 2014 at 1:07 PM, Frank Fock <fock at agentpp.com
> <mailto:fock at agentpp.com>> wrote:
>
> Hi Syed,
>
> The exception might be thrown because of mixing IPv4 and IPv6 on
> the same
> TransportMapping which is not supported by some operating systems.
>
> In SNMP4J 2.2.6 the root cause will be included in the
> MessageException. In SNMP4J 1.x
> you may enable the debugging log level to get the original stack
> trace printed to the
> console.
>
> Best regards,
> Frank
>
>
> Am 25.02.2014 18 <tel:25.02.2014%2018>:23, schrieb Ali, Syed F:
>
> Hi,
>
> I'm using snmp4j 1.11.1 in our application and occasionally,
> we're seeing this exception encountered when trying to send an
> SNMP get request:
> org.snmp4j.MessageException: Protocol family unavailable
> at
> org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:485)[195:org.snmp4j:1.11.1]
> at
> org.snmp4j.util.MultiThreadedMessageDispatcher.sendPdu(MultiThreadedMessageDispatcher.java:146)[195:org.snmp4j:1.11.1]
> at
> org.snmp4j.Snmp.sendMessage(Snmp.java:1082)[195:org.snmp4j:1.11.1]
> at
> org.snmp4j.Snmp.send(Snmp.java:971)[195:org.snmp4j:1.11.1]
> at
> org.snmp4j.Snmp.send(Snmp.java:955)[195:org.snmp4j:1.11.1]
> ...
> ... (stack truncated)
>
> I looked at the snmp4j code for 1.11.1 and it basically
> catches an IOException and wraps only the message from the
> exception into the "MessageException" as below:
> Line 485: throw new MessageException(iox.getMessage());
>
>
> 1) Any idea what would cause the IOException to be thrown?
>
>
> 2) If the code set the IOException as the cause of the
> MessageException, we could unwind the whole exception cause
> chain, and find out the root cause of the IOException, like:
> throw new MessageException( iox );
>
> Thanks,
> Syed
>
> Syed F. Ali
> CA Technologies
>
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org <mailto: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 <tel:%2B49%207024%208688230>
> Fax: +49 7024 8688231 <tel:%2B49%207024%208688231>
>
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org <mailto: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