[SNMP4J] Agent/ProxyForwarder - Invalid response message when wrong contextEngineID is used

Senthil Muniswamy senthil.muniswamy at gmail.com
Mon Jun 26 23:03:04 CEST 2006


Frank,

If a wrong contextEngineID is mentioned, the Agent w/ ProxyForwarder sends
an invalid response message. Actually, the ScopedPDU contains wrong type
(Integer32) for the contextEngineID.

java.io.IOException: Wrong ASN.1 type. Not a string: 2 at position 3
    at org.snmp4j.asn1.BER.decodeString(BER.java:706)
    at org.snmp4j.smi.OctetString.decodeBER(OctetString.java:155)
    at org.snmp4j.ScopedPDU.decodeBER(ScopedPDU.java:145)
    at org.snmp4j.mp.MPv3.prepareDataElements(MPv3.java:986)
    at org.snmp4j.MessageDispatcherImpl.dispatchMessage(
MessageDispatcherImpl.java:242)
    at org.snmp4j.MessageDispatcherImpl.processMessage(
MessageDispatcherImpl.java:325)
    at org.snmp4j.MessageDispatcherImpl.processMessage(
MessageDispatcherImpl.java:286)
    at org.snmp4j.transport.AbstractTransportMapping.fireProcessMessage(
AbstractTransportMapping.java:83)
    at org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread.run(
DefaultUdpTransportMapping.java:283)

Thanks,
Senthil



More information about the SNMP4J mailing list