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

Remote Poller throws ClassNotFound Exception when loading config

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 16.0.0
    • Fix Version/s: 15.0.2, 16.0.0
    • Component/s: Distributed Monitoring
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon 16 Bugfixes

      Description

      org.springframework.remoting.RemoteAccessException: Could not deserialize result from HTTP invoker remote service http://localhost:8980/opennms-remoting/pollerBackEnd; nested exception is java.lang.ClassNotFoundException: org.opennms.netmgt.poller.monitors.IcmpMonitor
      at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:212) ~[org.apache.servicemix.bundles.spring-web-4.0.5.RELEASE_1.jar:]
      at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:147) ~[org.apache.servicemix.bundles.spring-web-4.0.5.RELEASE_1.jar:]
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[org.apache.servicemix.bundles.spring-aop-4.0.5.RELEASE_1.jar:]
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) ~[org.apache.servicemix.bundles.spring-aop-4.0.5.RELEASE_1.jar:]
      at com.sun.proxy.$Proxy18.getServiceMonitorLocators(Unknown Source) ~[?:?]
      at org.opennms.netmgt.poller.remote.support.ServerUnreachableAdaptor.getServiceMonitorLocators(ServerUnreachableAdaptor.java:182) [org.opennms.features.poller.remote-16.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.doLoadConfig(DefaultPollerFrontEnd.java:758) [org.opennms.features.poller.remote-16.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.access$100(DefaultPollerFrontEnd.java:75) [org.opennms.features.poller.remote-16.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd$Running.onConfigChanged(DefaultPollerFrontEnd.java:287) [org.opennms.features.poller.remote-16.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd$RunningState.checkIn(DefaultPollerFrontEnd.java:208) [org.opennms.features.poller.remote-16.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd$Running.checkIn(DefaultPollerFrontEnd.java:272) [org.opennms.features.poller.remote-16.0.0-SNAPSHOT.jar:]
      at org.opennms.netmgt.poller.remote.support.DefaultPollerFrontEnd.checkConfig(DefaultPollerFrontEnd.java:445) [org.opennms.features.poller.remote-16.0.0-SNAPSHOT.jar:]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_31]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_31]
      at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_31]
      at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269) [org.apache.servicemix.bundles.spring-core-4.0.5.RELEASE_1.jar:]
      at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:322) [org.apache.servicemix.bundles.spring-context-support-4.0.5.RELEASE_1.jar:]
      at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:112) [org.apache.servicemix.bundles.spring-context-support-4.0.5.RELEASE_1.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.ClassNotFoundException: org.opennms.netmgt.poller.monitors.IcmpMonitor
      at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:602) ~[remote-poller.jar:?]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_31]
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_31]
      at org.springframework.util.ClassUtils.forName(ClassUtils.java:247) ~[org.apache.servicemix.bundles.spring-core-4.0.5.RELEASE_1.jar:]
      at org.springframework.core.ConfigurableObjectInputStream.resolveClass(ConfigurableObjectInputStream.java:75) ~[org.apache.servicemix.bundles.spring-core-4.0.5.RELEASE_1.jar:]
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1613) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1518) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readClass(ObjectInputStream.java:1484) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1334) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) ~[?:1.8.0_31]
      at java.util.ArrayList.readObject(ArrayList.java:791) ~[?:1.8.0_31]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_31]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_31]
      at java.lang.reflect.Method.invoke(Method.java:483) ~[?:1.8.0_31]
      at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1896) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1993) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1918) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1801) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1351) ~[?:1.8.0_31]
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) ~[?:1.8.0_31]
      at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.doReadRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:292) ~[org.apache.servicemix.bundles.spring-web-4.0.5.RELEASE_1.jar:]
      at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.readRemoteInvocationResult(AbstractHttpInvokerRequestExecutor.java:243) ~[org.apache.servicemix.bundles.spring-web-4.0.5.RELEASE_1.jar:]
      at org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:95) ~[org.apache.servicemix.bundles.spring-web-4.0.5.RELEASE_1.jar:]
      at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:138) ~[org.apache.servicemix.bundles.spring-web-4.0.5.RELEASE_1.jar:]
      at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:194) ~[org.apache.servicemix.bundles.spring-web-4.0.5.RELEASE_1.jar:]
      at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:176) ~[org.apache.servicemix.bundles.spring-web-4.0.5.RELEASE_1.jar:]
      at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:144) ~[org.apache.servicemix.bundles.spring-web-4.0.5.RELEASE_1.jar:]
      ... 19 more

        Attachments

          Activity

            People

            • Assignee:
              desloge Donald Desloge
              Reporter:
              desloge Donald Desloge
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: