Skip to main content
June 21, 2022

Recursive Invocations Error

Hi All

Does any one faced too much recursive invocations (>=20) error

any clue would be helpful

Regards

Manjunath

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

SantoshSai
Community Advisor
Community Advisor
June 21, 2022

Hi @17498836 ,

There are multifarious reasons you will get "too much recursive invocations (>=20)"

  • If I have model class A that has a @ChildResource of model class B, where B is a proxy extension of a WCM Core model, the result is an infinite loop attempting to inject the child resource B into model A.
  • If haven't following delegation pattern guidelines.
  • If superType of the proxy component is null.

Refer: https://github.com/adobe/aem-core-wcm-components/issues/466

However, Appreciate if you paste those errors here for better understanding.

Regards,

Santosh

Translate
Santosh Sai
June 22, 2022

WARN [10.45.1.4 [1655402353722] GET /content/<>/<>/mortgage.html HTTP/1.1] org.apache.sling.models.impl.ModelAdapterFactory Could not adapt to model
org.apache.sling.models.factory.ModelClassException: Adapting JcrNodeResource, type=<>/components/structure/page, superType=null, path=/content/<>/<>/personal/loans/home-equity-line-of-credit/jcr:content to interface com.adobe.cq.wcm.core.components.models.Page failed, too much recursive invocations (>=20).
at org.apache.sling.models.impl.ModelAdapterFactory.internalCreateModel(ModelAdapterFactory.java:372) [org.apache.sling.models.impl:1.4.16]

Translate
B_Sravan
Community Advisor
Community Advisor
June 22, 2022

seems like something wrong with your Model classes, could you please provide your code snippet?

thanks,

Sravan

Translate
B_Sravan
Community Advisor
Community Advisor
June 21, 2022

Hi @17498836 , could you please be more specific with error and scenario?

Thank you,

Sravan

Translate
Adobe Employee
June 21, 2022

@17498836 

I have seen this type of error in MSM set up where Livecopy property is missing on sub pages nodes.

But it will be helpful if you provide complete stack trace.

Translate