Modify

Opened 4 years ago

Closed 4 years ago

Last modified 17 months ago

#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?

  1. Download the latest version of JOSM.
  2. Go to "Plugins"
  3. 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)

josm.PNG (46.9 KB ) - added by anonymous 4 years ago.
The "Installed" section after I installed my plugins several times

Download all attachments as: .zip

Change History (18)

comment:1 by anonymous, 4 years ago

Note: I have restarted JOSM several times and didn't work

comment:2 by GerdP, 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 Klumbumbus, 4 years ago

Component: PluginCore
Priority: criticalnormal

in reply to:  2 comment:4 by anonymous, 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 GerdP, 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.

comment:6 by anonymous, 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 GerdP, 4 years ago

Ah, maybe just a missunderstanding. You have to enable it in the list of all plugins and click OK.

in reply to:  6 comment:8 by anonymous, 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 anonymous, 4 years ago

Attachment: josm.PNG added

The "Installed" section after I installed my plugins several times

comment:9 by GerdP, 4 years ago

How exactly do you install the plugin?

in reply to:  9 comment:10 by anonymous, 4 years ago

Replying to GerdP:

How exactly do you install the plugin?

I directly installed from JOSM's "Plugins" section.

comment:11 by GerdP, 4 years ago

Did you try my proposal in comment:7?

in reply to:  11 comment:12 by anonymous, 4 years ago

Replying to GerdP:

Did you try my proposal in comment:7?

If you mean "select your plugin and click to 'update plugins'", yes, I did it.

comment:13 by GerdP, 4 years ago

OK, let's check step by step for the building_tools plugin:

  1. remove all existing buildings_tool.jar
  2. Start JOSM
  3. Press F12, select plugins icon, click "Download list", type building in the Search field
  4. Mark the checkbox for buildings_tools: Version 35669 (local: unknown)
  5. Click OK
  6. Make sure you see a popup dialog "The following pluign has been downloaded successfully" listing "building_tools(35669)"
  7. Make sure that you find building_tools.jar in the plugins directory
  8. Press F12 again, select plugins icon, check that buildings_tools appears in the list of installed plugins.
Last edited 4 years ago by GerdP (previous) (diff)

comment:14 by GerdP, 4 years ago

Owner: changed from team to anonymous
Status: newneedinfo

in reply to:  13 comment:15 by anonymous, 4 years ago

Replying to GerdP:

OK, let's check step by step for the building_tools plugin:

  1. remove all existing buildings_tool.jar
  2. Start JOSM
  3. Press F12, select plugins icon, click "Download list", type building in the Search field
  4. Mark the checkbox for buildings_tools: Version 35669 (local: unknown)
  5. Click OK
  6. Make sure you see a popup dialog "The following pluign has been downloaded successfully" listing "building_tools(35669)"
  7. Make sure that you find building_tools.jar in the plugins directory
  8. 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 GerdP, 4 years ago

Resolution: worksforme
Status: needinfoclosed

in reply to:  2 comment:17 by arjunaraoc, 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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.