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
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.5 getTranslationObjectPreview returns null on starting all project jobs

Avatar

Avatar
Validate 1
Level 1
JanHumpal
Level 1

Likes

3 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
JanHumpal
Level 1

Likes

3 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
JanHumpal
Level 1

31-08-2020

Hello,

 

com.adobe.granite.translation.api.TranslationObject#getTranslationObjectPreview is behaving inconsistently upon starting a translation job.

 

When I start a translation job in a translation project using the job tile dropdown, it returns the stream as expected.

 

However, when I select the translation project tile and click 'Start Translation Job(s)' the method returns null.

 

This happens regardless of content (tested with multiple different We.Retail pages) and amount of jobs. 

 

log:

 

31.08.2020 09:19:59.317 *ERROR* [172.17.0.1 [1598865596673] POST /libs/cq/gui/components/projects/admin/translation HTTP/1.1] com.adobe.cq.wcm.translation.impl.TranslationObjectImpl Error while generating preview {}
java.lang.NullPointerException: null
	at com.adobe.cq.wcm.translation.impl.TranslationObjectImpl.getPreviewResourceResolver(TranslationObjectImpl.java:1840) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
	at com.adobe.cq.wcm.translation.impl.TranslationObjectImpl.getTranslationObjectPreviewFileInputStream(TranslationObjectImpl.java:1832) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
	at com.adobe.cq.wcm.translation.impl.TranslationObjectImpl.getTranslationObjectPreview(TranslationObjectImpl.java:1846) [com.day.cq.wcm.cq-wcm-translation:1.5.58]
...

 

View Entire Topic

Avatar

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

183 likes

Total Posts

243 posts

Correct Reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

183 likes

Total Posts

243 posts

Correct Reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
aemmarc
Employee

31-08-2020

First check that this service user exists : translation-preview

 

Second to that, log a ticket with Customer Care.  

 

Quick inspection of the source code, the resolverFactory has got to be the null object...

 

It's trying to get the resource resolver for the above service user : 

 

resolverFactory.getServiceResourceResolver(Collections.singletonMap( ResourceResolverFactory.SUBSERVICE, (Object) new String(TranslationUtils.TRANSLATION_PREVIEW_SERVICE_USER)));

 

There are getter/setter methods for the factory, so presumably however you're invoking the preview it's not calling the setter beforehand.

 

Please log a ticket with clear steps to reproduce

 

~Marc