Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Caconfig Editor is not publishing child nodes for collections

Avatar

Level 2

I have caconfig editor package as a maven dependency

 

<dependency>
<groupId>io.wcm</groupId>
<artifactId>io.wcm.caconfig.editor.package</artifactId>
<version>1.12.0</version>
<type>zip</type>
</dependency>

 

The caconfig editor renders like this,  it looks a little different from what I've seen documented, so I do wonder if its configured correctly. 

 

johns43992246_0-1678198553307.png

 


When I publish though, non of the resource nodes under the configuration are replicated into the publish environment.

 

johns43992246_0-1678197845731.png

 

 

9 Replies

Avatar

Community Advisor

Hi @johns43992246 

 

Quick question:

When you publish it, is it showing the rest of the changes in the publish page?

Do you have access to publish the nodes?

Do you see the logs in the replication queue?

DO you see any errors in the logs?

 

Thanks,

Kiran Vedantam.

Avatar

Level 2

Do you have access to publish the nodes? YES

Do you see the logs in the replication queue? I'm not sure how to setup the logger for caconfig in the sling logs. Any advice?

DO you see any errors in the logs? I cannot find any in the error logs but I need help trying create a logger for this.

Avatar

Level 2

I did a text search in the error sand found this

XXX GET /conf/SOME+PATH/policies/_jcr_content.1500560231670.json HTTP/1.1] org.apache.sling.caconfig.resource.impl.def.DefaultConfigurationResourceResolvingStrategy Ignoring reference to /conf/PATH/settings from /conf/PATH/settings - Probably misconfigured as it ends with '/settings'

 

Avatar

Community Advisor

Can you check the caconfig path in crxde? It should be pointing to the content path as your are trying to save it at the content node level not conf. May be your configuration is having an issue.

Avatar

Level 2

@Kiran_Vedantam not sure how best to answer. I'm looking in CRX in the PUBLISH environment. Children are not getting stored there. I was expecting the children to publish under the /conf path in PUBLISH. 

 

publish-caconfig.png

 

The parent node has a property in jcr:content for

sling:configRef

it points to the path under /conf

Avatar

Level 2

When I try to publish the collection I see this error:

 

08.03.2023 14:29:09.989 *INFO* [[0:0:0:0:0:0:0:1] [1678303749956] GET /libs/wcm/core/content/sites/publishpagewizard.html HTTP/1.1] libs.cq.gui.components.siteadmin.admin.publishwizard.references.references$jsp Resource is /mnt/overlay/wcm/core/content/sites/publishpagewizard/jcr:content/body/items/form/items/wizard/items/publishstep/items/fixedColumns/items/fixedColumn1/items/references
08.03.2023 14:29:10.018 *INFO* [[0:0:0:0:0:0:0:1] [1678303749956] GET /libs/wcm/core/content/sites/publishpagewizard.html HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl Start building JS library: /libs/cq/gui/components/siteadmin/admin/publishwizard/clientlibs
08.03.2023 14:29:10.314 *ERROR* [[0:0:0:0:0:0:0:1] [1678303749956] GET /libs/wcm/core/content/sites/publishpagewizard.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
acscommons.com.google.common.util.concurrent.ExecutionError: java.lang.OutOfMemoryError: unable to create new native thread
at acscommons.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2049) [com.adobe.acs.acs-aem-commons-bundle:4.11.2]
at acscommons.com.google.common.cache.LocalCache.get(LocalCache.java:3951) [com.adobe.acs.acs-aem-commons-bundle:4.11.2]

Avatar

Level 2

I did a little more reading and compared to the current implementation of the io.wcm.caconfig.editor

Publish configurations

By default, Context-Aware configurations are stored below /conf and can thus not published by editors using the AEM Author GUI. The Editor provides an “publish this page” button, which published the editor page itself.

It is recommended to also deploy the wcm.io Context-Aware Configuration Extensions and activate the AEM Page persistence strategy. Then the reference provider also included in the extensions bundles detects changed and unpublished configuration pages below /conf when publishing the editor page, and allows to publish the configurations as well.

 

I don't see any references to the io.wcm.caconfig.extensions in my POM files. I started trying to get the correct Maven dependency added. According to the support matrix here

https://wcm.io/caconfig/extensions/

I should be on 1.9.2 for extensions for the version of AEM I'm running. I only see it going up to in maven-central I only see it going up to 1.9.0 also in Github tags only go up to 1.9.0 

https://github.com/wcm-io/io.wcm.caconfig.extensions/tags

I'm going to try 1.9.0 but I have to get that maven artifact on boarded to my companies repo. Does this sound like the right approach?

Avatar

Level 2

I was able to get 1.9.0 through the onboarding process.

in the parent POM

<dependency>
<groupId>io.wcm</groupId>
<artifactId>io.wcm.caconfig.extensions</artifactId>
<version>1.9.0</version>
</dependency>

Then in the child POM

 

<dependency>
<groupId>io.wcm</groupId>
<artifactId>io.wcm.caconfig.extensions</artifactId>
<scope>compile</scope>
</dependency>

There were no resolving issues reported by IntelliJ so I went ahead and did a maven build for AUTHOR and PUBLISH

 

I see in AEM a new bundle, but the version does not quite match 

 

johns43992246_0-1678390086207.png

 

Adobe Granite Context-Aware Configuration Extension

I tried to publish my configuration with the collection but no child nodes are appearing in Publish /conf

 

I see this error log

 

09.03.2023 15:04:29.101 *INFO* [[0:0:0:0:0:0:0:1] [1678392268891] GET /libs/wcm/core/content/sites/publishpagewizard.html HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl Start building JS library: /libs/cq/gui/components/siteadmin/admin/publishwizard/clientlibs
09.03.2023 15:04:29.488 *ERROR* [[0:0:0:0:0:0:0:1] [1678392268891] GET /libs/wcm/core/content/sites/publishpagewizard.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException
acscommons.com.google.common.util.concurrent.ExecutionError: java.lang.OutOfMemoryError: unable to create new native thread
at acscommons.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2049) [com.adobe.acs.acs-aem-commons-bundle:4.11.2]

 

Avatar

Level 2

I see this property 

 

sling:configCollectionInherit

 

It might be because I checked the box for  io.wcm.caconfig.editor.config.inheritance.collection

 

johns43992246_2-1678393762595.png