com.atlassian.confluence.content.render.xhtml.XhtmlParsingException: The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,868]

Atlassian JIRA | Mark Symons | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    When a page properties macro includes an @mention, then the @mention will be included in the page properties report. However, if the @mention is then followed by an & symbol, the page properties report does not display the expected. !mention-should-display.png|thumbnail! Instead, there is a displayed error: {noformat} Error: The XML content could not be parsed. There is a problem at line 1, column 869. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,869] {noformat} ...and 480 lines of exception logging (see attached) that starts: {noformat} 2015-03-30 11:29:00,482 ERROR [http-bio-8090-exec-122] [content.render.xhtml.DefaultRenderer] render Error rendering content for view: The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,868] -- referer: http://confluence.foo.bar.com/dashboard.action | url: /display/XXX/Report+Page | userName: userx | action: viewpage | page: 19993228 com.atlassian.confluence.content.render.xhtml.XhtmlParsingException: The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,868] at com.atlassian.confluence.content.render.xhtml.StaxUtils.convertToXhtmlException(StaxUtils.java:473) at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:50) at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:41) at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:51) {noformat} h4.To Replicate # Create a page using page properties macro with label test-mention # Within the page properties macro, have a field "user" with content that is an @mention for "userx", followed by text "& team" # Create a page using page properties report macro # Edit the page properties report macro to use label "test-mention" and display the field "user" # The resulting report displays column "user" with error "Error: The XML content could not be parsed." h4.Expected behaviour Instead of the error, expect: "@userx & team" h5.Note Not sure if this is a problem with Confluence base rendering, with @mentions, or is specific to the macros tested.

    Atlassian JIRA | 2 years ago | Mark Symons
    com.atlassian.confluence.content.render.xhtml.XhtmlParsingException: The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,868]
  2. 0

    When a page properties macro includes an @mention or date macro, then this will be included in the page properties report. However, if the @mention or date macro is then followed or preceded by an & symbol, the page properties report does not display these as expected. !mention-should-display.png|thumbnail! Instead, there is a displayed error: {noformat} Error: The XML content could not be parsed. There is a problem at line 1, column 869. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,869] {noformat} ...and 480 lines of exception logging (see attached) that starts: {noformat} 2015-03-30 11:29:00,482 ERROR [http-bio-8090-exec-122] [content.render.xhtml.DefaultRenderer] render Error rendering content for view: The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,868] -- referer: http://confluence.foo.bar.com/dashboard.action | url: /display/XXX/Report+Page | userName: userx | action: viewpage | page: 19993228 com.atlassian.confluence.content.render.xhtml.XhtmlParsingException: The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,868] at com.atlassian.confluence.content.render.xhtml.StaxUtils.convertToXhtmlException(StaxUtils.java:473) at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:50) at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:41) at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:51) {noformat} h4.To Replicate # Create a page using page properties macro with label test-mention # Within the page properties macro, have a field "user" with content that is an @mention for "userx" (or a date macro), followed by text "& team" # Create a page using page properties report macro # Edit the page properties report macro to use label "test-mention" and display the field "user" # The resulting report displays column "user" with error "Error: The XML content could not be parsed." h4.Expected behaviour Instead of the error, expect: "@userx & team" or date macro & team h5.Note Not sure if this is a problem with Confluence base rendering, with @mentions, or is specific to the macros tested.

    Atlassian JIRA | 2 years ago | Mark Symons
    com.atlassian.confluence.content.render.xhtml.XhtmlParsingException: The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,868]

    Root Cause Analysis

    1. com.atlassian.confluence.content.render.xhtml.XhtmlParsingException

      The XML content could not be parsed. There is a problem at line 1, column 868. Parser message: Unexpected character ' ' (code 32) (missing name?) at [row,col {unknown-source}]: [1,868]

      at com.atlassian.confluence.content.render.xhtml.StaxUtils.convertToXhtmlException()
    2. com.atlassian.confluence
      PluggableTransformerChain.transform
      1. com.atlassian.confluence.content.render.xhtml.StaxUtils.convertToXhtmlException(StaxUtils.java:473)
      2. com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:50)
      3. com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:41)
      4. com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:51)
      4 frames