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

Remote-Poller Client does not startup without exception.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Configuration
    • Affects Version/s: None
    • Fix Version/s: 14.0.0
    • Component/s: Remote Polling
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Linux Ubuntu 14.04

      Description

      When I start the remote poller from command line via the remote-poller.sh script and have setup one node with service ICMP to be monitored, I get the following exception during startup

      09:58:13.283 [PollerFrontEnd_Worker-2] DEBUG org.opennms.netmgt.icmp.jna.JnaIcmpMessenger - Unable to initialize IPv4 Pinger.
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_25]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_25]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_25]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_25]
      at org.opennms.jicmp.jna.NativeDatagramSocket.create(NativeDatagramSocket.java:75) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.V4Pinger.<init>(V4Pinger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaIcmpMessenger.<init>(JnaIcmpMessenger.java:57) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.initialize(JnaPinger.java:71) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.ping(JnaPinger.java:125) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.ping(JnaPinger.java:165) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.monitors.IcmpMonitor.poll(IcmpMonitor.java:103) [opennms-services-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.DefaultPollService.poll(DefaultPollService.java:85) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPoll(DefaultPollerFrontEnd.java:786) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPollService(DefaultPollerFrontEnd.java:510) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd$Running.pollService(DefaultPollerFrontEnd.java:272) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.pollService(DefaultPollerFrontEnd.java:654) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.PollJob.executeInternal(PollJob.java:50) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) [org.springframework.context.support-3.2.4.RELEASE.jar:]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.5.jar:]
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) [quartz-1.6.5.jar:]
      Caused by: com.sun.jna.LastErrorException: errno was 1
      at org.opennms.jicmp.jna.UnixV4NativeSocket.socket(Native Method) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.jicmp.jna.UnixV4NativeSocket.<init>(UnixV4NativeSocket.java:51) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      ... 20 more
      09:58:13.295 [PollerFrontEnd_Worker-2] DEBUG org.opennms.jicmp.jna.NativeDatagramSocket - org.opennms.jicmp.jna.UnixV6NativeSocket(10, 3, 58)
      09:58:13.297 [PollerFrontEnd_Worker-2] DEBUG org.opennms.netmgt.icmp.jna.JnaIcmpMessenger - Unable to initialize IPv6 Pinger.
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_25]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_25]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_25]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_25]
      at org.opennms.jicmp.jna.NativeDatagramSocket.create(NativeDatagramSocket.java:75) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.V6Pinger.<init>(V6Pinger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaIcmpMessenger.<init>(JnaIcmpMessenger.java:66) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.initialize(JnaPinger.java:71) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.ping(JnaPinger.java:125) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.ping(JnaPinger.java:165) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.monitors.IcmpMonitor.poll(IcmpMonitor.java:103) [opennms-services-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.DefaultPollService.poll(DefaultPollService.java:85) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPoll(DefaultPollerFrontEnd.java:786) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPollService(DefaultPollerFrontEnd.java:510) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd$Running.pollService(DefaultPollerFrontEnd.java:272) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.pollService(DefaultPollerFrontEnd.java:654) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.PollJob.executeInternal(PollJob.java:50) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) [org.springframework.context.support-3.2.4.RELEASE.jar:]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.5.jar:]
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) [quartz-1.6.5.jar:]
      Caused by: com.sun.jna.LastErrorException: errno was 1
      at org.opennms.jicmp.jna.UnixV6NativeSocket.socket(Native Method) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.jicmp.jna.UnixV6NativeSocket.<init>(UnixV6NativeSocket.java:53) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      ... 20 more
      09:58:13.297 [PollerFrontEnd_Worker-2] WARN org.opennms.netmgt.icmp.jna.JnaIcmpMessenger - Unable to initialize JNA ICMP messenger
      org.opennms.netmgt.icmp.IcmpMessengerIOException: IPv4 and IPv6 are not available.
      at org.opennms.netmgt.icmp.jna.JnaIcmpMessenger.<init>(JnaIcmpMessenger.java:75) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.initialize(JnaPinger.java:71) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.ping(JnaPinger.java:125) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.ping(JnaPinger.java:165) [opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.monitors.IcmpMonitor.poll(IcmpMonitor.java:103) [opennms-services-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.DefaultPollService.poll(DefaultPollService.java:85) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPoll(DefaultPollerFrontEnd.java:786) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPollService(DefaultPollerFrontEnd.java:510) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd$Running.pollService(DefaultPollerFrontEnd.java:272) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.pollService(DefaultPollerFrontEnd.java:654) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.PollJob.executeInternal(PollJob.java:50) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) [org.springframework.context.support-3.2.4.RELEASE.jar:]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.5.jar:]
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) [quartz-1.6.5.jar:]
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_25]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_25]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_25]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_25]
      at org.opennms.jicmp.jna.NativeDatagramSocket.create(NativeDatagramSocket.java:75) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.V4Pinger.<init>(V4Pinger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaIcmpMessenger.<init>(JnaIcmpMessenger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      ... 13 more
      Caused by: com.sun.jna.LastErrorException: errno was 1
      at org.opennms.jicmp.jna.UnixV4NativeSocket.socket(Native Method) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.jicmp.jna.UnixV4NativeSocket.<init>(UnixV4NativeSocket.java:51) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_25]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_25]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_25]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_25]
      at org.opennms.jicmp.jna.NativeDatagramSocket.create(NativeDatagramSocket.java:75) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.V4Pinger.<init>(V4Pinger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaIcmpMessenger.<init>(JnaIcmpMessenger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      ... 13 more
      09:58:13.298 [PollerFrontEnd_Worker-2] DEBUG org.opennms.netmgt.poller.monitors.IcmpMonitor - failed to ping /127.0.0.1
      org.opennms.netmgt.icmp.IcmpMessengerIOException: IPv4 and IPv6 are not available.
      at org.opennms.netmgt.icmp.jna.JnaIcmpMessenger.<init>(JnaIcmpMessenger.java:75) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.initialize(JnaPinger.java:71) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.ping(JnaPinger.java:125) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaPinger.ping(JnaPinger.java:165) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.monitors.IcmpMonitor.poll(IcmpMonitor.java:103) [opennms-services-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.DefaultPollService.poll(DefaultPollService.java:85) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPoll(DefaultPollerFrontEnd.java:786) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doPollService(DefaultPollerFrontEnd.java:510) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd$Running.pollService(DefaultPollerFrontEnd.java:272) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.pollService(DefaultPollerFrontEnd.java:654) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.PollJob.executeInternal(PollJob.java:50) [org.opennms.features.poller.remote-14.0.0-SNAPSHOT.jar:]
      at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) [org.springframework.context.support-3.2.4.RELEASE.jar:]
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-1.6.5.jar:]
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) [quartz-1.6.5.jar:]
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_25]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_25]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_25]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_25]
      at org.opennms.jicmp.jna.NativeDatagramSocket.create(NativeDatagramSocket.java:75) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.V4Pinger.<init>(V4Pinger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaIcmpMessenger.<init>(JnaIcmpMessenger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      ... 13 more
      Caused by: com.sun.jna.LastErrorException: errno was 1
      at org.opennms.jicmp.jna.UnixV4NativeSocket.socket(Native Method) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.jicmp.jna.UnixV4NativeSocket.<init>(UnixV4NativeSocket.java:51) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.7.0_25]
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[?:1.7.0_25]
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.7.0_25]
      at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[?:1.7.0_25]
      at org.opennms.jicmp.jna.NativeDatagramSocket.create(NativeDatagramSocket.java:75) ~[org.opennms.core.icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.V4Pinger.<init>(V4Pinger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.icmp.jna.JnaIcmpMessenger.<init>(JnaIcmpMessenger.java:57) ~[opennms-icmp-jna-14.0.0-SNAPSHOT.jar:]
      ... 13 more

        Attachments

          Activity

            People

            • Assignee:
              mvr Markus von Rüden
              Reporter:
              mvr Markus von Rüden
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: