CMSIS_5: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId.
Resolution: the problem was caused by the recent change at Keil, which added a redirect from http to https, configuration not supported by the Java HttpURLConnect, which require to manually follow the redirections.
The error message is caused by the SAX parser trying to parse the html returned together with the 302 response.
It looks like something changed recently in the index.pidx
file, crashing the SAX parser:
Parsing "http://www.keil.com/pack/index.pidx"...
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 50; White spaces are required between publicId and systemId.
The current file reads like:
<?xml version="1.0" encoding="UTF-8" ?>
<index schemaVersion="1.1.0" xs:noNamespaceSchemaLocation="PackIndex.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
<vendor>Keil</vendor>
<url>http://www.keil.com/pack/</url>
<timestamp>2020-01-14T04:02:51.9611227+00:00</timestamp>
<pindex>
<pdsc url="http://www.keil.com/pack/" vendor="ARM" name="minar" version="1.0.0" />
...
<pdsc url="http://mcu.holtek.com.tw/pack" vendor="Holtek" name="HT32_DFP" version="1.0.24" />
</pindex>
</index>
I would suspect that the PackIndex.xsd
requires a full absolute URL.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 30 (23 by maintainers)
Evgueni seems right, I uploaded the
index.pidx
to GitHub and from there the Java parser can process it:So my guess that it has something to do with validation was not confirmed.
A curl session looks like:
The one difference that I can spot is that GitHub responds withContent-Type: text/plain; charset=utf-8
, while your server only withContent-Type: text/plain
.Could you find a fix for this?