You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/08/01 18:55:00 UTC

[jira] [Commented] (ANY23-379) RDFa SAXParseException: invalid XML character

    [ https://issues.apache.org/jira/browse/ANY23-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16565815#comment-16565815 ] 

ASF GitHub Bot commented on ANY23-379:
--------------------------------------

GitHub user HansBrende opened a pull request:

    https://github.com/apache/any23/pull/109

    ANY23-379 remove invalid XML characters from document

    mvn clean test -> all tests passed

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/HansBrende/any23 ANY23-379

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/any23/pull/109.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #109
    
----
commit 36fba681e4295b65faf61b251308ecd8d2aa6771
Author: Hans <fi...@...>
Date:   2018-08-01T18:46:14Z

    ANY23-379 remove invalid XML characters from document

----


> RDFa SAXParseException: invalid XML character
> ---------------------------------------------
>
>                 Key: ANY23-379
>                 URL: https://issues.apache.org/jira/browse/ANY23-379
>             Project: Apache Any23
>          Issue Type: Bug
>          Components: extractors
>    Affects Versions: 2.3
>            Reporter: Hans Brende
>            Priority: Major
>             Fix For: 2.3
>
>
> When browsing the page http://www.bray-sur-seine.fr/les-gagnants-du-concours-de-bd/ I encountered the following exception: 
> {noformat}
> org.apache.any23.extractor.ExtractionException: Error while parsing RDF document.
> 	at org.apache.any23.extractor.rdf.BaseRDFExtractor.run(BaseRDFExtractor.java:175)
> 	at org.apache.any23.extractor.rdf.BaseRDFExtractor.run(BaseRDFExtractor.java:57)
> 	at org.apache.any23.extractor.SingleDocumentExtraction.runExtractor(SingleDocumentExtraction.java:471)
> 	at org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:259)
> 	at org.apache.any23.extractor.SingleDocumentExtraction.run(SingleDocumentExtraction.java:323)
> 	at org.apache.any23.extractor.html.AbstractExtractorTestCase.extract(AbstractExtractorTestCase.java:189)
> 	at org.apache.any23.extractor.html.AbstractExtractorTestCase.assertExtract(AbstractExtractorTestCase.java:204)
> 	... 28 more
> Caused by: org.eclipse.rdf4j.rio.RDFParseException: org.xml.sax.SAXParseException; lineNumber: 205; columnNumber: 52; An invalid XML character (Unicode: 0x8) was found in the element content of the document.
> 	at org.semarglproject.rdf4j.rdf.rdfa.RDF4JRDFaParser.parse(RDF4JRDFaParser.java:111)
> 	at org.semarglproject.rdf4j.rdf.rdfa.RDF4JRDFaParser.parse(RDF4JRDFaParser.java:95)
> 	at org.apache.any23.extractor.rdf.BaseRDFExtractor.run(BaseRDFExtractor.java:171)
> 	... 34 more
> Caused by: org.semarglproject.rdf.ParseException: org.xml.sax.SAXParseException; lineNumber: 205; columnNumber: 52; An invalid XML character (Unicode: 0x8) was found in the element content of the document.
> 	at org.semarglproject.rdf.rdfa.RdfaParser.processException(RdfaParser.java:1141)
> 	at org.semarglproject.source.XmlSource.process(XmlSource.java:50)
> 	at org.semarglproject.source.StreamProcessor.processInternal(StreamProcessor.java:87)
> 	at org.semarglproject.source.BaseStreamProcessor.process(BaseStreamProcessor.java:167)
> 	at org.semarglproject.source.BaseStreamProcessor.process(BaseStreamProcessor.java:154)
> 	at org.semarglproject.rdf4j.rdf.rdfa.RDF4JRDFaParser.parse(RDF4JRDFaParser.java:109)
> 	... 36 more
> Caused by: org.xml.sax.SAXParseException; lineNumber: 205; columnNumber: 52; An invalid XML character (Unicode: 0x8) was found in the element content of the document.
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.semarglproject.source.XmlSource.process(XmlSource.java:48)
> 	... 40 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)