Modify

Opened 11 years ago

Closed 10 years ago

#580 closed enhancement (fixed)

Better error message for DNS error when downloading

Reported by: fatbozz Owned by: framm
Priority: major Milestone:
Component: Core Version: latest
Keywords: gpx download Cc:

Description

CTRL+O
select attached gpx
load into josm
focus on end of track
and download OSM data
then only www.openstreetmap.org message box appear

D:\Profily\pe055321\Desktop>java -jar josm-latest.jar
mappaint: Using jar's elemstyles.xml: "jar:file:/D:/Profily/pe055321/Desktop/jos
m-latest.jar!/styles/standard/elemstyles.xml"
loading wmsplugin
loading validator
loading namefinder
download: http://www.openstreetmap.org/api/0.5/map?bbox=18.30742647557833,49.312
05373284925,18.66679136313383,49.66118479009101
java.net.UnknownHostException: www.openstreetmap.org

at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown

Source)

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour

ce)

at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So

urce)

at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerRea

der.java:46)

at org.openstreetmap.josm.io.BoundingBoxDownloader.parseOsm(BoundingBoxD

ownloader.java:95)

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(Unknown Source

)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Attachments (0)

Change History (3)

comment:1 Changed 11 years ago by anonymous

my fail. im behind proxy and i run it without proxy parameter, but can you add more "human readable" messagebox ?

comment:2 Changed 11 years ago by Gabriel Ebner <ge@…>

Summary: failed download osm layer when gpxBetter error message for DNS error when downloading
Type: defectenhancement

comment:3 Changed 10 years ago by Gubaer

Resolution: fixed
Status: newclosed

This has been fixed recently.

You can try it youself: disconnet from the network and try to download from api.openstreetmap.org. JOSM should now display a more userfriendly message.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.