[EXCONTRANS-363] Exporting Content App content returns error when no content type is defined Created: 12/Jan/22  Updated: 31/Jan/22  Resolved: 31/Jan/22

Status: Resolved
Project: Content Translation Extended (CTX)
Component/s: Core
Affects Version/s: None
Fix Version/s: 3.4.3

Type: Support Request Priority: Neutral
Reporter: Roberto Gaona Assignee: Teresa Miyar
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive common-labels-app.zip     XML File common-labels.MasterContent.xml    
Issue Links:
Problem/Incident
Template:

 Description   

Trying to export the contents of a content app with no content type associated yields errors like:

info.magnolia.translation.ext.core.exception.I18nResolverException: info.magnolia.translation.ext.core.exception.I18nResolverException: info.magnolia.config.registry.Registry$NoSuchDefinitionException 

This is a complete trace of such error, caused when submitting a batch containing data based on the attached app:

2022-01-14 14:04:15,588 INFO  fo.magnolia.i18nsystem.DefaultMessageBundlesLoader: Starting monitoring of info.magnolia.resourceloader.layered.LayeredResourceOrigin@68b38fba to load translation files
2022-01-14 14:04:26,570 INFO  info.magnolia.module.scheduler.CommandJob         : Starting job [UI Action triggered execution of [workflowTranslation:exportTranslationCommand] by user [superuser]. (0)]... 
2022-01-14 14:04:26,583 INFO  a.translation.ext.core.helper.I18nItemResolverImpl: The module that contained apps definition is admincentral
2022-01-14 14:04:26,583 INFO  a.translation.ext.core.helper.I18nItemResolverImpl: The module that contained apps definition is categories-app
2022-01-14 14:04:26,584 INFO  a.translation.ext.core.helper.I18nItemResolverImpl: The module that contained apps definition is common-labels-app
2022-01-14 14:04:26,584 INFO  a.translation.ext.core.helper.I18nItemResolverImpl: The selected module name is common-labels-app
2022-01-14 14:04:26,584 ERROR info.magnolia.commands.MgnlCommand                : Cannot resolve items with path /MasterContent/Captcha/global.label.captcha
info.magnolia.translation.ext.core.exception.I18nResolverException: info.magnolia.translation.ext.core.exception.I18nResolverException: info.magnolia.config.registry.Registry$NoSuchDefinitionException: mgnl:commonLabel
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.resolveFromContentApp(I18nItemResolverImpl.java:118) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.resolveItems(ExportTranslationCommand.java:267) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:222) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.processResourceNodes(ExportTranslationCommand.java:176) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.generateTranslationSubmission(ExportTranslationCommand.java:153) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.executeOnItem(ExportTranslationCommand.java:125) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.AbstractTranslationCommand.execute(AbstractTranslationCommand.java:62) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80) [magnolia-core-6.2.14.jar:?]
	at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69) [magnolia-core-6.2.14.jar:?]
	at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:110) [magnolia-module-scheduler-2.3.5.jar:?]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.2.jar:?]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?]
Caused by: info.magnolia.translation.ext.core.exception.I18nResolverException: info.magnolia.config.registry.Registry$NoSuchDefinitionException: mgnl:commonLabel
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.lambda$resolveFromContentApp$0(I18nItemResolverImpl.java:114) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) ~[magnolia-core-6.2.14.jar:?]
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:356) ~[magnolia-core-6.2.14.jar:?]
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.resolveFromContentApp(I18nItemResolverImpl.java:89) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	... 11 more
Caused by: info.magnolia.config.registry.Registry$NoSuchDefinitionException: mgnl:commonLabel
	at info.magnolia.config.registry.AbstractRegistry.getProvider(AbstractRegistry.java:127) ~[magnolia-configuration-6.2.14.jar:?]
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.addTranslationObject(I18nItemResolverImpl.java:141) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.lambda$resolveFromContentApp$0(I18nItemResolverImpl.java:106) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) ~[magnolia-core-6.2.14.jar:?]
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:356) ~[magnolia-core-6.2.14.jar:?]
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.resolveFromContentApp(I18nItemResolverImpl.java:89) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	... 11 more
2022-01-14 14:04:26,658 INFO  a.translation.ext.core.helper.I18nItemResolverImpl: The module that contained apps definition is admincentral
2022-01-14 14:04:26,658 INFO  a.translation.ext.core.helper.I18nItemResolverImpl: The module that contained apps definition is categories-app
2022-01-14 14:04:26,658 INFO  a.translation.ext.core.helper.I18nItemResolverImpl: The module that contained apps definition is common-labels-app
2022-01-14 14:04:26,658 INFO  a.translation.ext.core.helper.I18nItemResolverImpl: The selected module name is common-labels-app
2022-01-14 14:04:26,658 ERROR info.magnolia.commands.MgnlCommand                : Cannot resolve items with path /MasterContent/Captcha/global.label.captcha.description
info.magnolia.translation.ext.core.exception.I18nResolverException: info.magnolia.translation.ext.core.exception.I18nResolverException: info.magnolia.config.registry.Registry$NoSuchDefinitionException: mgnl:commonLabel
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.resolveFromContentApp(I18nItemResolverImpl.java:118) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.resolveItems(ExportTranslationCommand.java:267) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.createSubmissionItem(ExportTranslationCommand.java:222) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.processResourceNodes(ExportTranslationCommand.java:176) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.generateTranslationSubmission(ExportTranslationCommand.java:153) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.ExportTranslationCommand.executeOnItem(ExportTranslationCommand.java:125) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.command.AbstractTranslationCommand.execute(AbstractTranslationCommand.java:62) [magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:80) [magnolia-core-6.2.14.jar:?]
	at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:69) [magnolia-core-6.2.14.jar:?]
	at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:110) [magnolia-module-scheduler-2.3.5.jar:?]
	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.2.jar:?]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?]
Caused by: info.magnolia.translation.ext.core.exception.I18nResolverException: info.magnolia.config.registry.Registry$NoSuchDefinitionException: mgnl:commonLabel
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.lambda$resolveFromContentApp$0(I18nItemResolverImpl.java:114) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) ~[magnolia-core-6.2.14.jar:?]
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:356) ~[magnolia-core-6.2.14.jar:?]
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.resolveFromContentApp(I18nItemResolverImpl.java:89) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	... 11 more
Caused by: info.magnolia.config.registry.Registry$NoSuchDefinitionException: mgnl:commonLabel
	at info.magnolia.config.registry.AbstractRegistry.getProvider(AbstractRegistry.java:127) ~[magnolia-configuration-6.2.14.jar:?]
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.addTranslationObject(I18nItemResolverImpl.java:141) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.lambda$resolveFromContentApp$0(I18nItemResolverImpl.java:106) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) ~[magnolia-core-6.2.14.jar:?]
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:356) ~[magnolia-core-6.2.14.jar:?]
	at info.magnolia.translation.ext.core.helper.I18nItemResolverImpl.resolveFromContentApp(I18nItemResolverImpl.java:89) ~[magnolia-content-translation-support-ext-core-3.4.2.jar:?]
	... 11 more
2022-01-14 14:04:26,678 INFO  info.magnolia.module.scheduler.CommandJob         : Job executed successfully [UI Action triggered execution of [workflowTranslation:exportTranslationCommand] by user [superuser]. (0)] 

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