[snmp] Re: fix in SnmpContextv3Pool
tausif tausif
tausifk at rediffmail.com
Tue Aug 29 13:03:55 BST 2006
Dear Birgit,
I am using snmp5_1 version.
The scenario was, for snmpget- V3, i created first the SnmpContextv3Pool
context = new SnmpContextv3Pool(host, port, bindAddr, socketType);
//the host is not reachable / does not exists.
//seting of all other values like user name etc properly done!
now in my start() method, the NullPointerException is thrown which is wrong. It must be "java.io.IOException: Cannot find host "
The reason was, In addPdu(Pdu pdu) throws java.io.IOException, PduException, IllegalArgumentException{
method, the java.io.IOException is caught (at line 408), but never thrown back. we must throw it back to the client.
Hope i made it clear now.
Thanks & regards
Tausif
---------------------- you wrote -------------------------
Dear Tausif,
You have to give us a bit more information;
Which version are you using?
Please give us the exception dump or error message that is produced (and
which you want to pass on).
I assume this message is generated by setting the debug level? If so,
which level. If not, how do you know about this message.
Furthermore, I would appreciate if you could subscribe to our mailing
list and post your email (including the info above) to the mailing list.
This gives you a better chance of a reply.
See
http://snmp.westhawk.co.uk/mailman/listinfo/snmp
Cheers, Birgit
On Tue, Aug 29, 2006 at 05:06:04PM +0530, tausif wrote:
> Hi,
>
> first of all, it is great api for snmp.
>
> In addPdu(Pdu pdu) throws java.io.IOException, PduException,
> IllegalArgumentException{
> method, the java.io.IOException is caught (at line 408), but never
> thrown back. we must throw it back to
> the client.
>
> comments please!
>
> Tausif
>
--
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
More information about the snmp
mailing list