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

opennms-remoting webapp fails due to org.opennms.core.soa classloader issue

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 15.0.1
    • Fix Version/s: 15.0.2
    • Component/s: Remote Polling
    • Security Level: Default (Default Security Scheme)
    • Labels:
    • Environment:
      Any 15.0.1 system (I've checked four different ones, including demo and barbrady)

      Description

      Requesting /opennms-remoting results in a 503 Service Unavailable. This means that remote pollers cannot register or communicate with this version of OpenNMS.

      I found the following exception stack trace in jetty-server.log on one affected system:

      2015-02-12 15:35:26,751 WARN  [Main] o.e.j.w.WebAppContext: Failed startup of context o.e.j.w.WebAppContext{/opennms-remoting,file:/usr/share/opennms/jetty-webapps/opennms-remoting/},/usr/share/opennms/jetty-webapps/opennms-remoting
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serviceRegistryExporter' defined in ServletContext resource [/WEB-INF/applicationContext-serviceRegistryRemoting.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.opennms.core.soa.support.DefaultServiceRegistry' to required type 'org.opennms.core.soa.ServiceRegistry' for property 'serviceRegistry'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.opennms.core.soa.support.DefaultServiceRegistry] to required type [org.opennms.core.soa.ServiceRegistry] for property 'serviceRegistry': no matching editors or conversion strategy found
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) ~[org.apache.servicemix.bundles.spring-context-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) ~[org.apache.servicemix.bundles.spring-context-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410) ~[org.apache.servicemix.bundles.spring-web-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306) ~[org.apache.servicemix.bundles.spring-web-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) ~[org.apache.servicemix.bundles.spring-web-3.2.9.RELEASE_1.jar:?]
      	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:775) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424) ~[jetty-servlet-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:767) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) ~[jetty-servlet-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1252) ~[jetty-webapp-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:710) ~[jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494) [jetty-webapp-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:39) [jetty-deploy-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:186) [jetty-deploy-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:494) [jetty-deploy-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:141) [jetty-deploy-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.deploy.providers.ScanningAppProvider.fileAdded(ScanningAppProvider.java:145) [jetty-deploy-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.deploy.providers.ScanningAppProvider$1.fileAdded(ScanningAppProvider.java:56) [jetty-deploy-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:609) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:337) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.deploy.providers.ScanningAppProvider.doStart(ScanningAppProvider.java:121) [jetty-deploy-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.deploy.DeploymentManager.startAppProvider(DeploymentManager.java:555) [jetty-deploy-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.deploy.DeploymentManager.doStart(DeploymentManager.java:230) [jetty-deploy-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58) [jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96) [jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.server.Server.doStart(Server.java:280) [jetty-server-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.10.v20130312.jar:8.1.10.v20130312]
      	at org.opennms.netmgt.jetty.JettyServer.onStart(JettyServer.java:95) [opennms-jetty-15.0.1.jar:?]
      	at org.opennms.netmgt.daemon.AbstractServiceDaemon$4.run(AbstractServiceDaemon.java:297) [org.opennms.core.daemon-15.0.1.jar:?]
      	at org.opennms.core.logging.Logging.withPrefix(Logging.java:66) [org.opennms.core.logging-15.0.1.jar:?]
      	at org.opennms.netmgt.daemon.AbstractServiceDaemon.start(AbstractServiceDaemon.java:290) [org.opennms.core.daemon-15.0.1.jar:?]
      	at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon$2.run(AbstractSpringContextJmxServiceDaemon.java:128) [org.opennms.core.daemon-15.0.1.jar:?]
      	at org.opennms.core.logging.Logging.withPrefix(Logging.java:66) [org.opennms.core.logging-15.0.1.jar:?]
      	at org.opennms.netmgt.daemon.AbstractSpringContextJmxServiceDaemon.start(AbstractSpringContextJmxServiceDaemon.java:118) [org.opennms.core.daemon-15.0.1.jar:?]
      	at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_45]
      	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_45]
      	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75) [?:1.7.0_45]
      	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_45]
      	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_45]
      	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279) [?:1.7.0_45]
      	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) [?:1.7.0_45]
      	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) [?:1.7.0_45]
      	at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) [?:1.7.0_45]
      	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) [?:1.7.0_45]
      	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) [?:1.7.0_45]
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [?:1.7.0_45]
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [?:1.7.0_45]
      	at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:278) [org.opennms.core.daemon-15.0.1.jar:?]
      	at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:207) [org.opennms.core.daemon-15.0.1.jar:?]
      	at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:248) [org.opennms.core.daemon-15.0.1.jar:?]
      	at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:107) [org.opennms.core.daemon-15.0.1.jar:?]
      	at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:183) [org.opennms.core.daemon-15.0.1.jar:?]
      	at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:162) [org.opennms.core.daemon-15.0.1.jar:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_45]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[?:1.7.0_45]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_45]
      	at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_45]
      	at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:366) [opennms_bootstrap.jar:?]
      	at java.lang.Thread.run(Thread.java:744) [?:1.7.0_45]
      Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.opennms.core.soa.support.DefaultServiceRegistry' to required type 'org.opennms.core.soa.ServiceRegistry' for property 'serviceRegistry'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.opennms.core.soa.support.DefaultServiceRegistry] to required type [org.opennms.core.soa.ServiceRegistry] for property 'serviceRegistry': no matching editors or conversion strategy found
      	at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:463) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:494) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:488) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1463) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1422) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	... 74 more
      Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.opennms.core.soa.support.DefaultServiceRegistry] to required type [org.opennms.core.soa.ServiceRegistry] for property 'serviceRegistry': no matching editors or conversion strategy found
      	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:267) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:448) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:494) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:488) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1463) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1422) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) ~[org.apache.servicemix.bundles.spring-beans-3.2.9.RELEASE_1.jar:?]
      	... 74 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                seth Seth Leger
                Reporter:
                jeffg Jeff Gehlbach
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: