AEM As Cloud | java.lang.StackOverflowError on Text component. | Community
Skip to main content
VeenaVikraman
Community Advisor
Community Advisor
January 31, 2024
Solved

AEM As Cloud | java.lang.StackOverflowError on Text component.

  • January 31, 2024
  • 2 replies
  • 1269 views

Hi Team 

 

      In text component , we have enabled source edit. We are trying to add base64 encoded, data uri as image source. That is causing java.lang.StackOverflowError error in the page. I saw a similar issue mentioned here https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/java-lang-stackoverflowerror-error-in-rte-source-edit-plugin/m-p/596891 . I know though we need to be using assets from DAM, I want to understand if there is any possible solution for this issue ? 

For replicating the issue , you can inspect the cat image https://dopiaza.org/tools/datauri/examples/index.php here and use it in the sourceedit of the text component. 

 

Thanks

Veena ✌

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 EstebanBustamante

Hi @veenavikraman 

 

It sounds like the issue is because the XSS protection is not allowing you to display some characters on the page, did you try to disable this from the RTE ? Check this: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/touch-ui-rte-removing-data-attributes/m-p/251260/highlight/true#M12074 Or extending the XSS protection? https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-overlay-libs-cq-xssprotection-config-xml-to-project/m-p/459732 

Hope this helps.

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 14, 2024

Hi @veenavikraman 

 

It sounds like the issue is because the XSS protection is not allowing you to display some characters on the page, did you try to disable this from the RTE ? Check this: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/touch-ui-rte-removing-data-attributes/m-p/251260/highlight/true#M12074 Or extending the XSS protection? https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-overlay-libs-cq-xssprotection-config-xml-to-project/m-p/459732 

Hope this helps.

Esteban Bustamante
VeenaVikraman
Community Advisor
Community Advisor
February 16, 2024

Let me try this out @estebanbustamante 

kautuk_sahni
Community Manager
Community Manager
February 28, 2024

@veenavikraman Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni