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

Class not found exception in web.log for the GeocoderServiceManager

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • 29.0.1, Meridian-2021.1.9, Meridian-2021.1.10
    • Meridian-2021.1.14
    • None
    • Security Level: Default (Default Security Scheme)
    • Debian 11: Installation from our Debian package repository.
      Cent 8: Install from Yum package repository.
    • 1
    • Horizon 22 - Feb 2 - Feb 16, Horizon 22 - Feb 16 - Mar 2, Horizon 22 - March 16 - 30, Horizon 22 - March 30 - Apr 13
    • Backlog
    • 934

    Description

      When you install OpenNMS Horizon and start it up you get the following exception in our Jetty web.log:

      2021-12-07 16:42:10,925 WARN  [FelixStartLevel] o.o.c.s.s.OnmsOSGiBridgeActivator: OnmsOSGiBridgeActivator: Unable to find class used
       by exported OSGi service
      java.lang.ClassNotFoundException: org.opennms.features.geocoder.GeocoderServiceManager
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:476) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
      	at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:904) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
      	at java.lang.Class.forName0(Native Method) ~[?:?]
      	at java.lang.Class.forName(Class.java:315) ~[?:?]
      	at org.opennms.core.soa.support.OnmsOSGiBridgeActivator.findClasses(OnmsOSGiBridgeActivator.java:214) ~[org.opennms.core.soa-29.0.1.jar:?]
      	at org.opennms.core.soa.support.OnmsOSGiBridgeActivator.registerWithOnmsRegistry(OnmsOSGiBridgeActivator.java:171) [org.opennms.core.soa-29.0.1.jar:?]
      	at org.opennms.core.soa.support.OnmsOSGiBridgeActivator.serviceChanged(OnmsOSGiBridgeActivator.java:136) [org.opennms.core.soa-29.0.1.jar:?]
      	at org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4833) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3804) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:328) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:496) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:193) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:759) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:435) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:335) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:288) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:284) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:274) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [!/:1.10.3]
      	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1180) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2336) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1539) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [org.apache.felix.framework-6.0.4.jar:?]
      	at java.lang.Thread.run(Thread.java:829) [?:?]
      2021-12-07 16:42:10,928 WARN  [FelixStartLevel] o.o.c.s.s.OnmsOSGiBridgeActivator: OnmsOSGiBridgeActivator: Unable to find class used by exported OSGi service
      java.lang.ClassNotFoundException: org.opennms.features.geocoder.GeocoderServiceManager
      	at java.net.URLClassLoader.findClass(URLClassLoader.java:476) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?]
      	at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:904) ~[?:?]
      	at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]
      	at java.lang.Class.forName0(Native Method) ~[?:?]
      	at java.lang.Class.forName(Class.java:315) ~[?:?]
      	at org.opennms.core.soa.support.OnmsOSGiBridgeActivator.findClasses(OnmsOSGiBridgeActivator.java:214) ~[org.opennms.core.soa-29.0.1.jar:?]
      	at org.opennms.core.soa.support.OnmsOSGiBridgeActivator.registerWithOnmsRegistry(OnmsOSGiBridgeActivator.java:171) [org.opennms.core.soa-29.0.1.jar:?]
      	at org.opennms.core.soa.support.OnmsOSGiBridgeActivator.serviceChanged(OnmsOSGiBridgeActivator.java:136) [org.opennms.core.soa-29.0.1.jar:?]
      	at org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4833) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3804) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:328) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerService(BlueprintContainerImpl.java:496) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.ServiceRecipe.register(ServiceRecipe.java:193) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.registerServices(BlueprintContainerImpl.java:759) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:435) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:335) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:288) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:284) [!/:1.10.3]
      	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:274) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [!/:1.10.3]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [!/:1.10.3]
      	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1180) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4817) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2336) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1539) [org.apache.felix.framework-6.0.4.jar:?]
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [org.apache.felix.framework-6.0.4.jar:?]
      	at java.lang.Thread.run(Thread.java:829) [?:?]
      

      It seem like we have a fix in BS-65 but haven't pushed the fix upstream.

      Attachments

        Issue Links

          Activity

            People

              cgorantla Chandra Gorantla
              indigo Ronny Trommer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: