Modify

Ticket #2744 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Can' t download data: no protocol: /

Reported by: anonymous Owned by: anonymous
Priority: major Component: Core
Version: latest Keywords:
Cc:

Description (last modified by stoecker) (diff)

I can't download data (Ctrl+Shift+D) to JOSM. Error is:

Path: trunk URL: http://josm.openstreetmap.de/svn/trunk Repository Root: http://josm.openstreetmap.de/svn Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Revision: 1670 Node Kind: directory Last Changed Author: Gubaer Last Changed Rev: 1670 Last Changed Date: 2009-06-15 20:22:46 +0200 (Mon, 15 Jun 2009)

Java version: 1.6.0_13 Plugins: DirectUploadeditgpxutilspluginvalidatorwmsplugin Plugin DirectUpload Version: 15828 Plugin editgpx Version: 15678 Plugin utilsplugin Version: 15127 Plugin validator Version: 15127 Plugin wmsplugin Version: 15890

java.lang.RuntimeException: java.lang.RuntimeException: org.openstreetmap.josm.io.OsmApiInitializationException: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol: /

at org.openstreetmap.josm.gui.PleaseWaitRunnable$4.run(PleaseWaitRunnable.java:127) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Caused by: java.lang.RuntimeException: org.openstreetmap.josm.io.OsmApiInitializationException: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol: /

at org.openstreetmap.josm.io.BoundingBoxDownloader.parseRawGps(BoundingBoxDownloader.java:84) at org.openstreetmap.josm.actions.downloadtasks.DownloadGpsTask$Task.realRun(DownloadGpsTask.java:40) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:102) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)

Caused by: org.openstreetmap.josm.io.OsmApiInitializationException: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol: /

at org.openstreetmap.josm.io.OsmApi.initialize(OsmApi.java:183) at org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:43) at org.openstreetmap.josm.io.BoundingBoxDownloader.parseRawGps(BoundingBoxDownloader.java:51) ... 8 more

Caused by: org.openstreetmap.josm.io.OsmTransferException: java.net.MalformedURLException: no protocol: /

at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:460) at org.openstreetmap.josm.io.OsmApi.initialize(OsmApi.java:163) ... 10 more

Caused by: java.net.MalformedURLException: no protocol: /

at java.net.URL.<init>(URL.java:567) at java.net.URL.<init>(URL.java:464) at java.net.URL.<init>(URL.java:413) at org.openstreetmap.josm.io.OsmApi.sendRequest(OsmApi.java:377) ... 11 more

Attachments

preferences Download (5.9 KB) - added by anonymous 3 years ago.
my ~/.josm/preferences file

Change History

comment:1 Changed 3 years ago by anonymous

  • Owner changed from team to anonymous
  • Status changed from new to needinfo

Please attach your prefs. Strip username/password first.

Changed 3 years ago by anonymous

my ~/.josm/preferences file

comment:2 Changed 3 years ago by anonymous

it' strange, but thre are no osm-server.url= in my preferences (this file was not edited by hand)

comment:3 Changed 3 years ago by stoecker

  • Description modified (diff)

Hmm, there is nothing really strange in your prefs (Only prefs are saved which differ from default values, so server url will not be in prefs file).

Please try this and tell if one of this fixes the issue:

  • update all plugins
  • disable all plugins
  • if previous helped, enable them one by one and test
  • delete preferences

comment:4 Changed 3 years ago by anonymous

With all plugins disabled I got same error.

After deleting preferences new one created by josm, with osm-server.url= http://api.openstreetmap.org/api and this error don't repeated.

comment:5 Changed 3 years ago by stoecker

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

In r1688 this should be fixed also for your old config. There was a mismatch in default value handling caused by different concepts of older and newer code.

View

Add a 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.