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

Remote Poller: NPE while attempting to start RemotePollerNG

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 27.0.0
    • Fix Version/s: 27.0.0
    • Component/s: Remote Polling
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Tried to restart an OpenNMS instance which has applications (and its services and locations) defined. It seems that the rrd-repository is not set correctly.

      An error occurred while attempting to start the "OpenNMS:Name=RemotePollerNG" service (class org.opennms.netmgt.daemon.SimpleSpringContextJmxServiceDaemon).  Shutting down and exiting.
      javax.management.RuntimeMBeanException: java.lang.NullPointerException
      	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:277)
      	at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:206)
      	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:527)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at java.io.File.<init>(File.java:277)
      	at org.opennms.netmgt.remotepollerng.RemotePollerd.lambda$filterService$3(RemotePollerd.java:226)
      	at org.opennms.netmgt.dao.hibernate.DefaultSessionUtils.withManualFlush(DefaultSessionUtils.java:81)
      	at org.opennms.netmgt.dao.hibernate.DefaultSessionUtils.lambda$withReadOnlyTransaction$1(DefaultSessionUtils.java:73)
      	at org.opennms.netmgt.dao.hibernate.DefaultSessionUtils.executeWithTransactionDefinition(DefaultSessionUtils.java:95)
      	at org.opennms.netmgt.dao.hibernate.DefaultSessionUtils.withReadOnlyTransaction(DefaultSessionUtils.java:73)
      	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.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      	at com.sun.proxy.$Proxy184.withReadOnlyTransaction(Unknown Source)
      	at org.opennms.netmgt.remotepollerng.RemotePollerd.filterService(RemotePollerd.java:180)
      	at org.opennms.netmgt.remotepollerng.ServiceTracker.start(ServiceTracker.java:87)
      	at org.opennms.netmgt.remotepollerng.RemotePollerd.start(RemotePollerd.java:305)
      	at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon$2.run(AbstractSpringContextJmxServiceDaemon.java:128)
      	at org.opennms.core.logging.Logging.withPrefix(Logging.java:71)
      	at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.start(AbstractSpringContextJmxServiceDaemon.java:118)
      	at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
      	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.GeneratedMethodAccessor5.invoke(Unknown Source)
      	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
      
      

        Attachments

          Activity

            People

            Assignee:
            cpape Christian Pape
            Reporter:
            cpape Christian Pape
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration