Unable to overlay /libs/core/wcm/components/form in AEM Cloud SDK | Community
Skip to main content
NageshRaja
Level 5
October 17, 2024
Solved

Unable to overlay /libs/core/wcm/components/form in AEM Cloud SDK

  • October 17, 2024
  • 1 reply
  • 643 views

Hey guys,

 

I was trying to overlay form components from /libs/core/wcm/components/form to /apps with "Match Node Types" enabled.

 


I am getting the below errors in the logs -

 

17.10.2024 11:24:30.152 *ERROR* [qtp1176745261-1071] com.day.crx.delite.impl.servlets.OverlayNodeServlet Unable to write response
jakarta.json.stream.JsonGenerationException: state IN_OBJECT does not accept a value
at org.apache.johnzon.core.JsonGeneratorImpl.prepareValue(JsonGeneratorImpl.java:624)
at org.apache.johnzon.core.JsonGeneratorImpl.writeStartObject(JsonGeneratorImpl.java:121)
at com.day.crx.delite.impl.servlets.OverlayNodeServlet.doService(OverlayNodeServlet.java:118) [com.adobe.granite.crxde-lite:1.1.84]
at com.day.crx.delite.impl.AbstractServlet.service(AbstractServlet.java:52) [com.adobe.granite.crxde-lite:1.1.84]

 

17.10.2024 11:24:30.155 *ERROR* [qtp1176745261-1071] org.apache.felix.http Exception while processing request to /crx/de/overlayNode.jsp
jakarta.json.stream.JsonGenerationException: Invalid json, state=IN_OBJECT
at org.apache.johnzon.core.JsonGeneratorImpl.close(JsonGeneratorImpl.java:447)
at com.day.crx.delite.impl.servlets.OverlayNodeServlet.doService(OverlayNodeServlet.java:150) [com.adobe.granite.crxde-lite:1.1.84]
at com.day.crx.delite.impl.AbstractServlet.service(AbstractServlet.java:52) [com.adobe.granite.crxde-lite:1.1.84]
at com.day.crx.delite.impl.MainServlet.doService(MainServlet.java:130) [com.adobe.granite.crxde-lite:1.1.84]
at com.day.crx.delite.impl.MainServlet.service(MainServlet.java:107) [com.adobe.granite.crxde-lite:1.1.84]

 

Any help on this?

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,

 

Unfortunately, I’ve seen this behavior as well, and in my humble opinion, it is expected because, on Cloud— which is what the SDK is trying to mimic— you are not allowed to perform such operations. You have two options: either create the overlay manually or create the overlay in an AEM on-premise instance, package it, and install it back into your AEM SDK instance.

1 reply

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
October 22, 2024

Hi,

 

Unfortunately, I’ve seen this behavior as well, and in my humble opinion, it is expected because, on Cloud— which is what the SDK is trying to mimic— you are not allowed to perform such operations. You have two options: either create the overlay manually or create the overlay in an AEM on-premise instance, package it, and install it back into your AEM SDK instance.

Esteban Bustamante
daniel-strmecki
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 22, 2024

I can confirm what @estebanbustamante said. Interestingly, overlay doesn't work but you can still copy-paste stuff from /libs to /apps, delete what you don't need, and extract it with a package to your codebase.

 

Good luck,

Daniel