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

Starting opennms.service triggers numerous exceptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 23.0.4
    • Fix Version/s: None
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Ubuntu disco
      openjdk-8-jre-headless: 8u212-b01-1
      /etc/default/opennms JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java

      Description

      # systemctl start opennms 
      Job for opennms.service failed because the control process exited with error code. See "systemctl status opennms.service" and "journalctl -xe" for details. 
      # systemctl status opennms
      ‚óŹ opennms.service - LSB: OpenNMS - Open Source Network Management System
         Loaded: loaded (/etc/init.d/opennms; generated)
         Active: failed (Result: exit-code) since Fri 2019-04-05 16:14:45 CEST; 21s ago
           Docs: man:systemd-sysv-generator(8)
        Process: 18998 ExecStart=/etc/init.d/opennms start (code=exited, status=1/FAILURE)Apr 05 16:14:45 samsung5-ubuntu opennms[18998]: Caused by: java.lang.ClassNotFoundException: com.sun.tools.attach.AttachNotSupportedException
      Apr 05 16:14:45 samsung5-ubuntu opennms[18998]:         at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      Apr 05 16:14:45 samsung5-ubuntu opennms[18998]:         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      Apr 05 16:14:45 samsung5-ubuntu opennms[18998]:         at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:817)
      Apr 05 16:14:45 samsung5-ubuntu opennms[18998]:         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      Apr 05 16:14:45 samsung5-ubuntu opennms[18998]:         ... 8 more
      Apr 05 16:14:45 samsung5-ubuntu opennms[18998]: Unknown value return from doStatus: 1
      Apr 05 16:14:45 samsung5-ubuntu systemd[1]: opennms.service: Control process exited, code=exited, status=1/FAILURE
      Apr 05 16:14:45 samsung5-ubuntu systemd[1]: opennms.service: Failed with result 'exit-code'.
      Apr 05 16:14:45 samsung5-ubuntu systemd[1]: Failed to start LSB: OpenNMS - Open Source Network Management System.
      
      # grep opennms /var/log/syslog
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: Starting Open Network Management System: opennmsException in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/attach/AttachNotSupportedException
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at java.lang.Class.getDeclaredMethods0(Native Method)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at java.lang.Class.getMethod0(Class.java:3018)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at java.lang.Class.getMethod(Class.java:1784)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at org.opennms.bootstrap.Bootstrap.executeClass(Bootstrap.java:519)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at org.opennms.bootstrap.Bootstrap.executeClass(Bootstrap.java:481)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at org.opennms.bootstrap.Bootstrap.main(Bootstrap.java:477)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: Caused by: java.lang.ClassNotFoundException: com.sun.tools.attach.AttachNotSupportedException
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:817)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: #011... 8 more
      Apr  5 16:14:45 samsung5-ubuntu opennms[18998]: Unknown value return from doStatus: 1
      Apr  5 16:14:45 samsung5-ubuntu systemd[1]: opennms.service: Control process exited, code=exited, status=1/FAILURE
      Apr  5 16:14:45 samsung5-ubuntu systemd[1]: opennms.service: Failed with result 'exit-code'.
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              actionmystique jean-christophe manciot
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: