[SNMP4J] bug on persistence!

Quarantotto Elena elena.quarantotto at telecomitalia.it
Wed Jul 11 12:49:00 CEST 2007


Hi all!
Probably we have found a bug on module persistence.
In class org.snmp4j.agent.io.MOServerPersistence there is a private
method buildCache that builds a map which contains objects to be saved.
This method is called inside saveData method. The map returned has
OctectString keys, which represents context names. But when map is used
into the saveData, the access key is the object Context (not the
OctetString contained in it). So the method get on the map returns null
and there is nothing to be saved.
Changing access on the serializableMO map it works!!!
 
bye
Elena
--------------------------------------------------------------------

CONFIDENTIALITY NOTICE

This message and its attachments are addressed solely to the persons above and may contain confidential information. If you have received the message in error, be informed that any use of the content hereof is prohibited. Please return it immediately to the sender and delete the message. Should you have any questions, please contact us by replying to webmaster at telecomitalia.it.

        Thank you

                                        www.telecomitalia.it

--------------------------------------------------------------------
                        



More information about the SNMP4J mailing list