Modify

Opened 19 months ago

Closed 17 months ago

Last modified 12 months ago

#6999 closed defect (needinfo)

XML document structures must start and end within the same entity

Reported by: anonymous Owned by: anonymous
Priority: normal Component: Core
Version: Keywords: template_report
Cc: framm

Description

What steps will reproduce the problem?

  1. Do some editing
  2. upload data to server

What is the expected result?

Data send to servers

What happens instead?

Some data is send to servers, but an error message appears

Please provide any additional information below. Attach a screenshot if
possible.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2011-10-04 01:31:24
Last Changed Author: bastiK
Revision: 4487
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2011-10-03 22:52:38 +0200 (Mon, 03 Oct 2011)
Last Changed Rev: 4487

Identification: JOSM/1.5 (4487 fr)
Memory Usage: 69 MB / 247 MB (28 MB allocated, but free)
Java version: 1.6.0_26, Sun Microsystems Inc., Java HotSpot(TM) Client VM
Operating system: Linux
Dataset consistency test: No problems found

Plugin: cadastre-fr (26835)
Plugin: openstreetbugs (26606)
Plugin: turnrestrictions (26666)

org.openstreetmap.josm.io.OsmTransferException: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
	at org.openstreetmap.josm.io.OsmApi.uploadDiff(OsmApi.java:473)
	at org.openstreetmap.josm.io.OsmServerWriter.uploadChangesAsDiffUpload(OsmServerWriter.java:119)
	at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:195)
	at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:233)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:79)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:125)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)
Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
	at org.openstreetmap.josm.io.DiffResultProcessor.parse(DiffResultProcessor.java:93)
	at org.openstreetmap.josm.io.OsmApi.uploadDiff(OsmApi.java:465)
	... 8 more
Caused by: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
	at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.endEntity(XMLDocumentFragmentScannerImpl.java:905)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:605)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1393)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1763)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces(XMLEntityScanner.java:1517)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(XMLDocumentFragmentScannerImpl.java:1528)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1320)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
	at org.openstreetmap.josm.io.DiffResultProcessor.parse(DiffResultProcessor.java:85)
	... 9 more

Attachments (2)

Error_maourine.osm (358.1 KB) - added by anonymous 19 months ago.
Error_maourine_2.osm (693.8 KB) - added by anonymous 19 months ago.

Download all attachments as: .zip

Change History (11)

Changed 19 months ago by anonymous

Changed 19 months ago by anonymous

comment:1 Changed 19 months ago by skyper

Ticket #6995 has been marked as a duplicate of this ticket.

comment:2 Changed 19 months ago by mdk

Could the french translation be a problem? Both use "JOSM/1.5 (4487 fr)".

Maybe there is a translated String used for generating the XML.

comment:3 Changed 19 months ago by mdk

Also #7001 has a similar XML generation problem (again a frensh 4487 version).

Maybe a wrong (or missing) XML-Escaping can cause this problem?

comment:4 Changed 19 months ago by stoecker

Ticket #7001 has been marked as a duplicate of this ticket.

comment:5 Changed 19 months ago by stoecker

  • Owner changed from team to anonymous
  • Status changed from new to needinfo

Did the uploads succeed? Can you give a changeset ID?

Actually this looks more like the server reply is defective.

comment:6 Changed 17 months ago by stoecker

  • Resolution set to needinfo
  • Status changed from needinfo to closed

comment:7 Changed 12 months ago by anonymous

Ticket #7696 has been marked as a duplicate of this ticket.

comment:8 Changed 12 months ago by anonymous

Ticket #5305 has been marked as a duplicate of this ticket.

comment:9 Changed 12 months ago by skyper

  • Cc framm added

If the server is causing this problem we should at least contact the developers (fill a bug report).

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.