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

OpenNMS GoogleMaps geo-enocder no longer functioning and creates a 503 error in UI

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9.8
    • Fix Version/s: 1.9.90
    • Component/s: Remote Polling
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      Here is the exception. Also, would prefer for this exception to not cause a 503 error failing the entire UI but, just the Distributed Map, perhaps.

      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geocoder' defined in ServletContext resource [/WEB-INF/applicationContext-remote-pol
      ler.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.opennms.features.pol
      ler.remote.gwt.server.geocoding.GoogleMapsGeocoder]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMeth
      od
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
      at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
      at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:644)
      at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:229)
      at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1158)
      at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:587)
      at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:436)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
      at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:226)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
      at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:93)
      at org.eclipse.jetty.server.Server.doStart(Server.java:253)
      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
      at org.opennms.netmgt.jetty.JettyServer.onStart(JettyServer.java:234)
      at org.opennms.netmgt.daemon.AbstractServiceDaemon.start(AbstractServiceDaemon.java:423)
      at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.start(AbstractSpringContextJmxServiceDaemon.java:123)
      at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
      at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
      at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
      at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
      at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
      at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:338)
      at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:261)
      at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:266)
      at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:137)
      at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:202)
      at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:174)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:352)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.opennms.features.poller.remote.gwt.server.geocoding.GoogleMapsGeocode
      r]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
      ... 49 more
      Caused by: java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod
      at org.opennms.features.poller.remote.gwt.server.geocoding.GoogleMapsGeocoder.<init>(GoogleMapsGeocoder.java:30)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
      ... 51 more
      Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpMethod
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:627)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      ... 57 more

        Attachments

          Activity

            People

            • Assignee:
              ranger Benjamin Reed
              Reporter:
              david David Hustace
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: