[EXCONTRANS-218] Testing - Magnolia 5.6.6 - NPE: When translating multi-lang Created: 28/May/18  Updated: 20/Jul/18  Resolved: 29/May/18

Status: Closed
Project: Content Translation Extended (CTX)
Component/s: None
Affects Version/s: 2.0
Fix Version/s: 2.0

Type: Bug Priority: Neutral
Reporter: Trung Luu Assignee: Le Hai Thanh
Resolution: Workaround exists Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1d
Original Estimate: 1.5d

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Scrum Sprint 9

 Description   

Step to reproduce:

  1. Add/remove language: Web Dev > Site > /<site>/i18n/locales
  2. Add resource to batch and submit the batch

Result:

ERROR info.magnolia.translation.ext.core.thread.SubmissionThread 28.05.2018 14:25:01 -- Error when running SubmissionThread
info.magnolia.translation.ext.core.exception.CommandException: OutputTranslationCommand error
	at info.magnolia.translation.ext.core.command.OutputTranslationCommand.onError(OutputTranslationCommand.java:54) ~[magnolia-content-translation-support-ext-core-2.0.0-SNAPSHOT.jar:?]
	at info.magnolia.translation.ext.core.command.AbstractTranslationCommand.execute(AbstractTranslationCommand.java:59) ~[magnolia-content-translation-support-ext-core-2.0.0-SNAPSHOT.jar:?]
	at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80) ~[magnolia-core-5.6.5.jar:?]
	at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69) ~[magnolia-core-5.6.5.jar:?]
	at info.magnolia.commands.chain.ChainBase.execute(ChainBase.java:101) ~[magnolia-core-5.6.5.jar:?]

Expected Result: No error occur and the batch will be translated successfully.



 Comments   
Comment by Le Hai Thanh [ 29/May/18 ]

The issue only happens on 5.6.6. After investigating, I have found out that the registered translators were missing after changing language due to changes on 5.6.6.

Temporary solution: restart server will help to reload the translator and its functionality works well. 

Comment by Le Hai Thanh [ 29/May/18 ]

https://documentation.magnolia-cms.com/display/VN/CTSE+Apps+module#CTSEAppsmodule-Magnolia5.6.6-NPEWhentranslatingmulti-lang(Magnolia-Issuetracker500b06a6-e204-3125-b989-2d75b973d05fEXCONTRANS-218)

Generated at Mon Feb 12 00:29:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.