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

checknsc script throws class not found exception for LoggerFactory

    XMLWordPrintable

    Details

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

      Description

      Tried to run the checknsc script and it throws a NoClassDefFoundError for the LoggerFactory.

      An error occurred: An error occurred creating a new NsclientManager.
      
      org/slf4j/LoggerFactory
      java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
      	at org.opennms.protocols.nsclient.NsclientManager.<clinit>(NsclientManager.java:72)
      	at org.opennms.protocols.nsclient.CheckNsc.main(CheckNsc.java:108)
      Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      	... 2 more
      Exception in thread "main" java.lang.NullPointerException
      	at org.opennms.protocols.nsclient.CheckNsc.main(CheckNsc.java:115)
      

        Attachments

          Activity

            People

            • Assignee:
              indigo Ronny Trommer
              Reporter:
              indigo Ronny Trommer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: