file init.js.jsp of Cart Client Context fails to compile | Community
Skip to main content
New Participant
February 4, 2016
Solved

file init.js.jsp of Cart Client Context fails to compile

  • February 4, 2016
  • 5 replies
  • 1513 views

When I use the Client Context in AEM, and when I chack the error logs, I get the following message:

GET /etc/clientcontext/default/content/jcr:content/stores.init.js HTTP/1.1] libs.cq.personalization.components.clientcontextdesigner.parsys.init$js$jsp error while including a init file /etc/clientcontext/default/content/jcr:content/stores/cart org.apache.sling.api.scripting.ScriptEvaluationException: java.lang.NullPointerException

Once I ommiting the code from line #48 untill the end of its block code - the file compoils fine (I checked which lines causing the problem).

Is there any solution for that?

Thanks!

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

if it is upgraded instance OR the page is custom one & not geometrixx . It is due to changed  less compilation implementation in CQ5.6 onwards. Validated your .less file and fix import as required.   If above does not holds good reach out to official support request.

5 replies

New Participant
October 21, 2016

Hi Scott,

 

I have encountered similar error . Id there any solution for this.

 

Regards,

 

Deepak

Sham_HC
Sham_HCAccepted solution
New Participant
February 6, 2016

if it is upgraded instance OR the page is custom one & not geometrixx . It is due to changed  less compilation implementation in CQ5.6 onwards. Validated your .less file and fix import as required.   If above does not holds good reach out to official support request.

smacdonald2008
New Participant
February 4, 2016

This looks like a bug - it should be compiling. I will pass this by support. 

s_g11Author
New Participant
February 4, 2016

version 6.1

It happens with both java versions 1.7 and 1.8

smacdonald2008
New Participant
February 4, 2016

What CQ version are you using?