Ticket #368 (closed defect: fixed)
java.io.IOException: Server returned HTTP response code: 403
| Reported by: | anonymous | Owned by: | imi |
|---|---|---|---|
| Priority: | major | Component: | unspecified |
| Version: | latest | Keywords: | |
| Cc: |
Description
download: http://www.openstreetmap.org/api/0.4/map?bbox=4.909933871224165,52.349 70222575517,4.924934128775835,52.364147774244834 got return: 403 java.io.IOException: Server returned HTTP response code: 403 for URL: http://www .openstreetmap.org/api/0.4/map?bbox=4.909933871224165,52.34970222575517,4.924934 128775835,52.364147774244834
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.j
ava:1227)
at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpU
RLConnection.java:1221)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:910)
at org.openstreetmap.josm.io.ProgressInputStream.<init>(ProgressInputStr
eam.java:32)
at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerRea
der.java:52)
at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxD
ownloader.java:100)
at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$Task.rea
lRun(DownloadOsmTask.java:37)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.
java:84)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
http://www.openstreetmap.org/api/0.4/map?bbox=4.909933871224165,52.349702225755
17,4.924934128775835,52.364147774244834
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1174)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367
)
at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerRea
der.java:46)
... 6 more



It looks like you're using an old JOSM version that still tries to connect to the old 0.4 API. (We upgraded the API yesterday to version 0.5 and introduced incompatible changes in the data model, like removing segments and adding support for a way to group existing objects, called relations)
Could you please a try the new JOSM version from http://josm.openstreetmap.de/download/josm-latest.jar ?