custom rollout and custom liveaction issues

mohanb

31-10-2016

i am using aem 6.2 and java 8. i created custom rollout and custom live action as per the steps mentioned in the https://docs.adobe.com/docs/en/aem/6-2/develop/extending/msm.html#Add%20Synchronization%20Actions%20... document. custom rollout config is configured for “On Rollout”.

How ever, when i view or edit/save trigger. it doesn’t reflect on the console. It shows as trigger “not defined”. there are couple of things i observed,

 

  1. when live copy is created from source to destination custom action is not getting invoked inspite of adding the custom rollout config before creating livecopy. but when i go to livecopy and click on synchronize button action is getting executed. is this how is it supposed? or is there a way to ensure custom live action gets executed when live copy gets created
  2. custom live action registered under the node doesn’t appear on screen. i’ve seen default and other roll-out configuration which displays all the information when page is viewed. attached is the screenshot. Also, when i edit/save the settings of rollout config, i see below error message in error.log. 

 

31.10.2016 18:24:14.981 *ERROR* [0:0:0:0:0:0:0:1 [1477963454977] GET /etc/msm/rolloutconfigs/titlelocaleliveaction.html HTTP/1.1] com.day.cq.wcm.msm.impl.RolloutConfigManagerFactoryImpl RolloutConfig /etc/msm/rolloutconfigs/titlelocaleliveaction/jcr:content is invalid: Failed to resolve Factory with id titleLocaleAction, maybe Service is uninstalled

Accepted Solutions (1)

Accepted Solutions (1)

smacdonald2008

02-11-2016

We completed this draft of the article - it is invoked when we Activate the page - as an example: 

https://helpx.adobe.com/experience-manager/using/Extending_MSM.html

So yes - the rollout page is activated and the custom logic writes info to the log file. The code works as specified in the artilce. 

Answers (10)

Answers (10)

mohammedb397627

01-04-2020

@smacdonald2008 ,

I'm going throw the same issue. I have already succeeded in AEM 6.3.

BUT in AEM 6.4.8

even following this doc: https://docs.adobe.com/content/help/en/experience-manager-64/developing/extending-aem/extending-msm.....

 

and having the same code source than: https://github.com/Adobe-Marketing-Cloud/experiencemanager-java-msmrollout/blob/master/MyLiveActionF...

 

and using the same dependencies in my pom.xml ... I have the same error:

om.day.cq.wcm.msm.impl.RolloutConfigManagerFactoryImpl RolloutConfig /apps/msm/wcm/rolloutconfigs/custom-live-copy/jcr:content is invalid: Failed to resolve Factory with id exampleLiveAction, maybe Service is uninstalled 

 

do you have or anybody else any idea on how to resolve this.

 

Thank you

sachinsaxena1

14-03-2019

Hi smacdonald2008

i am trying to follow same steps for creating custom rollout action at aem 6.4 sp2 but getting below error -"com.day.cq.wcm.msm.impl.RolloutConfigManagerFactoryImpl RolloutConfig /apps/msm/test/rolloutconfigs/examplerolloutconfig/jcr:content is invalid: Failed to resolve Factory with id exampleLiveAction, maybe Service is uninstalled".

is there anything changed in 6.4 to create custom rollout action?

Thanks

smacdonald2008

04-11-2016

Yes - it teaches you how to successfully build a custom rollout action. The code compiles and is invoked when a new LiveCopy page is activated. 

mohanb

01-11-2016

Thanks @smacdonald2008

Issue was with getName() method which returned null in the article code and that's fixed in the github code you've pointed. now #2, error in the log files is not appearning

custom live action registered under the node doesn’t appear on screen. i’ve seen default and other roll-out configuration which displays all the information when page is viewed. attached is the screenshot. Also, when i edit/save the settings of rollout config, i see below error message in error.log. 

 

#1, is not resolved yet. When i initiate a live copy by selecting source, destination and specifying rollout (standard rollout -default, custom rollout - to trigger custom action), custom action is NOT triggered. I have to goto live copy instance and synchronise explicitly, only then changes happen and reflect on screen. Is this how it is supposed to work?