Not able to fetch the feeds using custom importer service
- December 1, 2016
- 4 replies
- 1345 views
Hi Team,
I am not able to fetch the rss feed in my local repo after implementing the custom importer service and sample template.
I followed the doc https://helpx.adobe.com/experience-manager/using/polling.html and completed all the steps till end.
I followed the doc https://helpx.adobe.com/experience-manager/using/aem_rss.html and created a template.
I created a page by going to siteadmin and selected the template which i created by using the 2nd link.
But when i hit the URL http://localhost:4502/etc/importers/polling.html and then look for the content here http://localhost:4502/content/samplerss/jcr:content.html, i don't see the content. It keeps loading. I dont see any data here.
But as per the logs, i can see the datasource and target getting printed. I am attaching few screenshots for references as well. Please let me know if i am missing something or done something wrong.
01.12.2016 14:13:24.056 *INFO* [pool-5-thread-9] com.day.cq.polling.importer.impl.PollingImporterImpl addResource: Registering PollConfig PollConfig(/content/samplerss/jcr:content): scheme=myimporter,source=http://feeds.bbci.co.uk/news/world/us_and_canada/rss.xml,target=/content/samplerss/jcr:content,interval=300s,enabled=true,login=null,password=null
01.12.2016 14:13:24.065 *INFO* [pool-5-thread-9] com.day.cq.cq-polling-importer Service [PollConfig(/content/samplerss/jcr:content): scheme=myimporter,source=http://feeds.bbci.co.uk/news/world/us_and_canada/rss.xml,target=/content/samplerss/jcr:content,interval=300s,enabled=true,login=null,password=null,3448, [java.lang.Runnable]] ServiceEvent REGISTERED
01.12.2016 14:13:24.066 *INFO* [pool-6-thread-1] com.day.cq.polling.importer.impl.PollingImporterImpl importData: Importing data from myimporter:http://feeds.bbci.co.uk/news/world/us_and_canada/rss.xml to /content/samplerss/jcr:content as admin by com.community.aem.SimpleDSComponent@3621863c
01.12.2016 14:13:24.066 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent Date : Thu Dec 01 14:13:24 PST 2016
01.12.2016 14:13:24.066 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent scheme : myimporter
01.12.2016 14:13:24.066 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent datasource : http://feeds.bbci.co.uk/news/world/us_and_canada/rss.xml
01.12.2016 14:13:24.066 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent target : /content/samplerss/jcr:content
01.12.2016 14:13:57.527 *ERROR* [127.0.0.1 [1480630437526] GET /content/samplerss/jcr:content.html HTTP/1.1] org.apache.sling.servlets.resolver.internal.helper.LocationIterator Circular dependency in resource type hierarchy detected! Check super types of rssAEM/components/page/templateRSS
01.12.2016 14:14:57.537 *INFO* [oak-repository-executor-1] com.adobe.granite.repository Service [3449, [org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent REGISTERED
01.12.2016 14:14:57.545 *INFO* [oak-repository-executor-1] com.adobe.granite.repository Service [3450, [org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent REGISTERED
01.12.2016 14:14:57.551 *INFO* [oak-repository-executor-1] com.adobe.granite.repository Service [3451, [org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent REGISTERED
01.12.2016 14:14:57.558 *INFO* [oak-repository-executor-1] com.adobe.granite.repository Service [3452, [org.apache.jackrabbit.oak.api.jmx.SessionMBean]] ServiceEvent REGISTERED
01.12.2016 14:14:57.785 *INFO* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish.queue Processing job for agent publish
01.12.2016 14:14:57.786 *INFO* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Create new HttpClient for Default Agent
01.12.2016 14:14:57.786 *INFO* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish * Auth User: admin
01.12.2016 14:14:57.786 *INFO* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish * HTTP Version: 1.1
01.12.2016 14:14:57.787 *INFO* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Sending POST request to http://localhost:4503/bin/receive?sling:authRequestLogin=1
01.12.2016 14:14:57.788 *ERROR* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Error while sending request: java.net.ConnectException: Connection refused
01.12.2016 14:14:57.788 *ERROR* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Replication (ACTIVATE) of /content/rssqb not successful: java.net.ConnectException: Connection refused Conversation follows
01.12.2016 14:14:57.788 *ERROR* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish ------------------------------------------------
01.12.2016 14:14:57.788 *ERROR* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish Sending message to localhost:4503
01.12.2016 14:14:57.788 *ERROR* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish >> POST /bin/receive HTTP/1.0
01.12.2016 14:14:57.788 *ERROR* [pool-11-thread-25-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.Agent.publish >> Action: Activate