Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4
Level 4

Hey guys,

 

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

 

Cross_Leaf_0-1729177011251.png


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?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Level 8

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