org.osgi.framework.ServiceException: Service factory returned null. | Community
Skip to main content
sai111
Level 2
Sep 24, 2018 6:03 PM UTC

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

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.

3 replies

smacdonald2008
Level 10
Sep 25, 2018 8:17 PM UTC

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

Translate
cquser1
Level 7
Sep 25, 2018 9:51 AM UTC

Hi,

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

Translate
sai111
sai111Author
Level 2
Sep 25, 2018 4:02 PM UTC

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

Translate