org.osgi.framework.ServiceException: Service factory returned null. | Community
Skip to main content
sai111
Level 2
September 24, 2018

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

  • September 24, 2018
  • 2 replies
  • 4329 views

During aem 6.3 server restart Service factory started returning null all of a sudden and server is throwing  500 internal server error cannot open any of the cq consoles

FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returning null. (Component: com.day.cq.xss.impl.XSSProtectionServiceImpl (820)))

org.osgi.framework.ServiceException: Service factory returned null. (Component: com.day.cq.xss.impl.XSSProtectionServiceImpl (820))

at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:380)

at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)

at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344)

at org.apache.felix.framework.Felix.getService(Felix.java:3700)

at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)

at org.apache.felix.scr.impl.manager.SingleRefPair.getServiceObject(SingleRefPair.java:72)

Can someone please help this suddenly started happening in all the aem environments

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

cquser1
Level 7
September 25, 2018

Hi,

Was this restart done after any code/hotfix deployments or after any upgrades?

sai111
sai111Author
Level 2
September 25, 2018

Hi upgrade happened during last December and not even code changes are made this time ...everything is working fine till last Sunday...yesterday morning when we opened cq instance  all of a sudden  siteadmin user admin damadmin consoles started showing up blank, since all bundles are up and no error shown up in logs restart is being asked thinking environment is unstable  and once restart is done this error started showing up in logs and 500 internal server error started showing up on login screen...and even Felix scr bundle is up to date updating the bundle even did not fix the issue

smacdonald2008
Level 10
September 25, 2018

I ahve asked some cust care ppl to look here. They may have seen this before.