[josm-dev] Crowd sourced Testing of OSM API 0.6

Shaun McDonald osm at shaunmcdonald.me.uk
Thu Dec 11 17:02:39 GMT 2008


Hi,
On 11 Dec 2008, at 16:32, D Tucny wrote:

> 2008/12/11 Shaun McDonald <osm at shaunmcdonald.me.uk>
> Hi,
>
> As the 0.6 XML API is now feature complete, I'd like to start a push
> for getting it tested, to iron on the final bugs prior to going live.
>
> Can you all please take a look at the following page to find out more
> about testing the 0.6 API:
> http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6/Crowd_sourced_Testing
>
> And then please put your testing hats on to find the bugs.
>
> One quick question... erm... ok, two actually now, well, one's a  
> problem... Uploading a changeset doesn't seem to have a real  
> progress bar... it shows full from the start is this supposed to  
> work? Second issue, not sure if it's been fixed, I'll update to the  
> latest release when it finishes downloading, but, while waiting for  
> the upload to complete the following happened... I'd guess it was a  
> connection reset or something, but, not sure what JOSM was doing in  
> trying to retry...
>
> Defaults for osm-server.version differ: 0.6 != 0.5
> upload to: http://api06.dev.openstreetmap.org/api/0.6/changeset/25/upload...conn
> ected
> backing off for 10 seconds...retrying (9 left)
> Defaults for osm-server.version differ: 0.6 != 0.5
> upload to: http://api06.dev.openstreetmap.org/api/0.6/changeset/25/close...Defau
> lts for osm-server.version differ: 0.6 != 0.5
> connected
> Defaults for osm-server.version differ: 0.6 != 0.5
> upload to: http://api06.dev.openstreetmap.org/api/0.6/changeset/25/close...Defau
> lts for osm-server.version differ: 0.6 != 0.5
> connected
>

Looking at the server log, you managed to produce a bad request. The  
request that you were giving was very large, so it isn't easy to be  
able to determine why it was rejected. Assuming the Rails logging is  
including all the parameters, it would appear that part of the start  
and end XML is being chopped. Thus invalid XML is being uploaded.

Would it be possible if you could send me the osm file that you are  
trying to upload off list?

Can you try with smaller changes?

Shaun

> Path: trunk
> URL: http://josm.openstreetmap.de/svn/trunk
> Repository Root: http://josm.openstreetmap.de/svn
> Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
> Revision: 1097
> Node Kind: directory
> Last Changed Author: framm
> Last Changed Rev: 1097
> Last Changed Date: 2008-12-01 02:04:27 +0100 (Mon, 01 Dec 2008)
>
>
> java.lang.RuntimeException: Unexpected end of file from server  
> java.net.SocketException
> 	at  
> org 
> .openstreetmap 
> .josm.io.OsmServerWriter.stopChangeset(OsmServerWriter.java:475)
> 	at  
> org 
> .openstreetmap 
> .josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:156)
> 	at org.openstreetmap.josm.actions.UploadAction 
> $2.realRun(UploadAction.java:152)
> 	at  
> org 
> .openstreetmap 
> .josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:84)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown  
> Source)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> Caused by: java.net.SocketException: Unexpected end of file from  
> server
> 	at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
> 	at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
> 	at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
> 	at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
> 	at  
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown  
> Source)
> 	at java.net.HttpURLConnection.getResponseCode(Unknown Source)
> 	at  
> org 
> .openstreetmap 
> .josm.io.OsmServerWriter.stopChangeset(OsmServerWriter.java:416)
> 	... 6 more
>




More information about the josm-dev mailing list