[SNMP4J] SNMP not working with TCP

Frank Fock fock at agentpp.com
Wed Sep 21 12:50:57 CEST 2005


Hello Anmol,

Could you please post the stack trace of the NullPointerException you get
and the SNMP4J version you are using?

Thanks in advance,
Frank

Anmol Sinha wrote:

>Hello All,
> 
>I have Sucessfully written and tested the SNMP code for UDP protocol for all versions i.e. 1, 2 & 3.
>I want to have the same code to support TCP protocol also. I just replaced statement...
>DefaultUdpTransportMapping dutm = new DefaultUdpTransportMapping();
>with
>DefaultTcpTransportMapping dutm = new DefaultTcpTransportMapping();
> 
>But on execution i get Null Pointer Exception. The code works fine for UDP.
>Can someone help me, so that I know if I have missed out something or some configuration changes.
> 
>Thanks,
>Anmol
>
>		
>---------------------------------
> Yahoo! India Matrimony: Find your partner now.
>_______________________________________________
>SNMP4J mailing list
>SNMP4J at agentpp.org
>http://lists.agentpp.org/mailman/listinfo/snmp4j
>
>
>  
>


-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com





More information about the SNMP4J mailing list