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

Unable to get supported language list

Avatar

Avatar
Validate 1
Level 1
Madhavarao
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Madhavarao
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Madhavarao
Level 1

05-09-2018

  1. Navigate to sites in my local
  2. Select a site (en_US) We.Retail
  3. Click on "Language Copy"
  4. Next screen shows error message "ERROR: Unable to get supported language list"

The log file shows following exceptions:

06.09.2018 10:06:27.670 *ERROR* [0:0:0:0:0:0:0:1 [1536208587602] POST /libs/cq/gui/components/projects/admin/translation HTTP/1.1] com.adobe.cq.wcm.translation.impl.servlet.TranslationSupportServlet Error while getting language List

java.lang.NullPointerException: null

  at com.day.text.Text.getRelativeParent(Text.java:735)

  at com.adobe.cq.wcm.translation.impl.servlet.TranslationSupportServlet.doPost(TranslationSupportServlet.java:237)

  at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:149)

  at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:346)

  at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:378)

  at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:552)

Happened to decompile and see whats on 735 its line for

int idx = handle.length();

dont know if handle is passed as null [ instead of string ]

View Entire Topic

Avatar

Avatar
Boost 5
Level 2
mr_chawla
Level 2

Likes

5 likes

Total Posts

16 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Level 2
mr_chawla
Level 2

Likes

5 likes

Total Posts

16 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
mr_chawla
Level 2

18-06-2019

Hi, I have faced similar issue while creating language copy which was throwing error as [1] and it was occurring due to issue in the content structure at my end where it was not able to identify language root as the node exists as /content/Experiments/language-poc/blueprint-site/english rather then /content/Experiments/language-poc/blueprint-site/en.

Once I changed the node to "en" it started picking the root language local and the functionality seems to work fine. You can refer geometrixx and we-retail installed. Please check below link to get more insights into it which mentions "To create the language root you create a page and use an ISO language code as the value for the Name property."

https://helpx.adobe.com/in/experience-manager/6-4/sites/administering/using/tc-prep.html

I hope this helps.

Regards,

Sumeet Chawla

[1]:

07.06.2019 18:12:12.915 *ERROR* [103.43.112.97 [1559931132910] POST /libs/cq/gui/components/projects/admin/translation HTTP/1.1] com.adobe.cq.wcm.translation.impl.servlet.TranslationSupportServlet Error while getting language List

java.lang.NullPointerException: null

at com.day.text.Text.getRelativeParent(Text.java:741)

at com.adobe.cq.wcm.translation.impl.servlet.TranslationSupportServlet.doPost(TranslationSupportServlet.java:670)

at org.apache.sling.api.servlets.SlingAllMethodsServlet.mayService(SlingAllMethodsServlet.java:146)