Low-Level API Error Messages

 

The following are the error messages that you could get while using AdventNet SNMP low-level API.

 

S.No. Error Message When it occurs

1

Cannot bind to address:

This is set when UnknownHostException is thrown because of the wrong local Address in SnmpSession or UDPProtocolOptions. This message is displayed when the open() method of SnmpSession is called after setting the local address using the method setLocalAddresses(String) of SnmpSession or UDPProtocolOptions.

2

Transport provider not configured

This is set when the protocol used is other than IP and the SnmpTransportProvider interface is not implemented and the class name is not specified in the "snmpTransport.config" file. This message is displayed if an error occurs in reading that file or creating an instance of the class specified. This error occurs when the open method of SnmpSession is called.

3

Error in open :

This is set when there is problem in the open method after successful instantiation of the class specified in the snmpTransport.config" file.

4

Applet not supported

This is set when the open method of SnmpSession is called with the GCJ_FLAG set to a value other that zero.

Note: This GCJ_FLAG can be set in the snmp.properties file present in the "classes/com/adventnet/snmp/snmp2" directory.

5

No remote IP address specified.

This is set when the send or syncSend method of SnmpSession is called without setting the remote host either on the PDU or on the session.

6

Session Remote Host Unknown.

This is set when the send or syncSend method of SnmpSession is called by setting an invalid remote host.

7

Error in sending pdu :

This is set while sending SNMP requests from applets. This error occurs when unable to write to the TCP Socket.

8

IO error sending PDU.

This is set when unable to send the SNMP packet. This error occurs in applications and not applets.

9

Invalid OID Format:

This is set when the OID specified is not correct.

10

Timed out

This is set when the call to access database have timed out. This error message occurs in applets, while calling one of the four database methods of SASClient.

11

Parse Error: unrecognized SNMP message

This is set if the SNMP message cannot be parsed.

 

Note: The strings in the "Error Message" column are exact. They may be appended by or prepended by other strings based on the type of exceptions.

 

 

 



Copyright © 1996-2006, AdventNet Inc. All Rights Reserved.