manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <>
Subject [jira] [Commented] (CONNECTORS-1325) Invalid XML character causing job to abort
Date Thu, 23 Jun 2016 06:42:16 GMT


Karl Wright commented on CONNECTORS-1325:

It looks like what you have here is a utf-16-encoded character in a supplementary plane:

As such, it should be encoded in XML as a single character with six hex digits.  However,
even if that were represented correctly, that still might not matter since Java's character
representation cannot represent such characters.  However, it might be possible to tell Xerces
to ignore such characters if they were properly encoded, at least.

In lieu of that, skipping the document because there are bad characters in it would seem to
be the only reasonable option.  However it will be brute force because *any* parsing error
would have to be presumed to be a character issue.

> Invalid XML character causing job to abort
> ------------------------------------------
>                 Key: CONNECTORS-1325
>                 URL:
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: SharePoint connector
>    Affects Versions: ManifoldCF 2.3
>            Reporter: Phil
>            Assignee: Karl Wright
>            Priority: Blocker
> The following error is causing the Manifold job to abort, and subsequently the job not
being able to finish.
> It would be good to have the crawler log this error, but not throw an exception which
causes the entire job to stop.
> {code}
> ERROR 2016-06-21 19:01:54,562 (Worker thread '6') system.WorkerThread - Exception tossed:
XML parsing error: Character reference "&#xD83D" is an invalid XML character.
> org.apache.manifoldcf.core.interfaces.ManifoldCFException: XML parsing error: Character
reference "&#xD83D" is an invalid XML character.
>         at org.apache.manifoldcf.core.common.XMLDoc.init(
>         at org.apache.manifoldcf.core.common.XMLDoc.<init>(
>         at org.apache.manifoldcf.crawler.connectors.sharepoint.SPSProxyHelper.getFieldValues(
>         at org.apache.manifoldcf.crawler.connectors.sharepoint.SharePointRepository.processDocuments(
>         at
> Caused by: org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 64; Character
reference "&#xD83D" is an invalid XML character.
>         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>         at javax.xml.parsers.DocumentBuilder.parse(
>         at org.apache.manifoldcf.core.common.XMLDoc.init(
>         ... 4 more
> {code}

This message was sent by Atlassian JIRA

View raw message