Friday, October 18, 2019

Troubleshooting in AEM 6.2

Hello Everyone,

I started this blog a bit long ago, but I am publishing it today because “it’s never
too late to mend :-)

Recently I am working on AEM 6.2 and I faced few issues in my project. I am not sure if the same issues exist in updated versions of AEM or not. But if you are facing similar issues in your project, this blog might help you.

Issue 1:
While doing AEM server set up, when you up AEM 6.2 jar using "nosamplecontent"
runmode and login the server using admin also, you won’t be able to see the repository
in the crx repo.
Fig1: crx Repository Not visible
To solve this issue, you need to change the value of Root Path as "/crx/server" in
"Apache Sling DavEx Servlet" OSGi Configuration.
Fig 2: Apache Sling DavEx Servlet

Issue 2:
In AEM 6.2, While opening the page, console shows the issue
Uncaught ReferenceError: CQ is not defined”.
Many people has suggested different solution to this problem in internet.
The solution which worked for me is: Add a dependency “cq.shared” in the
clientlib “/etc/clientlibs/foundation/main” and this issue will no more visible to you.

Issue 3:
When there are a lot of components/requests on a page(ideally more than1000) 
in AEM 6.2 and we are also running samplecontent on our AEM, then sometimes
you are not able to go to edit Mode and encountered this exception
org.apache.sling.api.request.TooManyCallsException”,
Because there are max sling requests already defined in an OSGi Configuration
and to solve this issue and increase the size off sling requests.
To solve this issue, Go to the OSGi Configuration "Apache Sling Main Servlet"
and Increase (may be 10000) the "Number of calls per request".
Fig 3: Apache Sling Main Servlet


Hope it will help you guys !!
Thanks and Happy Learning.

2 comments:

  1. Third issue we have faced recently on AEM 6.4 version and we have increased the number. Good article, Keep writing.

    ReplyDelete