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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

custom rollout and custom liveaction issues

mohanb
Level 4
Level 4

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

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

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. 

View solution in original post

12 Replies
mohanb
Level 4
Level 4

anyone faced this issue before? looking for pointers around this issue.

smacdonald2008
Level 10
Level 10

I am going through this artilce - i will get this code into a HELPX article and provide you all the steps to get it successfully running. 

mohanb
Level 4
Level 4

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?

smacdonald2008
Level 10
Level 10

I am investigating with the code that works  - my objective is to get this all working and into a HELPX article and video:

http://scottsdigitalcommunity.blogspot.ca/2016/11/extending-multi-site-manager-using.html

I hope to have this all written up and reviewed and released by Fri.

mohanb
Level 4
Level 4

Hi

Is your action getting trigger when you do rollout first time? 

TIA

smacdonald2008
Correct answer by
Level 10
Level 10

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. 

View solution in original post

smacdonald2008
Level 10
Level 10

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. 

sachinsaxena1
Level 1
Level 1

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

mohammedb397627
Level 1
Level 1

@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