Context-Aware Configuration getting Null in the STG environment | Community
Skip to main content
January 23, 2023

Context-Aware Configuration getting Null in the STG environment

  • January 23, 2023
  • 3 replies
  • 1347 views

Context-Aware Configuration under Experience fragments are getting null in the STG environment but it's working in DEV and local environments. The content structure is the same in all environments.

 

ResourceResolver serviceResolver = Utils.getResourceResolver(resolverFactory,SUB_SERVICE);//Getting Resource Resolver for SUBSERVICE Resource contentResource = serviceResolver.getResource(path); WorkFlowCaConfig config = contentResource.adaptTo(ConfigurationBuilder.class).as(WorkFlowCaConfig.class);

contentResource also gets null.

 

Thanks

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

3 replies

Level 3
January 23, 2023

Hi ,

can you please confirm if serviceResolver is not null and system user is good in staging ?

 

Thanks

j1dAuthor
January 23, 2023

Thanks for the reply, serviceResolver is not null and the system user is already present in STG, the same code is working pages, assets, etc.

Jagadeesh_Prakash
Community Advisor
Community Advisor
January 23, 2023

@j1d  can you check if the path is available in Stage?

 And also the system user have enough permission same as dev 

B_Sravan
Community Advisor
Community Advisor
January 23, 2023

check if you are missing any environmental level configurations.