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

replicator is null - replicator api

tc82
Level 4
Level 4

Am looking to activate the content items(as part of some node update activity)

For this i have built simple java stand alone application.

Am successfully able to:

1. Access the crx/de

2. traverse to the node

3. update

4. now i need to activate so am using:

replicator.replicate(session.getUserID(), ReplicationActionType.ACTIVATE, currentNode.getPath());

but am getting null pointer exception as replicator value is null. 

 

How can i get the replicator value with out making this application as aem service or anything?

Thanks for reading. 

 

 

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor
1 Reply
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor