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

NPE in UpdateConfiguration#run

    XMLWordPrintableJSON

Details

    Description

      During startup I sometimes see a set of these NPE's :
      16.11.2012 04:48:47.004 ERROR [CM Configuration Updater (Update: pid=org.apache.sling.servlets.resolver.SlingServletResolver)] org.apache.felix.configadmin Service [org.apache.felix.cm.ConfigurationAdmin,48] Unexpected problem executing task (java.lang.NullPointerException) java.lang.NullPointerException
      at org.apache.felix.cm.impl.ConfigurationManager$UpdateConfiguration.run(ConfigurationManager.java:1701)
      at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
      at java.lang.Thread.run(Thread.java:662)
      16.11.2012 04:48:47.005 INFO [FelixStartLevel] org.apache.felix.configadmin BundleEvent STARTED

      Looking at the code, it seems the configuration update thread is started before managedServiceTracker or managedServiceFactoryTracker are set in the start() method of the ConfigurationManager

      Attachments

        1. FELIX-3762.patch
          6 kB
          Felix Meschberger

        Activity

          People

            fmeschbe Felix Meschberger
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: