#2836 closed defect (fixed)
[PATCH]Download of plugins fails on JOSM 1738
Reported by: | Owned by: | jttt | |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | Core | Version: | |
Keywords: | plugin download | Cc: | delta_foxtrot@… |
Description
Download of plugins fails on JOSM 1738 with this message:
Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1738
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1738
Last Changed Date: 2009-07-05 19:42:18 +0200 (Sun, 05 Jul 2009)
Memory Usage: 23 MB / 508 MB (8 MB allocated, but free)
Java version: 1.6.0_0
java.lang.NullPointerException
at org.openstreetmap.josm.plugins.PluginSelection.finish(PluginSelection.java:101)
at org.openstreetmap.josm.gui.preferences.PluginPreference.ok(PluginPreference.java:116)
at org.openstreetmap.josm.gui.preferences.PreferenceDialog.ok(PreferenceDialog.java:93)
at org.openstreetmap.josm.actions.PreferencesAction.run(PreferencesAction.java:80)
at org.openstreetmap.josm.actions.PreferencesAction.actionPerformed(PreferencesAction.java:39)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3276)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Attachments (1)
Change History (21)
comment:1 by , 15 years ago
Owner: | changed from | to
---|
comment:2 by , 15 years ago
comment:6 by , 15 years ago
Cc: | added |
---|---|
Priority: | major → blocker |
follow-up: 10 comment:8 by , 15 years ago
follow-up: 11 comment:9 by , 15 years ago
For me downloading plugins works on 1669, but after a lot of plugins complained how I'm using too old version of JOSM I deleted ~/.josm folder, downloaded 1738 and started it on my Fedora 11 box.
I tried now again and same issue.
comment:10 by , 15 years ago
comment:11 by , 15 years ago
Replying to valent.turkovic@…:
For me downloading plugins works on 1669, but after a lot of plugins complained how I'm using too old version of JOSM I deleted ~/.josm folder, downloaded 1738 and started it on my Fedora 11 box.
I had the same issue, and reported this under a different bug ID because wmsplugin for yahoo sat imagery only does hi-res now. If you download r1732 you will be able to download plugins etc.
follow-up: 14 comment:12 by , 15 years ago
There is at least one stupid bug - line 97 in PluginSelection should be:
Collection<String> installedPlugins = Main.pref.getCollection("plugins", Collections.<String>emptySet());
not
Collection<String> installedPlugins = Main.pref.getCollection("plugins", null);
But this would fail only if there are no plugins installed. No idea yet why it fail in other cases.
comment:13 by , 15 years ago
For me downloading plugins with 1732 works.
downloaded from: http://josm.openstreetmap.de/download/
java -jar bin/josm-snapshot-1732.jar
works ok!
follow-up: 15 comment:14 by , 15 years ago
Replying to anonymous:
But this would fail only if there are no plugins installed. No idea yet why it fail in other cases.
Checking diffs, that code was already in 1732, yet it works...
http://josm.openstreetmap.de/changeset?new=1738%40trunk&old=1732%40trunk
comment:15 by , 15 years ago
Replying to delta_foxtrot2:
Replying to anonymous:
But this would fail only if there are no plugins installed. No idea yet why it fail in other cases.
Checking diffs, that code was already in 1732, yet it works...
http://josm.openstreetmap.de/changeset?new=1738%40trunk&old=1732%40trunk
Actually it was also added after 1732, but already existed in another location on line 141 or 139
by , 15 years ago
Attachment: | plugin.patch added |
---|
comment:16 by , 15 years ago
Summary: | Download of plugins fails on JOSM 1738 → [PATCH]Download of plugins fails on JOSM 1738 |
---|
No report lists installed plugins so maybe it really enough to make sure installedPlugins is not null.
Ticket #2841 has been marked as a duplicate of this ticket.