Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

ACS commons: Cannot retrieve Marketo cloud config when viewing --published-- pages


Level 8


  1. author has no problem reading the Marketo config. I can see the Marketo form list and I can see the Marketo form.
  2. In the publisher, it's the reverse. I get an exception (message as seen in the error.log below). The error thrown is in one of the lines in the Marketo code that's part of ACS commons.
  3. In addition to no.2 because the publisher cannot retrieve the config, the Marketo form is not getting rendered on the page.
  4. In both author and publisher, the Marketo config has been saved in this path: /conf/myapp/settings/cloudconfigs/Marketo.
  5. in both author+publisher, the page property cq:conf has been set to "/conf/myapp"
  6. I am using ACS commons 4.8.6

Any ideas on how to fix/workaround? Maybe I forgot to configure something in the publisher?


ACS commons/Marketo HTL code


<sly data-sly-use.configMgr="com.adobe.acs.commons.marketo.MarketoClientConfigurationManager" data-sly-use.marketoForm="com.adobe.acs.commons.marketo.MarketoForm">



Line 56 of the com.adobe.acs.commons.marketo.MarketoClientConfigurationManagerImpl Java code as mentioned in the error below (line 56 starts at the "return configRsrcRslvr")


    return configRsrcRslvr.getResourceCollection(resource, "settings", "cloudconfigs").stream().filter(c -> {
      boolean matches = "/apps/acs-commons/templates/utilities/marketocloudconfig"
          .equals(c.getValueMap().get("jcr:content/cq:template", ""));
      log.debug("Resource: {} matches: {}", c, matches);
      return matches;
    }).findFirst().map(c -> c.getChild(JcrConstants.JCR_CONTENT)).map(c -> c.adaptTo(MarketoClientConfiguration.class))





pastebin link to the full error message (too long to post here):


snippet of the error.log (I guess the important bits are included)


18.05.2021 02:40:38.757 *ERROR* [ [1621305635657] GET /content/myapp/wtcp365/jlprojects/jltest4.html HTTP/1.1] Cannot access method configuration on object com.adobe.acs.commons.marketo.impl.MarketoClientConfigurationManagerImpl@5775d311
java.lang.reflect.InvocationTargetException: null
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.base/java.lang.reflect.Method.invoke(
    at []
    at []
    at []
    at []
    at []
    at []


    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce( [org.apache.felix.http.jetty:4.0.16]
    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce( [org.apache.felix.http.jetty:4.0.16]
    at [org.apache.felix.http.jetty:4.0.16]
    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ [org.apache.felix.http.jetty:4.0.16]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob( [org.apache.felix.http.jetty:4.0.16]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$ [org.apache.felix.http.jetty:4.0.16]
    at java.base/
Caused by: java.lang.NullPointerException: null
    at com.adobe.acs.commons.marketo.impl.MarketoClientConfigurationManagerImpl.getConfiguration( [com.adobe.acs.acs-aem-commons-bundle:4.8.6]
    ... 378 common frames omitted







1 Reply



this issue still there. Has anyone fixed this or any fix available from acs commons side ?

Error log till date:

Caused by: java.lang.NullPointerException: null

at com.adobe.acs.commons.marketo.impl.MarketoClientConfigurationManagerImpl.getConfiguration( [com.adobe.acs.acs-aem-commons-bundle:4.7.0]

... 294 common frames omitted

01.07.2022 14:32:22.397 *ERROR* [0:0:0:0:0:0:0:1 [1656666142022] GET /content/we-retail/us/en.html HTTP/1.1] Cannot access method configuration on object com.adobe.acs.commons.marketo.impl.MarketoClientConfigurationManagerImpl@49e36769

java.lang.reflect.InvocationTargetException: null

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(

at sun.reflect.DelegatingMethodAccessorImpl.invoke(

at java.lang.reflect.Method.invoke(


Clearly, it seems that for the anonymous user i.e. for non-logged-in user the code is failing to read the marketo


Anyone aware of any fix given for this until now ?