Custom Polling Importer on AEM 6.3 with archetype 11 | Community
Skip to main content
bhavyas69819199
New Participant
Aug 12, 2017 10:13 AM UTC
Solved

Custom Polling Importer on AEM 6.3 with archetype 11

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.
Feike_Visser1
Feike_Visser1Accepted solution
Employee
Aug 14, 2017 9:38 AM UTC

3 replies

smacdonald2008
Level 10
Aug 14, 2017 5:33 PM UTC

Thanks Feike - great community contribution!

Translate
Feike_Visser1
Feike_Visser1Accepted solution
Employee
Aug 14, 2017 9:38 AM UTC

I made an example, works fine on 6.3.

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

Translate
smacdonald2008
Level 10
Aug 12, 2017 11:16 PM UTC

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.

Translate