Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6419

Unable to initialize configurations list: java.lang.NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • fileinstall-3.7.0
    • fileinstall-3.7.2
    • File Install
    • None

    Description

      I have just updated the fileinstall bundle version to 3.7.0 and started getting this exception when I stop the server. I am running Felix in embedded mode.

       

      2021-05-20 08:20:55.543 [AdeptJ Terminator] INFO  com.adeptj.runtime.osgi.FrameworkManager - Removing OSGi FrameworkListener!!
      Unable to initialize configurations list: java.lang.NullPointerException
      java.lang.NullPointerException
      	at org.apache.felix.fileinstall.internal.ConfigInstaller.init(ConfigInstaller.java:160)
      	at org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.addingService(FileInstall.java:400)
      	at org.apache.felix.fileinstall.internal.FileInstall$ConfigAdminSupport$Tracker.addingService(FileInstall.java:355)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:944)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:872)
      	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
      	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
      	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:904)
      	at org.apache.felix.framework.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:990)
      	at org.apache.felix.framework.EventDispatcher.fireEventImmediately(EventDispatcher.java:838)
      	at org.apache.felix.framework.EventDispatcher.fireServiceEvent(EventDispatcher.java:545)
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4863)
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3834)
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:328)
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:501)
      	at org.apache.felix.cm.impl.ConfigurationManager.start(ConfigurationManager.java:199)
      	at org.apache.felix.cm.impl.ConfigurationAdminStarter.activate(ConfigurationAdminStarter.java:78)
      	at org.apache.felix.cm.impl.ConfigurationAdminStarter.checkStart(ConfigurationAdminStarter.java:186)
      	at org.apache.felix.cm.impl.ConfigurationAdminStarter.updatePluginsSet(ConfigurationAdminStarter.java:179)
      	at org.apache.felix.cm.impl.RequiredConfigurationPluginTracker$1.run(RequiredConfigurationPluginTracker.java:122)
      	at org.apache.felix.cm.impl.ActivatorWorkerQueue.run(ActivatorWorkerQueue.java:82)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      *ERROR* Error processing task
      java.lang.IllegalStateException: Invalid BundleContext.
      	at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:491)
      	at org.apache.felix.framework.BundleContextImpl.createFilter(BundleContextImpl.java:107)
      	at org.osgi.util.tracker.ServiceTracker.<init>(ServiceTracker.java:188)
      	at org.apache.felix.cm.impl.helper.BaseTracker.<init>(BaseTracker.java:62)
      	at org.apache.felix.cm.impl.helper.ManagedServiceTracker.<init>(ManagedServiceTracker.java:42)
      	at org.apache.felix.cm.impl.ConfigurationManager.start(ConfigurationManager.java:203)
      	at org.apache.felix.cm.impl.ConfigurationAdminStarter.activate(ConfigurationAdminStarter.java:78)
      	at org.apache.felix.cm.impl.ConfigurationAdminStarter.checkStart(ConfigurationAdminStarter.java:186)
      	at org.apache.felix.cm.impl.ConfigurationAdminStarter.updatePluginsSet(ConfigurationAdminStarter.java:179)
      	at org.apache.felix.cm.impl.RequiredConfigurationPluginTracker$1.run(RequiredConfigurationPluginTracker.java:122)
      	at org.apache.felix.cm.impl.ActivatorWorkerQueue.run(ActivatorWorkerQueue.java:82)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              rakeshk15 Rakesh Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: