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

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

sai111
Level 3
Level 3

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

3 Replies
cquser1
Level 8
Level 8

Hi,

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

sai111
Level 3
Level 3

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
Level 10

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