Discussion:
[opennms-discuss] opennms fails to start
d***@orange.com
2017-05-15 12:01:20 UTC
Permalink
Hello,

After upgrading to last opennms version (19.1.0-1), the application fails to start with following error in output log.
IPv6 is disabled from kernel.
Do you have any hints ?

Thank you,


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: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(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: java.util.concurrent.ExecutionException: java.net.SocketException: System error creating ICMPv6 socket (97, Address family not supported by protocol)
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:137)
at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2348)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2320)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)
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.net.SocketException: System error creating ICMPv6 socket (97, Address family not supported by protocol)
at org.opennms.protocols.icmp6.ICMPv6Socket.initSocket(Native Method)
at org.opennms.protocols.icmp6.ICMPv6Socket.<init>(ICMPv6Socket.java:127)
at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.<init>(Jni6IcmpMessenger.java:65)
at org.opennms.netmgt.icmp.jni6.Jni6Pinger.initialize6(Jni6Pinger.java:161)
at org.opennms.netmgt.icmp.jni6.Jni6Pinger.setTrafficClass(Jni6Pinger.java:363)
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)
... 37 more

Daniel Anton


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
paisano
2017-05-15 13:00:58 UTC
Permalink
I had to enable only ICMPv4 in opennms.properties to circumvent this error:

# To use the JNI ICMPv4/ICMPv6 implementation, use the following property:
#org.opennms.netmgt.icmp.pingerClass=org.opennms.netmgt.icmp.jni6.Jni6Pinger
#
# To use the JNI ICMPv4 interface only, use the following property:
org.opennms.netmgt.icmp.pingerClass=org.opennms.netmgt.icmp.jni.JniPinger
#
# To use the JNA ICMPv4/ICMPv6 implementation, use the following property:
#org.opennms.netmgt.icmp.pingerClass=org.opennms.netmgt.icmp.jna.JnaPinger

Hope this helps.



--
View this message in context: http://opennms.530661.n2.nabble.com/opennms-fails-to-start-tp7595548p7595549.html
Sent from the OpenNMS - discuss mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
Ronny Trommer
2017-05-15 13:07:08 UTC
Permalink
It seems like you run an operating system without IPv6 capabilities?
Post by d***@orange.com
(97, Address family not supported by protocol)
What is your hardware and operating system you use?
Post by d***@orange.com
Hello,
After upgrading to last opennms version (19.1.0-1), the application fails to start with following error in output log.
IPv6 is disabled from kernel.
Do you have any hints ?
Thank you,
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: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(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: java.util.concurrent.ExecutionException: java.net.SocketException: System error creating ICMPv6 socket (97, Address family not supported by protocol)
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:137)
at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2348)
at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2320)
at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)
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.net.SocketException: System error creating ICMPv6 socket (97, Address family not supported by protocol)
at org.opennms.protocols.icmp6.ICMPv6Socket.initSocket(Native Method)
at org.opennms.protocols.icmp6.ICMPv6Socket.<init>(ICMPv6Socket.java:127)
at org.opennms.netmgt.icmp.jni6.Jni6IcmpMessenger.<init>(Jni6IcmpMessenger.java:65)
at org.opennms.netmgt.icmp.jni6.Jni6Pinger.initialize6(Jni6Pinger.java:161)
at org.opennms.netmgt.icmp.jni6.Jni6Pinger.setTrafficClass(Jni6Pinger.java:363)
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)
... 37 more
Daniel Anton
_________________________________________________________________________________________________________________________
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org <http://slashdot.org/>! http://sdm.link/slashdot_______________________________________________ <http://sdm.link/slashdot_______________________________________________>
http://www.opennms.org/index.php/Mailing_List_FAQ <http://www.opennms.org/index.php/Mailing_List_FAQ>
opennms-discuss mailing list
https://lists.sourceforge.net/lists/listinfo/opennms-discuss <https://lists.sourceforge.net/lists/listinfo/opennms-discuss>
Benjamin Reed
2017-05-15 13:31:08 UTC
Permalink
Post by d***@orange.com
java.lang.IllegalArgumentException: Unexpected exception thrown while
trying to create pinger of type class
org.opennms.netmgt.icmp.jni6.Jni6Pinger
Do you have any logs *above* that related to AbstractPingerFactory or
BestMatchPingerFactory? Looking at the code, the only way this seems to
be able to happen is if you have explicitly chosen a pinger (Jni6Pinger)
but then that pinger is not compatible with your system...
Benjamin Reed
2017-05-15 13:39:18 UTC
Permalink
Post by Benjamin Reed
Do you have any logs *above* that related to AbstractPingerFactory or
BestMatchPingerFactory? Looking at the code, the only way this seems
to be able to happen is if you have explicitly chosen a pinger
(Jni6Pinger) but then that pinger is not compatible with your system...
(Note, it appears that you're hitting
https://issues.opennms.org/browse/NMS-9331 which I've been trying to fix
but am unable to reproduce myself, so far...)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

Loading...