Error during processing of replication - host must not be null | Community
Skip to main content
New Participant
August 8, 2022
Solved

Error during processing of replication - host must not be null

  • August 8, 2022
  • 2 replies
  • 1079 views

The following error is coming inside the publisher's error log. Does anyone face this issue before?

 

This job is getting executed every minute. How can we fix this issue?

 

08.08.2022 15:12:34.999 *INFO* [sling-threadpool-329daef3-1937-4169-9228-eb93ab6b2995-(apache-sling-job-thread-pool)-7-com_day_cq_replication_job_resource-only-flush(com/day/cq/replication/job/resource-only-flush)] com.day.cq.replication.Agent.resource-only-flush.queue Processing job for agent resource-only-flush
08.08.2022 15:12:34.999 *INFO* [sling-threadpool-329daef3-1937-4169-9228-eb93ab6b2995-(apache-sling-job-thread-pool)-7-com_day_cq_replication_job_resource-only-flush(com/day/cq/replication/job/resource-only-flush)] com.day.cq.replication.Agent.resource-only-flush Create new HttpClient for Dispatcher ResourceOnly Flush
08.08.2022 15:12:34.999 *INFO* [sling-threadpool-329daef3-1937-4169-9228-eb93ab6b2995-(apache-sling-job-thread-pool)-7-com_day_cq_replication_job_resource-only-flush(com/day/cq/replication/job/resource-only-flush)] com.day.cq.replication.Agent.resource-only-flush * HTTP Version: 1.1
08.08.2022 15:12:34.999 *INFO* [sling-threadpool-329daef3-1937-4169-9228-eb93ab6b2995-(apache-sling-job-thread-pool)-7-com_day_cq_replication_job_resource-only-flush(com/day/cq/replication/job/resource-only-flush)] com.day.cq.replication.Agent.resource-only-flush * Connect Timeout: 900000
08.08.2022 15:12:34.999 *INFO* [sling-threadpool-329daef3-1937-4169-9228-eb93ab6b2995-(apache-sling-job-thread-pool)-7-com_day_cq_replication_job_resource-only-flush(com/day/cq/replication/job/resource-only-flush)] com.day.cq.replication.Agent.resource-only-flush * Socket Timeout: 900000
08.08.2022 15:12:34.999 *ERROR* [sling-threadpool-329daef3-1937-4169-9228-eb93ab6b2995-(apache-sling-job-thread-pool)-7-com_day_cq_replication_job_resource-only-flush(com/day/cq/replication/job/resource-only-flush)] com.day.cq.replication.Agent.resource-only-flush.queue Error during processing of replication.
java.lang.IllegalArgumentException: host must not be null
at org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:272) [com.day.commons.osgi.wrapper.commons-httpclient:3.1.0.28]
at org.apache.commons.httpclient.HostConfiguration.setHost(HostConfiguration.java:287) [com.day.commons.osgi.wrapper.commons-httpclient:3.1.0.28]
at com.day.cq.replication.impl.transport.Http.createHttpClient(Http.java:458) [com.day.cq.cq-replication:6.2.86.CQ650-B0005]
at com.day.cq.replication.impl.transport.Http.deliver(Http.java:241) [com.day.cq.cq-replication:6.2.86.CQ650-B0005]
at com.day.cq.replication.impl.AgentImpl.doTransport(AgentImpl.java:513) [com.day.cq.cq-replication:6.2.86.CQ650-B0005]
at com.day.cq.replication.impl.AgentImpl.doReplicate(AgentImpl.java:471) [com.day.cq.cq-replication:6.2.86.CQ650-B0005]
at com.day.cq.replication.impl.AgentImpl.process(AgentImpl.java:396) [com.day.cq.cq-replication:6.2.86.CQ650-B0005]
at com.day.cq.replication.impl.queue.ReplicationQueueImpl.process(ReplicationQueueImpl.java:321) [com.day.cq.cq-replication:6.2.86.CQ650-B0005]
at com.day.cq.replication.impl.AgentManagerImpl.process(AgentManagerImpl.java:383) [com.day.cq.cq-replication:6.2.86.CQ650-B0005]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sachin_Arora_

Please check if the Transport URI, configured in settings, is in correct format i.e. it has protocol https or http.

Link of similar issue : https://stackoverflow.com/questions/16300861/httpclient-exception-java-lang-illegalargumentexception-host-parameter-is-null

 

2 replies

Sachin_Arora_
Sachin_Arora_Accepted solution
New Participant
August 9, 2022

Please check if the Transport URI, configured in settings, is in correct format i.e. it has protocol https or http.

Link of similar issue : https://stackoverflow.com/questions/16300861/httpclient-exception-java-lang-illegalargumentexception-host-parameter-is-null

 

Mayank_Gandhi
Employee
August 9, 2022

@vibhuranjan21 check Dispatcher Flush Agents settings. Is there any job running for the same?