We are working on AEM 6.1 We have a custom job that will get activate a site once it got created in author. On site creation, in our custome job, we are creating some user groups and providing access to that site only for them and then will activate the site. But our replication queue is getting stuck as rep:policy node us not getting activated.
Below is the error we are getting.
07.06.2016 14:12:18 - ERROR - publish1 : Replication (ACTIVATE) of /content/groups/mysite/rep:policy not successful. Conversation follows
07.06.2016 14:12:18 - ERROR - publish1 : ------------------------------------------------
07.06.2016 14:12:18 - ERROR - publish1 : Sending message to 10.43.32.4:8443
07.06.2016 14:12:18 - ERROR - publish1 : >> POST /bin/receive HTTP/1.0
07.06.2016 14:12:18 - ERROR - publish1 : >> Action: Activate
07.06.2016 14:12:18 - ERROR - publish1 : >> Path: /content/groups/mysite/rep%3apolicy
07.06.2016 14:12:18 - ERROR - publish1 : >> Handle: /content/groups/mysite/rep%3apolicy
07.06.2016 14:12:18 - ERROR - publish1 : >> Referer: about:blank
07.06.2016 14:12:18 - ERROR - publish1 : >> ...spooling 646 bytes...
07.06.2016 14:12:18 - ERROR - publish1 : --
07.06.2016 14:12:18 - ERROR - publish1 : << HTTP/1.1 400 Bad Request
07.06.2016 14:12:18 - ERROR - publish1 : << Date: Tue, 07 Jun 2016 18:12:18 GMT
07.06.2016 14:12:18 - ERROR - publish1 : << X-Content-Type-Options: nosniff
07.06.2016 14:12:18 - ERROR - publish1 : << Content-Type: text/plain; charset=UTF-8
07.06.2016 14:12:18 - ERROR - publish1 : << Content-Length: 37
07.06.2016 14:12:18 - ERROR - publish1 : << Server: Jetty(9.2.9.v20150224)
07.06.2016 14:12:18 - ERROR - publish1 : << X-Powered-By: Jetty(9.2.9.v20150224)
07.06.2016 14:12:18 - ERROR - publish1 : <<
07.06.2016 14:12:18 - ERROR - publish1 : << error: java.lang.NullPointerException
07.06.2016 14:12:18 - ERROR - publish1 : Message sent.
Any idea how this can be resolved?