acs-aem-commons icon indicating copy to clipboard operation
acs-aem-commons copied to clipboard

AEM 6.5.5 + ACS commons 4.8.6 + core.wcm 2.11.0- I cannot get the Marketo form to show up in a published page

Open ghost opened this issue 3 years ago • 7 comments

Any ideas why I cannot see the marketo form in the publisher but it's showing up in author.

  • In both author and publisher, I have configured the Marketo settings. (in both cases, the settings is stored in this path: /conf/myapp/settings/cloudconfigs/Marketo)

  • I looked around and found this piece of code (inside /apps/acs-commons/components/content/embeddable/marketo/marketo.html): <sly data-sly-use.configMgr="com.adobe.acs.commons.marketo.MarketoClientConfigurationManager" data-sly-use.marketoForm="com.adobe.acs.commons.marketo.MarketoForm">. In author and publisher (using view-as-published), ${configMgr) is not null. BUT when viewing the page via the dispatcher, this variable is null/empty.

  • I looked at the publisher logs and found these entries. These only happens when viewing the published page via the dispatcher.

      02.06.2021 02:32:38.204 *ERROR* [10.44.0.24 [1622601158058] GET /content/flinders/en/about.html HTTP/1.1] org.apache.sling.scripting.sightly.render.ObjectModel Cannot access method configuration on object com.adobe.acs.commons.marketo.impl.MarketoClientConfigurationManagerImpl@3e08245
      java.lang.reflect.InvocationTargetException: null
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at org.apache.sling.scripting.sightly.render.ObjectModel.invokeBeanMethod(ObjectModel.java:418) [org.apache.sling.scripting.sightly.runtime:1.1.0.1_4_0]
              at org.apache.sling.scripting.sightly.render.ObjectModel.resolveProperty(ObjectModel.java:128) [org.apache.sling.scripting.sightly.runtime:1.1.0.1_4_0]
              at org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel.getProperty(AbstractRuntimeObjectModel.java:138) [org.apache.sling.scripting.sightly.runtime:1.1.0.1_4_0]
              at org.apache.sling.scripting.sightly.impl.engine.runtime.SlingRuntimeObjectModel.getProperty(SlingRuntimeObjectModel.java:32) [org.apache.sling.scripting.sightly:1.1.2.1_4_0]
              at org.apache.sling.scripting.sightly.render.AbstractRuntimeObjectModel.resolveProperty(AbstractRuntimeObjectModel.java:74) [org.apache.sling.scripting.sightly.runtime:1.1.0.1_4_0]
              at org.apache.sling.scripting.sightly.apps.acs__002d__commons.components.content.embeddable.marketo.marketo_html.render(marketo_html.java:93)
              at org.apache.sling.scripting.sightly.render.RenderUnit.render(RenderUnit.java:50) [org.apache.sling.scripting.sightly.runtime:1.1.0.1_4_0]
              at org.apache.sling.scripting.sightly.impl.engine.SightlyCompiledScript.eval(SightlyCompiledScript.java:60) [org.apache.sling.scripting.sightly:1.1.2.1_4_0]
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:386) [org.apache.sling.scripting.core:2.0.56]
              at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:184) [org.apache.sling.scripting.core:2.0.56]
      --------- S N I P ------
              at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.lang.NullPointerException: null
              at com.adobe.acs.commons.marketo.impl.MarketoClientConfigurationManagerImpl.getConfiguration(MarketoClientConfigurationManagerImpl.java:56) [com.adobe.acs.acs-aem-commons-bundle:4.8.6]
              ... 386 common frames omitted
    

Any ideas on how to fix?? Thanks

ghost avatar May 04 '21 05:05 ghost

@mrjayviper What file exactly are you seeing ${configMgr} go null in?

davidjgonzalez avatar Jun 02 '21 01:06 davidjgonzalez

@mrjayviper What file exactly are you seeing ${configMgr} go null in?

@davidjgonzalez

I found the code inside /apps/acs-commons/components/content/embeddable/marketo/marketo.html

I also added some log entries I found on the publisher logs. This only shows up when viewing the published page via the dispatcher.

ghost avatar Jun 02 '21 02:06 ghost

@mrjayviper What file exactly are you seeing ${configMgr} go null in?

I found the code inside /apps/acs-commons/components/content/embeddable/marketo/marketo.html

I also added some log entries I found on the publisher logs. This only shows up when viewing the published page via the dispatcher.

I am facing the exact same problem. Form is coming in author and publisher but when viewing via dispatcher, it is not showing up. Did you find the solution ? could you please share the solution?

hptarora avatar Aug 05 '21 06:08 hptarora

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 09 '22 00:01 stale[bot]

Hi All,

Any idea why the Marketo embed form is not showing up in Publisher but it is showing in Author. Please let me know if any solution. We are getting this below error.

image

Thanks, Jeeva

JeevaRavi25 avatar Feb 28 '24 01:02 JeevaRavi25

@JeevaRavi25 ,

I did not find any solution to fix it. I customize and created a OSGI service to save the Marketo details and then fetch the marketo details in form.

hptarora avatar Mar 03 '24 08:03 hptarora

Sharing here also my answer on the experience league community thread: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/acs-commons-marketo-aem-integration-marketo-form-not-displaying/td-p/405423

Hope this help guys and gals!

iamtachez avatar May 08 '24 11:05 iamtachez