Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Not able to fetch the feeds using custom importer service

Avatar

Level 1

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,inter...
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,inter..., [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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi Saroj,

I too have tested this https://helpx.adobe.com/experience-manager/using/polling.html  in both AEM 6.1 and 6.2. It works on Both.

//Here are the logs 
On 6.1:

06.12.2016 21:51:30.326 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent Date : Tue Dec 06 21:51:30 IST 2016
06.12.2016 21:51:30.326 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent scheme : myimporter
06.12.2016 21:51:30.326 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent datasource : myDataSource
06.12.2016 21:51:30.326 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent target : /content/geometrixx/en/poll/jcr:content

On 6.2:

06.12.2016 22:02:25.059 *INFO* [sling-default-4-myDataSource.4913] com.community.aem.SimpleDSComponent Date : Tue Dec 06 22:02:25 IST 2016
06.12.2016 22:02:25.059 *INFO* [sling-default-4-myDataSource.4913] com.community.aem.SimpleDSComponent scheme : myimporter
06.12.2016 22:02:25.059 *INFO* [sling-default-4-myDataSource.4913] com.community.aem.SimpleDSComponent datasource : myDataSource
06.12.2016 22:02:25.059 *INFO* [sling-default-4-myDataSource.4913] com.community.aem.SimpleDSComponent target: /content/geometrixx/en/poll/jcr:content

Thanks,
Ratna Kumar.

View solution in original post

4 Replies

Avatar

Administrator

Hi 

Please let us know which AEM version are you using ?

The articles you refereed are for AEM 6. If possible please share with us your package so that we can check this at our end.

~kautuk

Avatar

Correct answer by
Community Advisor

Hi Saroj,

I too have tested this https://helpx.adobe.com/experience-manager/using/polling.html  in both AEM 6.1 and 6.2. It works on Both.

//Here are the logs 
On 6.1:

06.12.2016 21:51:30.326 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent Date : Tue Dec 06 21:51:30 IST 2016
06.12.2016 21:51:30.326 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent scheme : myimporter
06.12.2016 21:51:30.326 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent datasource : myDataSource
06.12.2016 21:51:30.326 *INFO* [pool-6-thread-1] com.community.aem.SimpleDSComponent target : /content/geometrixx/en/poll/jcr:content

On 6.2:

06.12.2016 22:02:25.059 *INFO* [sling-default-4-myDataSource.4913] com.community.aem.SimpleDSComponent Date : Tue Dec 06 22:02:25 IST 2016
06.12.2016 22:02:25.059 *INFO* [sling-default-4-myDataSource.4913] com.community.aem.SimpleDSComponent scheme : myimporter
06.12.2016 22:02:25.059 *INFO* [sling-default-4-myDataSource.4913] com.community.aem.SimpleDSComponent datasource : myDataSource
06.12.2016 22:02:25.059 *INFO* [sling-default-4-myDataSource.4913] com.community.aem.SimpleDSComponent target: /content/geometrixx/en/poll/jcr:content

Thanks,
Ratna Kumar.

Avatar

Level 1

Thanks for your reply.  

I get that. I also get the logs in my error.log file as below. But my question is, where can i see the actual content which i get from the datasource URL? I should get the feeds physically somewhere to see. Is my understanding correct?

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

Avatar

Level 3

Hi saroj_rout,

I know, this post is too old. Just wanted to check, did you manage to solve this issue at that time as I am also getting the same issue now. I am using the AEM 6.1 and 6.2. I can see the details as mentioned by Ratna and you.. But feed data is not loading in AEM or on Pages.