Custom Polling Importer on AEM 6.3 with archetype 11 | Community
Skip to main content
bhavyas69819199
August 12, 2017
Solved

Custom Polling Importer on AEM 6.3 with archetype 11

  • August 12, 2017
  • 3 replies
  • 2916 views

I have followed this link to create a custom polling importer :

Adobe Experience Manager Help | Creating Custom Data Importer Services for Adobe Experience Manager

I have followed all the steps correctly on both AEM 6.2 with archetype 10 and AEM 6.3 with archetype 11.

But the service seems to get called fine in AEM 6.2 archetype10 but not on AEM 6.3. archetype11.

AEM 6.2 with Archetype 10

Error.log file

*****************************************************************************************************

  1. 12.08.2017 14:59:46.747 *INFO* [sling-oak-observation-49] com.day.cq.polling.importer.impl.PollingImporterImpl addResource: Registering PollConfig PollConfig(/content/poll/jcr:content): scheme=myimporter,source=myDataSource,target=/content/poll/jcr:content,interval=1800s,enabled=true
  2. 12.08.2017 14:59:46.748 *INFO* [sling-oak-observation-49] com.day.cq.cq-polling-importer Service [PollConfig(/content/poll/jcr:content): scheme=myimporter,source=myDataSource,target=/content/poll/jcr:content,interval=1800s,enabled=true,5078, [java.lang.Runnable]] ServiceEvent REGISTERED
  3. 12.08.2017 14:59:46.767 *INFO* [sling-default-22-myDataSource.5078] com.day.cq.polling.importer.impl.PollingImporterImpl importData: Importing data from myimporter:myDataSource to /content/poll/jcr:content as polling-importer-service by uk.co.three.rebus.three_rebus.core.SimpleDSComponent@32f2dd0b
  4. 12.08.2017 14:59:46.768 *INFO* [sling-default-22-myDataSource.5078] uk.co.three.rebus.three_rebus.core.SimpleDSComponent Date : Sat Aug 12 14:59:46 IST 2017
  5. 12.08.2017 14:59:46.768 *INFO* [sling-default-22-myDataSource.5078] uk.co.three.rebus.three_rebus.core.SimpleDSComponent scheme : myimporter
  6. 12.08.2017 14:59:46.768 *INFO* [sling-default-22-myDataSource.5078] uk.co.three.rebus.three_rebus.core.SimpleDSComponent datasource : myDataSource
  7. 12.08.2017 14:59:46.768 *INFO* [sling-default-22-myDataSource.5078] uk.co.three.rebus.three_rebus.core.SimpleDSComponent target : /content/poll/jcr:content

  ********************************************************************************************************************

AEM 6.3 with Archetype 11

Error.log file

******************************************************************************

  1. 12.08.2017 15:11:59.760 *WARN* [sling-cq-polling-importer-10-http://localhost:4502/content/Commercial.xml.4240] com.day.cq.polling.importer.impl.PollingImporterImpl importData: Cannot import from PollConfig(/content/Poll/jcr:content): scheme=myimporter,source=http://localhost:4502/content/Commercial.xml,target=/content/Poll/jcr:content,interval=300s,enabled=true: No importer for scheme myimporter registered

**********************************************************************************

Is this issue because of the Archetype version or because of AEM version? What could possibly be wrong? Please Help.

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 Feike_Visser1

I made an example, works fine on 6.3.

Have a look. htl-examples/CustomPolling.java at master · heervisscher/htl-examples · GitHub

3 replies

smacdonald2008
Level 10
August 12, 2017

I recommend using Arch 10 on AEM 6.3 if it works. Sometime newer commands -- like this one -- still has issues. Use the stable version.

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
August 14, 2017
smacdonald2008
Level 10
August 14, 2017

Thanks Feike - great community contribution!