[jboss-jira] [JBoss JIRA] Created: (JBJMX-104) SNMP Adaptor doen't accept TruthValue according to SNMP v2

Luca Stancapiano (JIRA) jira-events at jboss.com
Wed Oct 25 09:26:41 EDT 2006


SNMP Adaptor doen't accept TruthValue according to SNMP v2
----------------------------------------------------------

                 Key: JBJMX-104
                 URL: http://jira.jboss.com/jira/browse/JBJMX-104
             Project: JBoss JMX
          Issue Type: Patch
         Environment: linux , eclipse,  I'm using jboss 4.0.4-GA
            Reporter: Luca Stancapiano


hi.......if you try to take a TruthValue using a MIB Browser , you receive nothing because org.jboss.jmx.adaptor.snmp.agent.RequestHandlerImpl doesn't manage booleans ....I added a patch into getValueFor method ( row 474 )  that manage it with good results. I think that setValue method doesn't need the same correction because joesnmp can simply to interpret TruthValue as SnmpStringOctet object

row 474:

            else if (val instanceof Boolean)
            {
            	    Boolean in = (Boolean) val;
	   ssy = new SnmpOctetString(in.toString().getBytes());
            }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list