Skip to main content
Skip table of contents

Resolve "Render.xHTMLException" Error

Problem

If you want to create a Translation ZIP, the following error occurs:

Besides the page content of pages with the content by label macro will not be displayed and a RuntimeException is printed in the log:

CODE
[INFO] [talledLocalContainer] java.lang.RuntimeException: com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (java.lang.String cannot be cast to com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.ResourceIdentifier)
[INFO] [talledLocalContainer]     at com.k15t.scroll.platform.model.translation.transformers.ExtractTranslationContentTransformer.transform(ExtractTranslationContentTransformer.java:69)
[INFO] [talledLocalContainer]     at com.k15t.scroll.platform.model.translation.pages.AbstractTranslatedPage.getContent(AbstractTranslatedPage.java:118)
[INFO] [talledLocalContainer]     at com.k15t.scroll.platform.model.translation.provider.Translatable.<init>(Translatable.java:16)
...
[INFO] [talledLocalContainer] Caused by: com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (java.lang.String cannot be cast to com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.ResourceIdentifier)
[INFO] [talledLocalContainer]     at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:64)
[INFO] [talledLocalContainer]     at com.atlassian.confluence.content.render.xhtml.DefaultXhtmlContent.replaceMacroDefinitionsWithString(DefaultXhtmlContent.java:215)
[INFO] [talledLocalContainer]     at sun.reflect.GeneratedMethodAccessor1276.invoke(Unknown Source)
...
[INFO] [talledLocalContainer] Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.ResourceIdentifier
[INFO] [talledLocalContainer]     at com.atlassian.confluence.content.render.xhtml.storage.macro.StorageMacroV2Marshaller.writeParameterValue(StorageMacroV2Marshaller.java:174)
[INFO] [talledLocalContainer]     at com.atlassian.confluence.content.render.xhtml.storage.macro.StorageMacroV2Marshaller.access$500(StorageMacroV2Marshaller.java:40)
...

Environment

  • Scroll Versions
  • Scroll Translations

Resolution

  1. Deactivate Scroll Versions and Scroll Translations in the Confluence’s UPM,
  2. search for pages with 'Content by Label' macro (see How to search Confluence for usage of a macro),
  3. open affected pages,
  4. click Edit,
  5. save pages without edits,
  6. enable Scroll Versions and Scroll Translations back in the Confluence’s UPM.

Cause

If Scroll Versions or Scroll Translations is activated, pages containing a Content by Label Macro will not be displayed correctly if the space has been created using the Documentation Blueprint.

There is an equivalent issue at Atlassian: CONF-33890

Please vote for this issue.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.