Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null.) org.osgi.framework.ServiceException: Service factory returned null. - AEM 6.1 SP2 CFP13


Level 2



Our instance is running on AEM 6.1 SP2 CFP13. We have upgraded from AEM 6.1 GA to AEM 6.1 SP2 CFP13. Post upgrade, we were performing all the maintenance activity.Things were good. All of a sudden version purge activity which was configured as Daily Maintenance Window disappeared. While trying to reconfigure version purge as part of daily maintenance window again below errors were logged in error.logs

" *ERROR* [ [1519021772363] GET /libs/granite/operations/content/maintenance/window.html/mnt/overlay/granite/operations/config/maintenance/_granite_daily HTTP/1.1] org.apache.jackrabbit.oak.plugins.segment.SegmentTracker Segment not found: f56d94ff-2cdd-41dd-ad52-2f34bdff9df3. Creation date delta is 83950376 ms.

org.apache.jackrabbit.oak.plugins.segment.SegmentNotFoundException: Segment f56d94ff-2cdd-41dd-ad52-2f34bdff9df3 not found "

We tried restarting the instance to over come this issue and ran into a different problem. Upon restart all our bundles were in active state.

But we are unable to access consoles like

      1) projects.html, siteadmin, damadmin etc., As it resulted in below message


Where in, few consoles like crx/de , crx/packmgr, system/console, crx/explorer are accessible.

We could see below error in error logs:

*ERROR* [pool-5-thread-6] [] Failed creating the component instance; see log for reason

*ERROR* [FelixDispatchQueue] FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null.)

org.osgi.framework.ServiceException: Service factory returned null.

at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(

at org.apache.felix.framework.ServiceRegistrationImpl.getService(

at org.apache.felix.framework.ServiceRegistry.getService(

at org.apache.felix.framework.Felix.getService(

at org.apache.felix.framework.BundleContextImpl.getService(

at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.obtain(

at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(

at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(

at org.apache.felix.eventadmin.impl.handler.EventAdminImpl.sendEvent(




at org.apache.jackrabbit.oak.plugins.observation.NodeObserver$NodeEventHandler.leave(

at org.apache.jackrabbit.oak.plugins.observation.FilteredHandler.leave(

at org.apache.jackrabbit.oak.plugins.observation.EventGenerator$

at org.apache.jackrabbit.oak.plugins.observation.EventGenerator.generate(

at org.apache.jackrabbit.oak.plugins.observation.NodeObserver.contentChanged(

at org.apache.jackrabbit.oak.spi.commit.BackgroundObserver$1$

at org.apache.jackrabbit.oak.spi.commit.BackgroundObserver$1$


at java.util.concurrent.ThreadPoolExecutor.runWorker(

at java.util.concurrent.ThreadPoolExecutor$


Could someone help us in resolving this issue.Thanks in advance.

0 Replies



Due to some reason your repository got corrupted. Kindly run oak utility to fix segment store issue. You need to download oak jar file according to your AEM instance and then you need to run few commands.

also have a look at Fix Inconsistencies in the repository when SegmentNotFound Issue is reported in AEM 6.x



Level 2

Thanks kautuksahni​ for your quick response. We will try out the same.


Level 2

Hi Dharanya,

Did you try the fix suggested by Kautuksahni? Did it work? I am also facing the same issue. Please do let me know.