<div dir="ltr">If the file is valid then perhaps it's a bug in the Xerces parser bundled with Osmosis.  The JDK version you use shouldn't matter because I don't use its XML parser (Java bundles an ancient version of Xerces with more serious unicode bugs).<div><br></div><div>I don't have any suggestions other than to check if there's a later version of Xerces available.  To change it, modify the following file:</div><div><a href="https://github.com/openstreetmap/osmosis/blob/master/gradle.properties">https://github.com/openstreetmap/osmosis/blob/master/gradle.properties</a></div><div><br></div><div>Change this line:</div><div><span class="inbox-inbox-pl-k" style="box-sizing:border-box;color:rgb(167,29,93);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">dependencyVersionXerces</span><span style="color:rgb(51,51,51);font-family:consolas,"liberation mono",menlo,courier,monospace;font-size:12px;white-space:pre">=2.9.1</span><br><br>I see I added the following comments above that line which explains why I haven't upgraded it yet.</div><div><br></div><div><div># Remaining on 2.9.1 instead of 2.10.0 for now because the newer version</div><div># depends on org.w3c.dom.ElementTraversal which is not being transitively</div><div># included. This could be possibly be fixed by including a newer version</div><div># of xml-apis but this hasn't been verified.</div><div><br></div><div>Perhaps it's currently using the JDK version of xml-apis, but we may need to explicitly include a later version of that as well.  Ugh.  As an aside, I think Java 9 is supposed to be fixing some of this bundled dependency mess and allowing a newer XML library to be included.<br></div><div><br></div><div>I'd offer to help but I just don't have time.  Osmosis isn't getting much love from me any more :-(</div><br><div class="gmail_quote"><div dir="ltr">On Wed, 11 Jan 2017 at 20:33 Frederik Ramm <<a href="mailto:frederik@remote.org">frederik@remote.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br class="gmail_msg">
<br class="gmail_msg">
On 01/11/2017 10:30 AM, Frederik Ramm wrote:<br class="gmail_msg">
> SEVERE: Thread for task 1-read-xml-change failed<br class="gmail_msg">
<br class="gmail_msg">
I was a bit over-eager in shortening the stack trace. Full detail:<br class="gmail_msg">
<br class="gmail_msg">
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to parse<br class="gmail_msg">
xml file x.osc.  publicId=(null), systemId=(null), lineNumber=583379,<br class="gmail_msg">
columnNumber=90.<br class="gmail_msg">
        at<br class="gmail_msg">
org.openstreetmap.osmosis.xml.v0_6.XmlChangeReader.run(XmlChangeReader.java:114)<br class="gmail_msg">
        at java.lang.Thread.run(Thread.java:745)<br class="gmail_msg">
Caused by: org.xml.sax.SAXParseException; lineNumber: 583379;<br class="gmail_msg">
columnNumber: 90; Invalid byte 2 of 4-byte UTF-8 sequence.<br class="gmail_msg">
        at<br class="gmail_msg">
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown<br class="gmail_msg">
Source)<br class="gmail_msg">
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)<br class="gmail_msg">
        at<br class="gmail_msg">
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown<br class="gmail_msg">
Source)<br class="gmail_msg">
        at<br class="gmail_msg">
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown<br class="gmail_msg">
Source)<br class="gmail_msg">
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)<br class="gmail_msg">
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)<br class="gmail_msg">
        at<br class="gmail_msg">
org.openstreetmap.osmosis.xml.v0_6.XmlChangeReader.run(XmlChangeReader.java:109)<br class="gmail_msg">
        ... 1 more<br class="gmail_msg">
Caused by: <a href="http://org.apache.xerces.impl.io" class="gmail_msg" target="_blank">org.apache.xerces.impl.io</a>.MalformedByteSequenceException:<br class="gmail_msg">
Invalid byte 2 of 4-byte UTF-8 sequence.<br class="gmail_msg">
        at <a href="http://org.apache.xerces.impl.io" class="gmail_msg" target="_blank">org.apache.xerces.impl.io</a>.UTF8Reader.invalidByte(Unknown Source)<br class="gmail_msg">
        at <a href="http://org.apache.xerces.impl.io" class="gmail_msg" target="_blank">org.apache.xerces.impl.io</a>.UTF8Reader.read(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.impl.XMLEntityScanner.scanLiteral(Unknown Source)<br class="gmail_msg">
        at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown Source)<br class="gmail_msg">
        at<br class="gmail_msg">
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown<br class="gmail_msg">
Source)<br class="gmail_msg">
        at<br class="gmail_msg">
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown<br class="gmail_msg">
Source)<br class="gmail_msg">
        ... 11 more<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
Frederik Ramm  ##  eMail <a href="mailto:frederik@remote.org" class="gmail_msg" target="_blank">frederik@remote.org</a>  ##  N49°00'09" E008°23'33"<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
osmosis-dev mailing list<br class="gmail_msg">
<a href="mailto:osmosis-dev@openstreetmap.org" class="gmail_msg" target="_blank">osmosis-dev@openstreetmap.org</a><br class="gmail_msg">
<a href="https://lists.openstreetmap.org/listinfo/osmosis-dev" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.openstreetmap.org/listinfo/osmosis-dev</a><br class="gmail_msg">
</blockquote></div></div></div>