AEM 6.2 Too many calls Sling Exception. | Community
Skip to main content
Level 3
September 16, 2016
Solved

AEM 6.2 Too many calls Sling Exception.

  • September 16, 2016
  • 12 replies
  • 12569 views

Hello Team,

I'm working on the upgrade project from 5.6.1 to 6.2. Initially I had the issue of Too many Sling api calls exception and my components are not getting loaded in the edit mode. Only when I increase the value of sling.max.calls to higher value, my components gets loaded.

Any pointers/suggestions would be appreciated.

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 cqvoyager

I debugged further and figured out that too many calls exception is coming when the number of components are more than 1000. When I debugged, total number of components are 1026.  That includes my custom components, geometrixx components and libs components. when it reached 1000, due to sling.max.calls value set to 1000, Component servlet is calling that component and its giving the exception once it reaches 1000 components.

To test this furhter I uninstalled the geometrixx components in my local and see that number of components came down from 1026 to 868 and this time, it did not result in Too many calls exception.

--Durga

12 replies

smacdonald2008
Level 10
September 17, 2016

Is this happening for all components in your instance? What about sample components in geomatrixx? 

smacdonald2008
Level 10
September 17, 2016

Also setting a sling config value for components to show up,   Who told you to do that?  Sounds like you should file ticket. Something is broken. This is not normal behaviour. 

cqvoyagerAuthor
Level 3
September 17, 2016

yes, it is happening with even the geometrixx pages in edit mode with http://localhost:4502/editor.html/content/geometrixx/en/services.html and http://localhost:4502/editor.html/content/geometrixx/en/products.html, I am getting the same exception.

I have attached the debug screenshot for your reference.

Regarding setting a sling config value for components to show up, I have reffered the http://apache-sling.73963.n3.nabble.com/Sling-Main-Servlet-Expose-sling-max-calls-in-request-attribute-td4057761.html, tried increasing the value of sling.max.calls to continue my testing. I will follow up this with a day care ticket.

Version wise I am using Adobe Experience Manager, Version 6.2.0 with no hotfixes.

--Durga

cqvoyagerAuthor
Level 3
September 19, 2016

One quick observation, I want to share is when I uninstall our code packages and tested the geometrixx, its not hitting the TooManyCalls exception..

I'm believing.. its to do with one of our components.. but not knowing how to debug this further..

From the exception.. we are seeing this exception gets called when

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

--Durga

smacdonald2008
Level 10
September 19, 2016

I would agree. It sounds like a custom component that is responsible for this. How many custom components are you using?

cqvoyagerAuthorAccepted solution
Level 3
September 19, 2016

I debugged further and figured out that too many calls exception is coming when the number of components are more than 1000. When I debugged, total number of components are 1026.  That includes my custom components, geometrixx components and libs components. when it reached 1000, due to sling.max.calls value set to 1000, Component servlet is calling that component and its giving the exception once it reaches 1000 components.

To test this furhter I uninstalled the geometrixx components in my local and see that number of components came down from 1026 to 868 and this time, it did not result in Too many calls exception.

--Durga

smacdonald2008
Level 10
September 19, 2016

Nice work - great observations. I am passing this to the support team to see if this is a known issue and if we have a KB on this subject. 

cqvoyagerAuthor
Level 3
September 19, 2016

Thanks Scott and let me know if you need any additional info regarding this. I would be happy to share. Thanks.

--Durga

Level 2
September 19, 2016

I believe this is in the release notes somewhere (if I remember correctly). When I participated in the beta I noticed this issue and worked with product support to determine the same setup. In 6.2 the number of requests was lowered from the higher values 6.0 and 6.1 had by default.  It should occur on a default installation if you keep the demo sites in place and add a decent sized custom site to your instance.

Level 2
February 9, 2017

HI,

This is Riyaz.

We are also doing In Place upgrade from AEM 5.6.1 to 6.2.

Since you have already done this migration, could you please share key points while doing migration?

We are also facing the same issue like TooManyCalls, Touch UI is not working, Edit Icon is not showing for any component, component drag-and-drop is not working, etc...

 

Thanks,

Riyaz