[SNMP4J] Help,

Frank Fock fock at agentpp.com
Fri Jul 27 23:15:04 CEST 2007


Hi,

When using privacy this could also be caused by a wrong
passphrase.

Best regards,
Frank

Gibbons, Sean wrote:
> What is the entire exception?  It sounds to me that your SNMP sender is
> not encoding the message correctly.  It's essentially telling you that
> the header for a section of data says the data length is too large and
> violates the ASN standards.  
>
> -----Original Message-----
> From: snmp4j-bounces at agentpp.org [mailto:snmp4j-bounces at agentpp.org] On
> Behalf Of Ge Zuo
> Sent: Thursday, July 26, 2007 10:13 PM
> To: snmp4j at agentpp.org
> Subject: [SNMP4J] Help,
>
> Hi, I have a big problemn about SNMP4J.The case is that.
> I wrote a SNMP server and listen at 162 port. and there is a SNMP
> sender, it is wrote by C or C++. I can get AuthKey, PrivKey. But when it
> run to the following code it will throw exception.
>
> if (status == SnmpConstants.SNMPv3_USM_OK) {
>         try {
>           BERInputStream scopedPduStream =
>               new BERInputStream(scopedPDU.rewind());
>          * **scopedPdu.decodeBER(scopedPduStream);
> *          sendPduHandle.setTransactionID(scopedPdu.getRequestID
> ().getValue());
>
>           // add the engine ID to the local cache.
>           addEngineID(transportAddress, securityEngineID);
>         }
>         catch (IOException iox) {
>           logger.warn("ASN.1 parse error: "+iox.getMessage());
>           if (logger.isDebugEnabled()) {
>             iox.printStackTrace();
>           }
>           CounterEvent event = new CounterEvent(this,
>                                                 SnmpConstants.
>                                                 snmpInASNParseErrs);
>           fireIncrementCounter(event);
>           return SnmpConstants.SNMP_MP_PARSE_ERROR;
>         }
>
> And, it will log "ASN.1 parse error: Wrong ASN.1 type. Not a string xx
> at position 3."  or " ASN.1 parse error: Data length > 4 byte are not
> supported".
>
> I was try to solved the problem for 4 days. but I still can found
> reason. I need you help very urgent.
>
> Pleas tell me what should i careful about. Thank you very much.
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>
> Confidentiality Notice
> This e-mail (including any attachments) is intended only for the recipients named above. It may contain confidential or privileged information and should not be read, copied or otherwise used by any other person. If you are not a named recipient, please notify the sender of that fact and delete the e-mail from your system.
>
>
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>   





More information about the SNMP4J mailing list