Expand my Community achievements bar.

Package Replication is not working

Avatar

Level 1

Hi all,

Our client is using AEM 5.6.1 deployed in JBOSS and they are trying to create, upload and finally replicate package pragmatically.

Code snippet below : 

PostMethod postMethod = this.createPostMethod(this.ctx.getTargetURLContext() + "/crx/packmgr/service/.json"+ PACKAGES_ROOT_PATH

+ this.ctx.getGelName()

+ PATH_SEP

+ this.ctx.getPackageFileName());

 

postMethod.setRequestEntity(new MultipartRequestEntity(

new Part[] {

new StringPart("cmd", "replicate")

},

postMethod.getParams()));

And response i am getting : {"success":true,"msg":"Package is replicated asynchronously"}

The message i am getting in JSON response is "Package is replicated asynchronously" , means that installed package is now successfully queued up but why replication is not working here. 

Please let me know what could be the issue here.

2 Replies

Avatar

Level 1

Please find the attached log inf

Avatar

Level 10

Hi,

I see 2 issues here

 
29.12.2014 10:17:07.788 *ERROR* [pool-16-thread-31-<main queue>(com/day/cq/replication/job/publish-lonrs06298)] com.day.cq.replication.Agent.publish-lonrs06298 << Content-Length: 0

I think, your package is not created properly. its length is mentioned as 0. Check if the package is created with the right content.

29.12.2014 10:17:07.788 *ERROR* [pool-16-thread-31-<main queue>(com/day/cq/replication/job/publish-lonrs06298)] com.day.cq.replication.Agent.publish-lonrs06298 << Location: http://lonrs06298.fm.rbsgrp.net:8480/content/othersites/commonpages/en/error.html?errorCode=400

Also, I see there is some problem with the publisher location.