Expand my Community achievements bar.

SOLVED

Error during processing of replication - host must not be null

Avatar

Level 2

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)

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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...

 

View solution in original post

2 Replies

Avatar

Employee Advisor

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

Avatar

Correct answer by
Community Advisor

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...