#20237 closed defect (worksforme)
A critical problem about plugin installing and running
Reported by: | anonymous | Owned by: | anonymous |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Download the latest version of JOSM.
- Go to "Plugins"
- Try to install a plugin
What is the expected result?
Plugins should work after installing.
What happens instead?
Plugins seem installed when looking to appdata, but they don't seem in JOSM's "installed" section and don't work.
Please provide any additional information below. Attach a screenshot if possible.
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-11-21 14:56:29 +0100 (Sat, 21 Nov 2020) Build-Date:2020-11-22 02:30:52 Revision:17329 Relative:URL: ^/trunk Identification: JOSM/1.5 (17329 en) Windows 10 64-Bit OS Build number: Windows 10 Home 1909 (18363) Memory Usage: 812 MB / 1820 MB (531 MB allocated, but free) Java version: 1.8.0_271-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920x1080 (scaling 1.0x1.0) Maximum Screen Size: 1920x1080 Best cursor sizes: 16x16 -> 32x32, 32x32 -> 32x32
Attachments (1)
Change History (18)
comment:1 by , 4 years ago
follow-ups: 4 17 comment:2 by , 4 years ago
Please check your preferences.xml. Does it contain a section like this showing the plugins that you installed?
<list key='plugins'> <entry value='buildings_tools'/> <entry value='reverter'/> <entry value='undelete'/> <entry value='utilsplugin2'/> </list>
If not, maybe the directory or the file is write protected?
If that doesn't help start JOSM with the --debug parameter to find out more details.
comment:3 by , 4 years ago
Component: | Plugin → Core |
---|---|
Priority: | critical → normal |
comment:4 by , 4 years ago
Replying to GerdP:
Please check your preferences.xml. Does it contain a section like this showing the plugins that you installed?
<list key='plugins'> <entry value='buildings_tools'/> <entry value='reverter'/> <entry value='undelete'/> <entry value='utilsplugin2'/> </list>If not, maybe the directory or the file is write protected?
If that doesn't help start JOSM with the --debug parameter to find out more details.
No, it doesn't. I think that %APPDATA% is not write protected. However, I inserted that code to my preferences.xml. When I run
java -Xmx4096M -debug -jar "C:\Program Files (x86)\JOSM\josm-tested.jar"
, I got that:
2020-12-15 11:06:05.594 INFO: Log level is at INFO (INFO, 800) 2020-12-15 11:06:06.197 WARNING: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF' 2020-12-15 11:06:06.213 WARNING: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF' 2020-12-15 11:06:06.229 SEVERE: java.lang.NumberFormatException: For input string: "0.9" java.lang.NumberFormatException: For input string: "0.9" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Integer.parseInt(Integer.java:652) at java.base/java.lang.Integer.parseInt(Integer.java:770) at org.openstreetmap.josm.tools.Utils.getJavaUpdate(Utils.java:1649) at org.openstreetmap.josm.gui.MainApplication.applyWorkarounds(MainApplication.java:1030) at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:811) at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:277) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:714) 2020-12-15 11:06:06.885 INFO: Detected useable IPv6 network, preferring IPv6 over IPv4. 2020-12-15 11:06:17.595 INFO: GET https://api.openstreetmap.org/api/0.6/user/details -> HTTP/1.1 200 (640 ms; 472 B) 2020-12-15 11:09:07.001 INFO: GET https://josm.openstreetmap.de/wiki/StartupPage -> HTTP/1.1 200 (656 ms) 2020-12-15 11:09:07.329 INFO: Obtained 80 Tag2Link rules from resource://META-INF/resources/webjars/tag2link/2020.10.18/index.json 2020-12-15 11:09:10.283 WARNING: Cannot lock cache directory. Will not use disk cache 2020-12-15 11:09:11.672 INFO: loading plugin 'reverter' (version 35640) 2020-12-15 11:09:19.527 INFO: RemoteControl: adding command "revert_changeset" (handled by RevertChangesetHandler) 2020-12-15 11:09:19.558 INFO: loading plugin 'utilsplugin2' (version 35671) 2020-12-15 11:09:19.792 INFO: loading plugin 'undelete' (version 35640) 2020-12-15 11:09:19.839 SEVERE: Unable to load class org.openstreetmap.josm.plugins.buildings_tools.BuildingsToolsPlugin from plugin buildings_tools using classloader PluginClassLoader [urls=[]]: java.lang.ClassNotFoundException: org.openstreetmap.josm.plugins.buildings_tools.BuildingsToolsPlugin java.lang.ClassNotFoundException: org.openstreetmap.josm.plugins.buildings_tools.BuildingsToolsPlugin at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at org.openstreetmap.josm.plugins.PluginClassLoader.loadClass(PluginClassLoader.java:73) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:398) at org.openstreetmap.josm.plugins.PluginInformation.loadClass(PluginInformation.java:382) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:803) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:892) at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:944) at org.openstreetmap.josm.gui.MainApplication.loadLatePlugins(MainApplication.java:1158) at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:922) at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:277) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:714) 2020-12-15 11:09:19.839 SEVERE: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin buildings_tools. Cause: java.lang.ClassNotFoundException: org.openstreetmap.josm.plugins.buildings_tools.BuildingsToolsPlugin org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin buildings_tools at org.openstreetmap.josm.plugins.PluginInformation.loadClass(PluginInformation.java:386) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:803) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:892) at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:944) at org.openstreetmap.josm.gui.MainApplication.loadLatePlugins(MainApplication.java:1158) at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:922) at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:277) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:714) Caused by: java.lang.ClassNotFoundException: org.openstreetmap.josm.plugins.buildings_tools.BuildingsToolsPlugin at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at org.openstreetmap.josm.plugins.PluginClassLoader.loadClass(PluginClassLoader.java:73) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:398) at org.openstreetmap.josm.plugins.PluginInformation.loadClass(PluginInformation.java:382) ... 7 more 2020-12-15 11:09:19.886 WARNING: Disable plugin - <html>Could not load plugin 'buildings_tools' because the plugin<br>main class 'org.openstreetmap.josm.plugins.buildings_tools.BuildingsToolsPlugin' was not found.<br>Delete from preferences?</html>
and although I see that the plugin is installed as .jar, it said "Could not load plugin 'buildings_tools' because the plugin main class 'org.openstreetmap.josm.plugins.buildings_tools.BuildingsToolsPlugin' was not found. Delete from preferences?"
comment:5 by , 4 years ago
If you don't have the buildings_tools.jar in your plugins directory I would expect that message. I get the same on my machine when I remove the jar file.
follow-up: 8 comment:6 by , 4 years ago
Ok, right now I have installed buildingtools plugin but the problem is plugins don't show on plugin's "Installed" section and therefore I cannot enable it.
comment:7 by , 4 years ago
Ah, maybe just a missunderstanding. You have to enable it in the list of all plugins and click OK.
comment:8 by , 4 years ago
Replying to anonymous:
Ok, right now I have installed buildingtools plugin but the problem is plugins don't show on plugin's "Installed" section and therefore I cannot enable it.
and also, the program is loading endlessly on debug mode.
by , 4 years ago
The "Installed" section after I installed my plugins several times
comment:10 by , 4 years ago
Replying to GerdP:
How exactly do you install the plugin?
I directly installed from JOSM's "Plugins" section.
comment:12 by , 4 years ago
follow-up: 15 comment:13 by , 4 years ago
OK, let's check step by step for the building_tools plugin:
- remove all existing buildings_tool.jar
- Start JOSM
- Press F12, select plugins icon, click "Download list", type building in the Search field
- Mark the checkbox for buildings_tools: Version 35669 (local: unknown)
- Click OK
- Make sure you see a popup dialog "The following pluign has been downloaded successfully" listing "building_tools(35669)"
- Make sure that you find building_tools.jar in the plugins directory
- Press F12 again, select plugins icon, check that buildings_tools appears in the list of installed plugins.
comment:14 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:15 by , 4 years ago
Replying to GerdP:
OK, let's check step by step for the building_tools plugin:
- remove all existing buildings_tool.jar
- Start JOSM
- Press F12, select plugins icon, click "Download list", type building in the Search field
- Mark the checkbox for buildings_tools: Version 35669 (local: unknown)
- Click OK
- Make sure you see a popup dialog "The following pluign has been downloaded successfully" listing "building_tools(35669)"
- Make sure that you find building_tools.jar in the plugins directory
- Press F12 again, select plugins icon, check that buildings_tools appears in the list of installed plugins.
Yay it worked (except the F12, I had to open preferences manually. Thanks.
comment:16 by , 4 years ago
Resolution: | → worksforme |
---|---|
Status: | needinfo → closed |
comment:17 by , 17 months ago
I had a similar problem with installing "todo" plugin. I updated preferences.xml manually to include "todo" in the plugin section to resolve the issue. I am using JOSM 18387 in Ubuntu 18.04 environment
Note: I have restarted JOSM several times and didn't work