Error during processing of replication - host must not be null | Community
Skip to main content
Level 2
Aug 8, 2022 7:20 PM UTC
Solved

Error during processing of replication - host must not be null

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.
Sachin_Arora_
Sachin_Arora_Accepted solution
New Participant
Aug 9, 2022 5:14 AM UTC

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
Aug 9, 2022 5:14 AM UTC

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

 

Translate
Mayank_Gandhi
Employee
Aug 9, 2022 3:18 AM UTC

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

Translate