Expand my Community achievements bar.

Failed to start translation

Avatar

Level 2

We are getting below error when we submit the page for translation. We have reached out to Smartling as well they checked and confirmed the configuration and it looks fine. Can you please help us to identify this issue?

We are facing this issue after we have upgrade to latest smartling version(5.8.8/5.8.12) on stage. We are not able to reproduce on local environment.

 

/Test-section/smartling-connector] com.adobe.cq.wcm.translation.impl.TranslationPrepareResource Failed to start translation
java.lang.reflect.UndeclaredThrowableException: null
at com.sun.proxy.$Proxy1413.createTranslationJob(Unknown Source)
at com.adobe.cq.wcm.translation.impl.TranslationPodImpl.initializeTranslationJobId(TranslationPodImpl.java:2861) [com.day.cq.wcm.cq-wcm-translation:1.5.130]
at com.adobe.cq.wcm.translation.impl.TranslationPodImpl.startTranslation(TranslationPodImpl.java:1288) [com.day.cq.wcm.cq-wcm-translation:1.5.130]
at com.adobe.cq.wcm.translation.impl.TranslationPrepareResource.startTranslationIfRequired(TranslationPrepareResource.java:455) [com.day.cq.wcm.cq-wcm-translation:1.5.130]
at com.adobe.cq.wcm.translation.impl.TranslationPrepareResource.startTranslationIfRequired(TranslationPrepareResource.java:438) [com.day.cq.wcm.cq-wcm-translation:1.5.130]
at com.adobe.cq.wcm.translation.impl.TranslationPrepareResource.processResourceForTranslation(TranslationPrepareResource.java:355) [com.day.cq.wcm.cq-wcm-translation:1.5.130]
at com.adobe.cq.wcm.translation.impl.process.TranslateSitePrepareProcess.prepareResourceForTranslation(TranslateSitePrepareProcess.java:296) [com.day.cq.wcm.cq-wcm-translation:1.5.130]
at com.adobe.cq.wcm.translation.impl.process.TranslateSitePrepareProcess.execute(TranslateSitePrepareProcess.java:238) [com.day.cq.wcm.cq-wcm-translation:1.5.130]
at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner.java:93) [com.day.cq.workflow.cq-workflow-impl:6.3.8.CQ652-B0003]
at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:194) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:271) [com.adobe.granite.workflow.core:2.0.240.CQ660-B0017]
at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsumerManager.java:502) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:351) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.24]
at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:287) [org.apache.sling.event:4.2.24]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.reflect.InvocationTargetException: null
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.smartling.aem.connector.core.impl.SmartlingTranslationServiceFactory$LoggingContextInvocationHandler.invoke(SmartlingTranslationServiceFactory.java:123) [com.smartling.aem.connector.core:5.8.8]
... 18 common frames omitted
Caused by: com.adobe.granite.translation.api.TranslationException: Locale en-us is not supported
at com.smartling.aem.connector.core.impl.SmartlingTranslationService.mapToSmartlingLocaleCode(SmartlingTranslationService.java:337) [com.smartling.aem.connector.core:5.8.8]
at com.smartling.aem.connector.core.impl.SmartlingTranslationService.createTranslationJob(SmartlingTranslationService.java:63) [com.smartling.aem.connector.core:5.8.8]
at com.smartling.aem.connector.core.impl.DelegatingTranslationService.createTranslationJob(DelegatingTranslationService.java:95) [com.smartling.aem.connector.core:5.8.8]
... 23 common frames omitted

4 Replies

Avatar

Community Advisor

Hello @Muralihb 

 

This seems to be an issue with SmartlingTranslationService, where they are unable to map "en-us".

They might be able to provide more details


Aanchal Sikka

Avatar

Level 2

Thank you @aanchal-sikka 

Have already reached out Smartling and they have looked the configuration and it looks fine.

Its working from my local machine but it was not working on our stage environment.

Avatar

Community Advisor

Hello @Muralihb - 

 

It seem locale "en-us" is not supported by the Smartling translation service. Here are a few steps you can take to troubleshoot this issue further:

 

  1. Check Smartling Configuration:

    • Double-check your Smartling configuration in AEM and ensure that the "en-us" locale is properly configured and supported by Smartling.
    • Verify that the Smartling API credentials and settings are correctly entered in AEM.
  2. Verify Locale Mapping:

    • The error mentions the method mapToSmartlingLocaleCode() in the SmartlingTranslationService class.
    • Review the implementation of this method to ensure that the mapping from AEM's locale codes to Smartling's locale codes is correctly configured.
    • Ensure that the mapping for "en-us" is correctly defined and matches the Smartling-supported locale code for American English.
  3. Smartling Connector Version:

    • The error indicates that you have upgraded to a new Smartling version (5.8.8/5.8.12).
    • Verify that the upgraded Smartling connector version is compatible with your AEM version.
    • Check for any release notes or known issues related to the Smartling connector version you are using and the compatibility with AEM.

Avatar

Level 2

Thank you @Tanika02 

Please find the below.

1. Yes, Test connection between AEM and Smartling was successful

2. Yes, i have verified the mapping and it looks fine. Also i have compared with my local and its looks identical. mapToSmartlingLocaleCode() method is using

com.adobe.granite.translation.core.common.AbstractTranslationService class

3. Latest Connector is working fine on my local machine after upgrading to 5.8.8