Opened 8 years ago
Closed 8 years ago
#15222 closed defect (worksforme)
Plugins from different paths are mixed
Reported by: | SammysHP | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | template_report linux | Cc: |
Description
What steps will reproduce the problem?
- Install reltoolbox or utilsplugin2
- Update JOSM to latest version (but I noticed this with different versions during the last few weeks)
- Start JOSM
What is the expected result?
JOSM starts with all plugins enabled.
What happens instead?
reltoolbox and utilsplugin2 are not loaded and an error message is shown.
Please provide any additional information below. Attach a screenshot if possible.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2017-09-01 23:55:45 +0200 (Fri, 01 Sep 2017) Build-Date:2017-09-01 21:58:49 Revision:12711 Relative:URL: ^/trunk Identification: JOSM/1.5 (12711 en) Linux Arch Linux Memory Usage: 617 MB / 1365 MB (402 MB allocated, but free) Java version: 1.8.0_144-b01, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: :0.0 1920x1200, :0.1 1920x1200 Maximum Screen Size: 1920x1200 VM arguments: [-Djosm.restart=true, -Dawt.useSystemAAFontSettings=on, -Dswing.aatext=true, -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel] Plugins: + DirectUpload (32699) + OpeningHoursEditor (32699) + PicLayer (32796) + buildings_tools (32944) + continuosDownload (53) + contourmerge (1030) + measurement (32936) + print (32965) + reltoolbox + reverter (32796) + tageditor (33021) + terracer (33031) + utilsplugin2 Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Lane_features&style&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Lane_features_ryg&style&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Modified&style&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/LessObtrusiveNodes&style&zip=1 - https://github.com/simon04/coloured-addresses.mapcss/raw/master/dist/coloured-addresses.mapcss - https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&style&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/LitObjects&zip=1 - https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip Last errors/warnings: - E: org.openstreetmap.josm.plugins.PluginListParseException: Failed to create plugin information from manifest for plugin 'mbtiles.jar'. Cause: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin mbtiles. Cause: java.io.IOException: invalid manifest format - E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin reltoolbox. Cause: java.lang.NoClassDefFoundError: org/openstreetmap/josm/gui/NameFormatterHook. Cause: java.lang.ClassNotFoundException: org.openstreetmap.josm.gui.NameFormatterHook - W: Disable plugin - Could not load plugin reltoolbox. Delete from preferences? - E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin utilsplugin2. Cause: java.lang.NoClassDefFoundError: org/openstreetmap/josm/actions/search/SearchCompiler$MatchFactory. Cause: java.lang.ClassNotFoundException: org.openstreetmap.josm.actions.search.SearchCompiler$MatchFactory - W: Disable plugin - Could not load plugin utilsplugin2. Delete from preferences?
Some more logs:
2017-09-02 12:05:36.173 SEVERE: org.openstreetmap.josm.plugins.PluginListParseException: Failed to create plugin information from manifest for plugin 'mbtiles.jar'. Cause: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin mbtiles. Cause: java.io.IOException: invalid manifest format org.openstreetmap.josm.plugins.PluginListParseException: Failed to create plugin information from manifest for plugin 'mbtiles.jar' at org.openstreetmap.josm.plugins.PluginListParser.createInfo(PluginListParser.java:44) at org.openstreetmap.josm.plugins.PluginListParser.addPluginInformation(PluginListParser.java:96) at org.openstreetmap.josm.plugins.PluginListParser.parse(PluginListParser.java:77) at org.openstreetmap.josm.plugins.ReadLocalPluginInformationTask.processLocalPluginInformationFile(ReadLocalPluginInformationTask.java:148) at org.openstreetmap.josm.plugins.ReadLocalPluginInformationTask.scanSiteCacheFiles(ReadLocalPluginInformationTask.java:96) at org.openstreetmap.josm.plugins.ReadLocalPluginInformationTask.scanLocalPluginRepository(ReadLocalPluginInformationTask.java:138) at org.openstreetmap.josm.plugins.ReadLocalPluginInformationTask.realRun(ReadLocalPluginInformationTask.java:188) at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:95) at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:143) at org.openstreetmap.josm.plugins.PluginHandler.loadLocallyAvailablePluginInformation(PluginHandler.java:921) at org.openstreetmap.josm.plugins.PluginHandler.buildListOfPluginsToLoad(PluginHandler.java:983) at org.openstreetmap.josm.gui.MainApplication.updateAndLoadEarlyPlugins(MainApplication.java:958) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:834) Caused by: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin mbtiles at org.openstreetmap.josm.plugins.PluginInformation.<init>(PluginInformation.java:148) at org.openstreetmap.josm.plugins.PluginListParser.createInfo(PluginListParser.java:40) ... 12 more Caused by: java.io.IOException: invalid manifest format at java.util.jar.Manifest.read(Manifest.java:225) at org.openstreetmap.josm.plugins.PluginInformation.<init>(PluginInformation.java:142) ... 13 more ... 2017-09-02 12:05:40.734 SEVERE: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin reltoolbox. Cause: java.lang.NoClassDefFoundError: org/openstreetmap/josm/gui/NameFormatterHook. Cause: java.lang.ClassNotFoundException: org.openstreetmap.josm.gui.NameFormatterHook org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin reltoolbox at org.openstreetmap.josm.plugins.PluginInformation.loadClass(PluginInformation.java:347) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:778) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:864) at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:903) at org.openstreetmap.josm.gui.MainApplication.loadLatePlugins(MainApplication.java:974) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:850) Caused by: java.lang.NoClassDefFoundError: org/openstreetmap/josm/gui/NameFormatterHook at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.openstreetmap.josm.plugins.PluginInformation.loadClass(PluginInformation.java:345) ... 5 more Caused by: java.lang.ClassNotFoundException: org.openstreetmap.josm.gui.NameFormatterHook at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at org.openstreetmap.josm.plugins.PluginClassLoader.loadClass(PluginClassLoader.java:59) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 8 more ... 2017-09-02 12:05:42.573 SEVERE: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin utilsplugin2. Cause: java.lang.NoClassDefFoundError: org/openstreetmap/josm/actions/search/SearchCompiler$MatchFactory. Cause: java.lang.ClassNotFoundException: org.openstreetmap.josm.actions.search.SearchCompiler$MatchFactory org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin utilsplugin2 at org.openstreetmap.josm.plugins.PluginInformation.loadClass(PluginInformation.java:347) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:778) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:864) at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:903) at org.openstreetmap.josm.gui.MainApplication.loadLatePlugins(MainApplication.java:974) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:850) Caused by: java.lang.NoClassDefFoundError: org/openstreetmap/josm/actions/search/SearchCompiler$MatchFactory at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.openstreetmap.josm.plugins.PluginInformation.loadClass(PluginInformation.java:345) ... 5 more Caused by: java.lang.ClassNotFoundException: org.openstreetmap.josm.actions.search.SearchCompiler$MatchFactory at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at org.openstreetmap.josm.plugins.PluginClassLoader.loadClass(PluginClassLoader.java:59) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 8 more
Version of plugins reported by manual update from plugin list in preferences:
reltoolbox (33530)
utilsplugin2 (33579)
Attachments (0)
Change History (3)
comment:1 by , 8 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 8 years ago
Component: | unspecified → Core |
---|---|
Resolution: | invalid |
Status: | closed → reopened |
Summary: | Plugins reltoolbox and utilsplugin2 do not work → Plugins from different paths are mixed |
Looks like I found the reason for this problem: My JOSM profile located in ~/.config/JOSM contained a "plugins" directory with old versions from 2016. Now these files are stored in ~/.local/share/JOSM and somehow got mixed up. I deleted the directory in ~/.config/JOSM, updated the plugins (it complained about something that I don't remember anymore), restarted JOSM and everything works.
comment:3 by , 8 years ago
Keywords: | linux added |
---|---|
Resolution: | → worksforme |
Status: | reopened → closed |
We switched a long time ago, and you're the first one to report this problem.
Whoever susceptible to face the problem again has the workaround: delete ~/.config/JOSM
directory.
Please try again. Either your plugins were not uploaded before, or the jars are corrupted in your local plugins directory. These two plugins work fine.