Modify

Opened 5 years ago

Closed 4 years ago

#580 closed enhancement (fixed)

Better error message for DNS error when downloading

Reported by: fatbozz@… Owned by: framm
Priority: major 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 5 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 5 years ago by Gabriel Ebner <ge@…>

  • Summary changed from failed download osm layer when gpx to Better error message for DNS error when downloading
  • Type changed from defect to enhancement

comment:3 Changed 4 years ago by Gubaer

  • Resolution set to fixed
  • Status changed from new to closed

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.

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.