Welcome to Questions - Ask OpenNMS, where you can ask questions and receive answers from other members of the community.

OpenNMS appears to install properly but will not launch.

0 votes
31 views

c:\Program Files\OpenNMS\bin>start.bat

c:\Program Files\OpenNMS\bin>"C:\Program Files\Java\jdk1.8.0_131\bin\java"    -Xmx1024m -XX:MaxMetaspaceSize=256m    -XX:+HeapDumpOnOutOfMemoryError    -DisThreadContextMapInheritable=true    -Dopennms.home="C:/Program Files/OpenNMS"    -Djava.endorsed.dirs="C:/Program Files/OpenNMS/lib/endorsed"    -Djava.io.tmpdir="C:/Program Files/OpenNMS/data/tmp"    -Dcom.sun.management.jmxremote.port=18980    -Dcom.sun.management.jmxremote.ssl=false    -Dcom.sun.management.jmxremote.authenticate=false    -jar "C:/Program Files/OpenNMS/lib/opennms_bootstrap.jar" start
[DEBUG] System property 'opennms.library.jicmp' set to 'C:/Program Files/OpenNMS/lib\jicmp.dll.  Attempting to load jicmp library from this location.
[INFO] Successfully loaded jicmp library.
An error occurred while attempting to start the "OpenNMS:Name=TestLoadLibraries" service (class org.opennms.netmgt.vmmgr.Manager).  Shutting down and exiting.
javax.management.RuntimeMBeanException: java.lang.IllegalArgumentException: Unexpected exception thrown while trying to create pinger of type class org.opennms.netmgt.icmp.jni6.Jni6Pinger
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:839)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:852)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:821)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
        at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:278)
        at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:207)
        at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:154)
        at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:94)
        at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:173)
        at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:150)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:525)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Unexpected exception thrown while trying to create pinger of type class org.opennms.netmgt.icmp.jni6.Jni6Pinger
        at org.opennms.netmgt.icmp.AbstractPingerFactory.getInstance(AbstractPingerFactory.java:85)
        at org.opennms.netmgt.icmp.AbstractPingerFactory.getInstance(AbstractPingerFactory.java:54)
        at org.opennms.netmgt.vmmgr.Manager.testPinger(Manager.java:243)
        at org.opennms.netmgt.vmmgr.Manager.doTestLoadLibraries(Manager.java:229)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
        ... 13 more
Caused by: com.google.common.util.concurrent.ExecutionError: java.lang.UnsatisfiedLinkError: org.opennms.protocols.icmp.IcmpSocket.bindSocket(S)V
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
        at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
        at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4739)
        at org.opennms.netmgt.icmp.AbstractPingerFactory.getInstance(AbstractPingerFactory.java:70)
        ... 32 more
Caused by: java.lang.UnsatisfiedLinkError: org.opennms.protocols.icmp.IcmpSocket.bindSocket(S)V
        at org.opennms.protocols.icmp.IcmpSocket.bindSocket(Native Method)
        at org.opennms.protocols.icmp.IcmpSocket.<init>(IcmpSocket.java:127)
        at org.opennms.netmgt.icmp.jni.JniIcmpMessenger.<init>(JniIcmpMessenger.java:62)
        at org.opennms.netmgt.icmp.jni.JniPinger.initialize(JniPinger.java:143)
        at org.opennms.netmgt.icmp.jni.JniPinger.initialize4(JniPinger.java:168)
        at org.opennms.netmgt.icmp.jni6.Jni6Pinger.initialize4(Jni6Pinger.java:146)
        at org.opennms.netmgt.icmp.jni6.Jni6Pinger.setTrafficClass(Jni6Pinger.java:362)
        at org.opennms.netmgt.icmp.AbstractPingerFactory$1.call(AbstractPingerFactory.java:74)
        at org.opennms.netmgt.icmp.AbstractPingerFactory$1.call(AbstractPingerFactory.java:70)
        at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4742)
        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)
        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)
        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)
        ... 35 more

OpenNMS version
19.1.0-1
Java version
Java: 8 update 131
JDK: 1.8.0_131
JRE 1.8.0_131
Operating system
Windows Server 2016
PostgreSQL version
9.6
asked Jul 7 by paulm (170 points)

1 Answer

0 votes
Have you tried reinstalling jicmp and jicmp6?

And double-check your java paths for good measure.
answered Jul 31 by pederskz (190 points)
...