﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4975	Network Exception when uploading through a proxy	psolyca	team	"Hello,

I can download data with JOSM from OSM Server but I can not upload.[[BR]]
I am through an android phone connection and a proxy (ADB).[[BR]]
I can upload my GPX files with the web interface on openstreetmap.org, navigate on the internet.[[BR]]

I'm under WinXP but it is the same with Ubuntu.[[BR]]
My command :
{{{
java -DproxySet=true -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8080 -jar josm-tested.jar
}}}

I set the proxy on the windows preferences in JOSM to 127.0.0.1 and port 8080.

Here is the output in the DOS command prompt :
{{{
GET http://api.openstreetmap.org/api/capabilities... OK
Communication établie avec http://api.openstreetmap.org/api en utilisant le protocole de version 0.6
PUT http://api.openstreetmap.org/api/0.6/changeset/create... org.openstreetmap.josm.io.OsmTransferException: java.net.SocketException: Unexpected end of file from server
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:608)
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:476)
        at org.openstreetmap.josm.io.OsmApi.openChangeset(OsmApi.java:316)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:192)
        at org.openstreetmap.josm.gui.io.UploadPrimitivesTask.realRun(UploadPrimitivesTask.java:237)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:83)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:129)
        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 java.net.HttpURLConnection.getResponseMessage(Unknown Source)
        at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:532)
}}}

I searched on the internet but no solution found.[[BR]]
I change the server name but it is not working.[[BR]]
I try my mail or username to register but it is the same.[[BR]]

Thanks[[BR]]

Damien"	defect	closed	normal		Core	tested	duplicate		
