[SNMP4J] Unsupported address class (transport mapping)
Frank Fock
fock at agentpp.com
Wed Jun 14 23:49:37 CEST 2006
Hi Carlos,
If you use a UDP transport mapping with your Snmp class
then you only can use UpdAddress instances for your
target.
Best regards,
Frank
Carlos Vicente wrote:
> Greetings,
>
>
>
> I've just recently started my way into SNMP protocol (newbie as a newbie
> can get :-P). After some reading, I created a MIB file, and had a quick
> look through libsmi library (since the agents will be implemented in C
> or C++).
>
> Since my main task is to create a JAVA manager, I got started with
> SNMP4J, and I'm already having some problems.
>
>
>
> After calling ():
>
>
>
> Snmp snmp = new Snmp(new DefaultUdpTransportMapping());
>
>
>
> --> ResponseEvent response = snmp.send(pdu, target); <--
>
>
>
> The following exception is thrown:
>
>
>
> org.snmp4j.transport.UnsupportedAddressClassException: Unsupported
> address class (transport mapping): org.snmp4j.smi.TcpAddress
>
>
>
>
>
> I'm using TcpAddress class to resolve a DN. After the name is resolved I
> just pass the IP address to the CommunityTarget instance through
> setAddress. I've also tried to use IpAddress, with the same result
> (can't add a port number with this class but just wanted to check the
> results).
>
>
>
> This is probably too obvious for you guys, but I would appreciate any
> help on the subject.
>
>
>
> Thanks in advance,
>
>
>
> Carlos Vicente
>
>
>
>
>
> _______________________________________________
> 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