#2691 closed defect (fixed)
Exception when trying to search for "http://"
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
I clicked on search, then I entered http://
to search for things having some URL in them. But instead of finding elements which have string http://
anywhere in the key or value, this exception is thrown:
Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: 11.3-b02 (Sun Microsystems Inc.) Main-class: JOSM Main-Version: 1627 SVN Main-Date: 2009-05-29T17:23:57.785249ZJava version: 1.6.0_05 Plugins: PicLayer;czechaddress;measurement;multipoly;openstreetbugs;remotecontrol;routing;terracer2;utilsplugin;validator;wmsplugin Plugin PicLayer Version: 14839 Plugin czechaddress Version: 0.1.1 Plugin measurement Version: 14015 Plugin multipoly Version: ${version.entry.commit.revision} Plugin openstreetbugs Version: 14826 Plugin remotecontrol Version: 14991 Plugin routing Version: 15106 Plugin terracer2 Version: ${version.entry.commit.revision} Plugin utilsplugin Version: 15127 Plugin validator Version: 15127 Plugin wmsplugin Version: 15091 java.lang.RuntimeException: java.lang.IllegalArgumentException: protocol = http host = null at org.openstreetmap.josm.gui.PleaseWaitRunnable$4.run(PleaseWaitRunnable.java:119) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) Caused by: java.lang.IllegalArgumentException: protocol = http host = null at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:146) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:724) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:654) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:977) at org.openstreetmap.josm.io.ProgressInputStream.<init>(ProgressInputStream.java:34) at org.openstreetmap.josm.actions.search.SelectionWebsiteLoader.realRun(SelectionWebsiteLoader.java:44) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:101) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)
Attachments (0)
Change History (4)
follow-up: 2 comment:1 by , 16 years ago
comment:2 by , 16 years ago
Replying to jttt:
The feature should check if url is valid, that's one bug. But more importantly it should work like other searches. New keyword should be added, for example 'referenced'. The search expression will then look like this:
referenced:file:///myosmfile.osm
Here it also leaves the download (PleaseWaitRunnable) open after the exception occurs. This is also a bug.
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 16 years ago
Please note that you have to enclose an URL with "..." in the search input field.
There is hidden search feature - see http://josm.openstreetmap.de/wiki/Help/Action/Search for explanation.
The feature should check if url is valid, that's one bug. But more importantly it should work like other searches. New keyword should be added, for example 'referenced'. The search expression will then look like this:
referenced:file:///myosmfile.osm
I don't really like the the name of the keyword ('referenced'), other suggestions are welcomed. I can provide patch if the change is agreed on.
As a workaround you can put space before http to make it work.