×

You're using an outdated browser

For a better experience, keep your browser up to date. Check here for the latest version.

Manual

How to solve the 'Render.xHTMLException'?

Roman Serazhiev

Roman Serazhiev Last update: May 3, 2019

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:

[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.

Info

There is an equivalent issue at Atlassian: CONF-33890

Please vote for this issue.

2x3.11
We use cookies to create a secure and effective browsing experience for our website visitors and to understand how you use our site (i.e. Google Analytics). For more information: click here.
Ok