AEM 6.2: TooManyCallsException | Community
Skip to main content
Singaiah_Chintalapudi
Level 7
Sep 16, 2016 3:32 AM UTC
Solved

AEM 6.2: TooManyCallsException

Hi,

We recently migrated to AEM 6.2 from 6.1. Whenever I develop a new component and deploy the code, components are not showing in the left rail because of below exception:

org.apache.sling.api.request.TooManyCallsException: /libs/cq/gui/components/authoring/componentbrowser/component/component.jsp
    at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:530)
    at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:44)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:77)
    at com.day.cq.personalization.impl.TargetComponentFilter.doFilter(TargetComponentFilter.java:96)
    at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:68)
    at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:151)

I found out that we need to change the Number of Calls per Request in the Apache Sling Main Servlet. Default value is set to: 1000 and if I change this value to 1001, all the components are showing up and everything is working fine. Even, if I change this value back to 1000, it still works.

It is not working if I deploy the code again.

We have only 10 components in this page and this issue looks like a bug.

 

Please help.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
cqvoyagerAccepted solution
Level 3
Sep 19, 2016 6:48 PM UTC

The reason why you are seeing only in local might be you might have the total components count is exceeding 1000. (custom components, geometrixx components and lib components). 

you can see the analysis in this ticket 

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__7nyg-hello_team_imwo.html

--Durga

10 replies

VeenaVikraman
New Participant
Jul 26, 2017 7:00 PM UTC

Thank you . That helps

Translate
Singaiah_Chintalapudi
Level 7
Jul 26, 2017 6:58 PM UTC

Change the above value.

Translate
VeenaVikraman
New Participant
Jul 26, 2017 3:58 PM UTC

Is there any fix for this issue? Or should we delete some components ?

Translate
cqvoyagerAccepted solution
Level 3
Sep 19, 2016 6:48 PM UTC

The reason why you are seeing only in local might be you might have the total components count is exceeding 1000. (custom components, geometrixx components and lib components). 

you can see the analysis in this ticket 

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__7nyg-hello_team_imwo.html

--Durga

Translate
Level 3
Sep 17, 2016 7:37 AM UTC

Adding the debug screen attachment.

Translate
Level 3
Sep 17, 2016 7:27 AM UTC

I debugged it further and see that I am getting too many API calls, when 

com.day.cq.wcm.core.impl.components.ComponentServlet calling the /libs/cq/gui/components/authoring/componentbrowser/component/component.jsp

Attaching the screenshot for your reference.

Translate
Level 3
Sep 16, 2016 11:53 PM UTC

I'm working on the upgrade project from 5.6.1 to 6.2, and I see the same issue in all the environments.

Only when I increase the value of sling.max.calls to higher value, my components gets loaded.

I have another issue though even after setting the higher sling.max.calls value, when I load the page in the preview mode, I see all the components html is being present, but the components are not being rendered. half of the component is being rendered and occupying that page and not able to scroll down the component fully. No visible errors on the browser and even in the error.log

Any pointers/suggestions would be appreciated.

Translate
smacdonald2008
Level 10
Sep 16, 2016 5:21 PM UTC

This is a bug as vmehrotr - from our support team points out. I have never seen this issue so it appears it is environment specific. 

Translate
Singaiah_Chintalapudi
Level 7
Sep 16, 2016 4:27 PM UTC

vmehrotr wrote...

https://issues.apache.org/jira/browse/SLING-4016

 

No one from our team is facing this problem. But my local is throwing this error. Wondering why this happens only to specific environment.

Translate
Employee
Sep 16, 2016 3:41 AM UTC