×

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: Jul 6, 2018

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 / Scroll Translations.
  2. Search the page(s) with a 'content by label' macro (see How to search Confluence for usage of a macro).
  3. Open the affected page(s).
  4. Click Edit.
  5. Save page(s) without edits.

Cause

If the 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 because the xHTML can not be interpreted. 

Info

There is an equivalent issue at Atlassian: CONF-33890

Please vote for this issue.

2xlatest
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