AEM 6.5 version issue for Twitter scheduler Component | Community
Skip to main content
Level 3
December 21, 2021
Solved

AEM 6.5 version issue for Twitter scheduler Component

  • December 21, 2021
  • 1 reply
  • 2424 views

Hi All,

 Could you please help on this below issue.

error.log - the twitter feed scheduler is erroring out with the following exception and so does not retrieve twitter feed.

17.12.2021 13:10:00.001 ERROR [sling-default-4-com.adobe.acs.commons.twitter.impl.TwitterFeedScheduler.7881] com.adobe.acs.commons.twitter.impl.TwitterFeedScheduler Exception while running TwitterFeedScheduler.
org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.adobe.acs.acs-aem-commons-bundle [627] and sub service twitter-updater
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:79) [org.apache.sling.resourceresolver:1.7.0]
at com.adobe.acs.commons.twitter.impl.TwitterFeedScheduler.run(TwitterFeedScheduler.java:73) [com.adobe.acs.acs-aem-commons-bundle:4.12.0]
at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:349) [org.apache.sling.commons.scheduler:2.7.12]

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 Kiran_Vedantam

Hi @naveenve 

 

This should be an issue with the service user of this service. Check this:

 

Related url: https://adobe-consulting-services.github.io/acs-aem-commons/features/social/twitter/index.html

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

1 reply

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
December 21, 2021

Hi @naveenve 

 

This should be an issue with the service user of this service. Check this:

 

Related url: https://adobe-consulting-services.github.io/acs-aem-commons/features/social/twitter/index.html

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

NaveenVeAuthor
Level 3
January 25, 2022

Hi Kiran,

Still now this issue is not resolved and I have followed your document as well. But same issue i am getting.

Adobe Employee
January 25, 2022

Hi Justin,

Could you please help on this issue.

In AEM 6.2 twitter feed is working fine and AEM6.5 it is not working. AEM 6.2 we have separate bundle for Twitter. After in AEM 6.5 version they are using the twitter 4j 1.0.0 version.

@justinedelson  


@naveenve this looks like a bug in ACS AEM Commons. If you look at https://github.com/Adobe-Consulting-Services/acs-aem-commons/blob/master/ui.apps/src/main/content/jcr_root/apps/acs-commons/config/org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-acs-commons.config#L12, the service user is defined in terms of the separate bundle. This should really be fixed in the project but is likely something you can address locally by providing your own ServiceUserMapperImpl configuration with the current bundle name.

 

I would suggest to raise an issue and pull request in the ACS AEM Commons project.