Uploaded image for project: 'Content Translation Extended (CTX)'
  1. Content Translation Extended (CTX)
  2. EXCONTRANS-363

Exporting Content App content returns error when no content type is defined

XMLWordPrintable

    • Icon: Support Request Support Request
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 3.4.3
    • None
    • Core
    • None

      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)] 

            tmiyar Teresa Miyar
            rgaona Roberto Gaona
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: