Opened 16 months ago
Last modified 13 months ago
#7483 reopened defect
Problem with updating plugins with existing /usr/share/josm/plugins
| Reported by: | skyper | Owned by: | team |
|---|---|---|---|
| Priority: | major | Component: | Core |
| Version: | latest | Keywords: | Plugin |
| Cc: | dpaleino |
Description (last modified by skyper)
I think there is a problem with updating plugins.
I have the debian package josm-plugins installed. These plugins are installed under /usr/share/josm/plugins. Even before downloading the plugin list the first time I already have some plugins available (local).
- start josm
- download plugin list
- install cadastre plugin
- restart
Exception with package from stable
Using /usr/lib/jvm/java-6-openjdk/bin/java to execute josm. Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2012-03-06 02:36:00 Last Changed Author: Don-vip Revision: 5046 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2012-03-05 22:41:23 +0100 (Mon, 05 Mar 2012) Last Changed Rev: 5046 lade Plugin 'cadastre-fr' (Version 22295) Pluging cadastre-fr v2.0 started... current cache directory: /home/gast/.josm-latest/plugins/cadastrewms/ Replace source year AAAA by current year 2012 org.openstreetmap.josm.plugins.PluginException: Ein Fehler ist in dem Plugin cadastre-fr aufgetreten. at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:281) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:477) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:535) at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:574) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:256) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at org.openstreetmap.josm.plugins.PluginInformation.load(PluginInformation.java:272) ... 4 more Caused by: java.lang.NoSuchMethodError: org.openstreetmap.josm.tools.I18n.tr(Ljava/lang/String;)Ljava/lang/String; at cadastre_fr.CadastrePlugin.refreshConfiguration(CadastrePlugin.java:250) at cadastre_fr.CadastrePlugin.<init>(CadastrePlugin.java:166) ... 9 more
With the plugin package from debian testing josm starts without exception, but still does not use the latest plugin but the one installed under /usr/share.
Attachments (0)
Change History (6)
comment:1 Changed 16 months ago by skyper
- Description modified (diff)
comment:2 follow-up: ↓ 3 Changed 16 months ago by dpaleino
- Resolution set to invalid
- Status changed from new to closed
comment:3 in reply to: ↑ 2 Changed 16 months ago by skyper
- Resolution invalid deleted
- Status changed from closed to reopened
Replying to dpaleino:
Why are you reporting it here?
Please report it in the Debian BTS by using "reportbug josm" from the command line.
Thanks,
David
Think you got me wrong !
I have the debian packages installed and also a start script for latest ! The problem is with latest from this page. It does not use the downloaded plugins but uses the plugins under /usr/share/josm/plugins.
This setup used to work without problem.
comment:4 Changed 15 months ago by skyper
I cannot try it with older versions as I can not download any plugins.
comment:5 Changed 15 months ago by skyper
- Priority changed from critical to major
- Summary changed from Problem with updating plugins (cadastre does not start) on debian to Problem with updating plugins with existing /usr/share/josm/plugins
OK, I summarize, we have two problems here:
- josm (from r5036 on) does download plugins to ~/.josm/plugins but only uses plugins from /usr/share/josm/plugins if the plugin exists in this directory.
plugin system for versions pre5036 seems to be totally broken because of path changes.
comment:6 Changed 13 months ago by skyper
Still a problem.



Why are you reporting it here?
Please report it in the Debian BTS by using "reportbug josm" from the command line.
Thanks,
David