Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

Hello,

 

We are seeing below error in the logs after upgrading to SP14, anyone else is facing similar issues with Service Pack upgrade? Unable to reproduce in my local instance its only happening on actual servers.

27.12.2022 09:29:27.961 *ERROR* [FelixDispatchQueue] org.apache.sling.adapter FrameworkEvent ERROR (org.osgi.framework.ServiceException: Service factory returned null. (Component: com.day.cq.dam.core.impl.DamAdapterFactory (1491)))
org.osgi.framework.ServiceException: Service factory returned null. (Component: com.day.cq.dam.core.impl.DamAdapterFactory (1491))

Also noticed seeing an empty side panel where we used to see assets 

Screen Shot 2022-12-27 at 11.07.00 AM.png

1 Accepted Solution

Avatar

Correct answer by
Level 3

I have noticed below error in the error.log

27.12.2022 15:51:36.152 *WARN* [127.0.0.1 [1672181496136] POST /libs/wcm/core/content/reference.json HTTP/1.0] 
org.apache.sling.jcr.resource.internal.JcrSystemUserValidator The provided service principal name
'commerce-reader-service' is not a known JCR system user id and therefore not allowed in the
Sling Service User Mapper.

 Based on that I have created system user "commerce-reader-service" then it started working

View solution in original post

1 Reply

Avatar

Correct answer by
Level 3

I have noticed below error in the error.log

27.12.2022 15:51:36.152 *WARN* [127.0.0.1 [1672181496136] POST /libs/wcm/core/content/reference.json HTTP/1.0] 
org.apache.sling.jcr.resource.internal.JcrSystemUserValidator The provided service principal name
'commerce-reader-service' is not a known JCR system user id and therefore not allowed in the
Sling Service User Mapper.

 Based on that I have created system user "commerce-reader-service" then it started working