Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-6949

snmp-request utility broken from Log4J 2 changeover

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.13.4
    • Fix Version/s: 14.0.0
    • Component/s: Command-Line Tools
    • Security Level: Default (Default Security Scheme)
    • Labels:

      Description

      Running the snmp-request wrapper utility on a 1.13 system breaks thusly:

      [jeffg@hognose ~]$ /opt/opennms/bin/snmp-request
      Using SNMP4J from: /opt/opennms/lib/snmp4j-2.3.1.jar
      Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/BasicConfigurator
      at org.snmp4j.tools.console.SnmpRequest.<clinit>(SnmpRequest.java:49)
      Caused by: java.lang.ClassNotFoundException: org.apache.log4j.BasicConfigurator
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 1 more

        Attachments

          Activity

            People

            • Assignee:
              jeffg Jeff Gehlbach
              Reporter:
              jeffg Jeff Gehlbach
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: