Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

AEM-publish issue

Avatar

Level 2

Hi,

We are currently in the midst of upgrading to 6.1 (from 5.6) and have an AEM 6.1 publish instance running in a test environment. The issue we see is with a page that pulls in a list of articles that are created in aem under an 'Articles' node. In our author environment, these articles show up since there is an admin logged in. However in our publish environment, they don't show up until you go into the crx/de (in a separate tab) of the publish environment and manually log in. After which, you can refresh the page and the articles will show up. Can someone tell me what we may be doing wrong on this particular page?

Thanks in advance for any help!

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi,

first of all you have a ton of NullPointerExceptions, which you should really get fixed.

Then I see a problem with Javascript clientlib creation:

05.04.2016 11:00:09.605 *ERROR* [127.0.0.1 [1459868409602] GET /etc/designs/subaru/motorsports/js/clientlib.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl Error during assembly of library. org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax errors. at com.adobe.granite.ui.clientlibs.impl.JsFileBuilder$1.runtimeError(JsFileBuilder.java:108) at org.mozilla.javascript.Parser.parse(Parser.java:396)

 

Now maybe this is your issue:

05.04.2016 11:00:09.635 *INFO* [127.0.0.1 [1459868409602] GET /etc/designs/subaru/motorsports/js/clientlib.min.js HTTP/1.1] com.day.cq.wcm.core.impl.PageImpl Could not access parent of /etc/designs to look for the page language 05.04.2016 11:00:09.635 *INFO* [127.0.0.1 [1459868409602] GET /etc/designs/subaru/motorsports/js/clientlib.min.js HTTP/1.1] com.day.cq.wcm.core.impl.PageImpl Could not access parent of /etc/designs to look for the page language

So please check the permission of /etc/design and subnodes (/etc/designs/subaru/ etc.)

But nevertheless, please cleanup your code and fix these errors; chasing problems is really hard with such errors in the logs.

View solution in original post

5 Replies

Avatar

Employee

Check the permissions on this on the publish-node. Mostly like this is not granted to the anonymous-user.

Avatar

Level 2

Hi Feike,

Thanks for your suggestion, I checked permissions on anonymous and this user has 'read' access to the node.

Avatar

Level 10

Can you share what you get in error.log when in publish environment you try to see articles without login in .

Avatar

Level 2
Here are the first few lines but I've also attached the rest of the log when I've reloaded the page. 05.04.2016 03:04:58.704 *INFO* [oak-repository-executor-1] com.adobe.granite.repository Service [3680, [org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent REGISTERED 05.04.2016 07:40:06.106 *INFO* [127.0.0.1 [1459856406105] GET /company/ HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /company/ not found 05.04.2016 10:47:11.439 *INFO* [qtp190563009-295870] org.apache.sling.auth.core.impl.SlingAuthenticator handleLoginFailure: Unable to authenticate null: Invalid token credentials.

Avatar

Correct answer by
Employee Advisor

Hi,

first of all you have a ton of NullPointerExceptions, which you should really get fixed.

Then I see a problem with Javascript clientlib creation:

05.04.2016 11:00:09.605 *ERROR* [127.0.0.1 [1459868409602] GET /etc/designs/subaru/motorsports/js/clientlib.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl Error during assembly of library. org.mozilla.javascript.EvaluatorException: Compilation produced 1 syntax errors. at com.adobe.granite.ui.clientlibs.impl.JsFileBuilder$1.runtimeError(JsFileBuilder.java:108) at org.mozilla.javascript.Parser.parse(Parser.java:396)

 

Now maybe this is your issue:

05.04.2016 11:00:09.635 *INFO* [127.0.0.1 [1459868409602] GET /etc/designs/subaru/motorsports/js/clientlib.min.js HTTP/1.1] com.day.cq.wcm.core.impl.PageImpl Could not access parent of /etc/designs to look for the page language 05.04.2016 11:00:09.635 *INFO* [127.0.0.1 [1459868409602] GET /etc/designs/subaru/motorsports/js/clientlib.min.js HTTP/1.1] com.day.cq.wcm.core.impl.PageImpl Could not access parent of /etc/designs to look for the page language

So please check the permission of /etc/design and subnodes (/etc/designs/subaru/ etc.)

But nevertheless, please cleanup your code and fix these errors; chasing problems is really hard with such errors in the logs.