Expand my Community achievements bar.

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

Avatar

Level 2

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]

4 Replies

Avatar

Community Advisor

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

Avatar

Level 5

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

Avatar

Community Advisor

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

Can you share the complete stack trace.



Arun Patidar