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

GraphService is throwing Error with an NPE Karaf startup

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 26.0.0
    • None
    • Security Level: Default (Default Security Scheme)
    • None
    • Horizon 2020 - April 1st

    Description

      The following Exception was shown in the karaf.log on startup:

      2020-04-02T18:13:09,293 | ERROR | FelixStartLevel  | AbstractServiceReferenceRecipe$Listener | 18 - org.apache.aries.blueprint.core - 1.10.2 | Error calling listener method public void org.opennms.netmgt.graph.service.DefaultGraphService.onUnbind(org.opennms.netmgt.graph.api.service.GraphContainerProvider,java.util.Map)
      java.lang.reflect.InvocationTargetException: null
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
      	at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:337) ~[18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:588) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe$Listener.unbind(AbstractServiceReferenceRecipe.java:557) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.unbind(AbstractServiceReferenceRecipe.java:458) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.updateListeners(AbstractServiceReferenceRecipe.java:438) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.ReferenceListRecipe.internalCreate(ReferenceListRecipe.java:83) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) [18:org.apache.aries.blueprint.core:1.10.2]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
      	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:737) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:433) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:311) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:280) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:276) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:266) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422) [18:org.apache.aries.blueprint.core:1.10.2]
      	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179) [?:?]
      	at org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730) [?:?]
      	at org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485) [?:?]
      	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) [?:?]
      	at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) [?:?]
      	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) [?:?]
      	at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [?:?]
      	at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: java.lang.NullPointerException
      	at java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1111) ~[?:?]
      	at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1102) ~[?:?]
      	at org.opennms.netmgt.graph.service.DefaultGraphService.onUnbind(DefaultGraphService.java:137) ~[?:?]
      	... 35 more
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: