Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Login page is not being displayed in AEM 6.4. Throwing Null Pointer Exception in HtmlLibraryManagerImpl load libraray

Avatar

Level 3

Login page and other pages on AEM6.4 Environment are not being displayed. It was working properly but suddenly it is not working. able to login in CRX/de/index.jsp but no HTML pages are being rendered. Have tried restarting the servers and deploying old releases.


Exception in logs

  1. 27.08.2018 14:44:26.314 *ERROR* [0:0:0:0:0:0:0:1 [1535361266176] GET /libs/granite/core/content/login.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

java.lang.NullPointerException: null

                at com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl.loadLibrary(HtmlLibraryManagerImpl.java:1090) [com.adobe.granite.ui.clientlibs:1.0.76]

                at com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl.loadLibs(HtmlLibraryManagerImpl.java:1031) [com.adobe.granite.ui.clientlibs:1.0.76]

1 Accepted Solution

Avatar

Correct answer by
Level 3

We restored the environment from backup and deployed the latest build again. It worked fine. We could not troubleshoot the reason behind the issue or what fixed it but it is working now.

View solution in original post

8 Replies

Avatar

Level 10

1. You may want to share complete logs

2. Can you try login to felix console localhost:4502/system/console/bundles and see if there is any bundle which is not active

3. Was there any deployment which caused this?

Avatar

Level 10

As Praveen mentions - did you install a package or JS before this started happening.

Avatar

Level 3

We installed a code package but it worked properly that time. We deployed a package on Friday morning. It worked welll. but on Sunday afternoon, it started giving this issue.

Really surprised. We reverted the packages deployed on thursday and friday but still issue persists. We have restarted the system twice after deploying old package but it is still giving same issue.

No HTML page : sites.html, editor.html, login.html is appearing.

In Friday change, We introduced listeners.js in server libs

Avatar

Administrator

I could recall some similar issue reported on Forums for AEM 6.2 as well. Forced compiling worked that time.

Please follow How to force a recompilation of all Sling scripts jsps, java, and sightly in AEM 6.4  and check this this works.

It was then some datastore corruption issue.



Kautuk Sahni

Avatar

Correct answer by
Level 3

We restored the environment from backup and deployed the latest build again. It worked fine. We could not troubleshoot the reason behind the issue or what fixed it but it is working now.

Avatar

Level 10

I am glad to hear its working now.