Component is not loading on publisher, but it is loading on Author -- com.adobe.cq.sightly.WCMUsePojo Failed to activate Use class | Community
Skip to main content
maryani
Level 2
August 7, 2023

Component is not loading on publisher, but it is loading on Author -- com.adobe.cq.sightly.WCMUsePojo Failed to activate Use class

  • August 7, 2023
  • 3 replies
  • 1295 views

07.08.2023 11:54:17.283 *ERROR* [10.242.69.100 [1691409257199] GET /content/XXX/en_us/navigation.html HTTP/1.1] com.adobe.cq.sightly.WCMUsePojo Failed to activate Use class

java.lang.NullPointerException: null

            at com.adobe.cq.sightly.WCMUsePojo.init(WCMUsePojo.java:86) [com.adobe.cq.sightly.cq-wcm-sightly-extension:1.6.0]

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

3 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 7, 2023

Hi, 

 

Firstly, the usage of the WCMUse class is deprecated, and it is preferable to use Sling Models instead. Additionally, it appears that there is some logic within your class that is causing a null pointer exception. My guess is that this may be related to content that is available in the author environment but not in the publish environment. If you review the log, it will likely indicate the specific line in your class where the null pointer exception is being thrown. Could you please check that?

Esteban Bustamante
mahi1729
Level 4
August 8, 2023

Another possibility.. check if your bundle is active or not.

maryani
maryaniAuthor
Level 2
August 8, 2023

All the bundles on publisher are active

arunpatidar
Community Advisor
Community Advisor
August 8, 2023

This could be because of component logic is failed on publishers.

Can you share the complete stack trace.

Arun Patidar