replicator is null - replicator api

Avatar

Avatar
Validate 10
Level 3
tc82
Level 3

Likes

21 likes

Total Posts

64 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Validate 10
Level 3
tc82
Level 3

Likes

21 likes

Total Posts

64 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Ignite 5
Ignite 3
Ignite 1
View profile
tc82
Level 3

05-05-2020

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. 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,329 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,329 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

06-05-2020

Answers (0)