Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

AEM 6.5 version issue for Twitter scheduler Component

Avatar

Level 3

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]

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @naveen123 

 

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

Kiran_Vedantam_0-1640095481190.png

 

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

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

View solution in original post

9 Replies

Avatar

Correct answer by
Community Advisor

Hi @naveen123 

 

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

Kiran_Vedantam_0-1640095481190.png

 

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

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

Avatar

Level 3

HI Kiran

Thank you so much for replying let me work on this. if any issues, i'll come back 

Avatar

Level 3

Hi Kiran,

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

Avatar

Level 3

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  

Avatar

Employee

@naveen123 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/jc... 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.

Avatar

Level 3

HI Justin,

Github ticket has been raised for this issue. Could you please check and let me know if any other info needed.

https://github.com/Adobe-Consulting-Services/acs-aem-commons/issues/2777

 

Avatar

Employee

@naveen123 this looks OK to me but I would really recommend submitting a tested pull request especially since you're obviously in a great position to test the fix.

Avatar

Level 3

Hi Justin,

I have created and Separate ServiceUserMapperImpl configuration for twitter4j which is used in AEM6.5 version as below.

naveen123_0-1643215054247.pngnaveen123_1-1643215104736.pngnaveen123_2-1643215329533.png