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

Not able to start OpenNMS on windows 7

0 votes
698 views
C:\Program Files\OpenNMS\bin>start.bat start

C:\Program Files\OpenNMS\bin>"C:\Program Files\Java\jdk1.8.0_77\bin\java"    -Xm
x1024m -XX:MaxMetaspaceSize=256m    -XX:+HeapDumpOnOutOfMemoryError    -DisThrea
dContextMapInheritable=true    -Dopennms.home="C:/Program Files/OpenNMS"    -Dja
va.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.auth
enticate=false    -jar "C:/Program Files/OpenNMS/lib/opennms_bootstrap.jar" star
t
[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: Unex
pected exception thrown while trying to create pinger of type class org.opennms.
netmgt.icmp.jni6.Jni6Pinger
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(Default
MBeanServerInterceptor.java:839)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBe
anException(DefaultMBeanServerInterceptor.java:852)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.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(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.opennms.bootstrap.Bootstrap$4.run(Bootstrap.java:460)
        at java.lang.Thread.run(Thread.java:745)
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(AbstractPin
gerFactory.java:85)
        at org.opennms.netmgt.icmp.AbstractPingerFactory.getInstance(AbstractPin
gerFactory.java:54)
        at org.opennms.netmgt.vmmgr.Manager.testPinger(Manager.java:243)
        at org.opennms.netmgt.vmmgr.Manager.doTestLoadLibraries(Manager.java:229
)
OpenNMS version
19.0.0-1
Java version
JDK 8
Operating system
Windows 7
PostgreSQL version
9.6
asked Feb 23 by Dilliraj (150 points)

2 Answers

0 votes
Try to use JNA pinger instead of jni or jni6

un-comment following line in $OPENNMS\etc\opennms.properties at around line 38

org.opennms.netmgt.icmp.pingerClass=org.opennms.netmgt.icmp.jna.JnaPinger

save and try to start again. I hope it will start.

Regards,

Nasir Zeeshan

http://pascalinesoft.com
answered Mar 3 by nasirzeeshan (170 points)
I have done it but now it is showing this error: "An error occurred while attempting to start the "OpenNMS:Name=Eventd" service"
0 votes
Sorry i dont have an answer but indeed i am running same configs and facing same problems
answered Mar 3 by samir K (170 points)
...