Modify

Opened 7 years ago

Closed 7 years ago

#16750 closed defect (irreproducible)

Unable to install wikipedia plugin

Reported by: nyurik Owned by: nyurik
Priority: normal Milestone:
Component: Plugin wikipedia Version:
Keywords: template_report Cc:

Description

on a clean JOSM (deleted cache, .config, .local) add wikipedia plugin, and got this. JOSM wouldn't start afterwards.

Please provide any additional information below. Attach a screenshot if possible.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2018-08-22 19:44:25 +0200 (Wed, 22 Aug 2018)
Revision:14178
Build-Date:2018-08-22 17:46:33
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (14178 en) Linux Ubuntu 18.04.1 LTS
Memory Usage: 520 MB / 3942 MB (373 MB allocated, but free)
Java version: 10.0.2+13, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
VM arguments: [--add-modules=ALL-DEFAULT,javafx.deploy, -Djava.security.manager, -Djava.util.Arrays.useLegacyMergeSort=true, --add-modules=java.activation,java.se.ee, --add-exports=java.base/sun.security.util=ALL-UNNAMED, --add-exports=java.base/sun.security.x509=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djnlpx.jvm=${JAVA_HOME}/bin/java, -Djnlpx.home=${JAVA_HOME}, -Djnlpx.remove=false, -Djnlpx.offline=false, -Djnlpx.relaunch=true, -Djnlpx.session.data=/tmp/session375651300599972253, -Djnlpx.heapsize=NULL,NULL, -Djava.security.policy=file:${JAVA_HOME}/conf/security/javaws.policy, -DtrustProxy=true, -Djnlpx.origFilenameArg=https://josm.openstreetmap.de/download/josm.jnlp, -Djava.security.manager, --illegal-access=deny, --add-modules=ALL-DEFAULT, --add-exports=java.base/com.sun.net.ssl.internal.ssl=jdk.deploy, --add-exports=java.base/jdk.internal.misc=jdk.deploy, --add-exports=java.base/jdk.internal.util.jar=jdk.deploy, --add-exports=java.base/sun.net.www=jdk.deploy, --add-exports=java.base/sun.net.www.protocol.file=jdk.deploy, --add-exports=java.base/sun.net.www.protocol.http=jdk.deploy, --add-exports=java.base/sun.net.www.protocol.http.ntlm=jdk.deploy, --add-exports=java.base/sun.net.www.protocol.https=jdk.deploy, --add-exports=java.base/sun.net.www.protocol.jar=jdk.deploy, --add-exports=java.base/sun.nio=jdk.deploy, --add-exports=java.base/sun.reflect.misc=jdk.deploy, --add-exports=java.base/sun.security.action=jdk.deploy, --add-exports=java.base/sun.security.pkcs=jdk.deploy, --add-exports=java.base/sun.security.provider=jdk.deploy, --add-exports=java.base/sun.security.provider.certpath=jdk.deploy, --add-exports=java.base/sun.security.rsa=jdk.deploy, --add-exports=java.base/sun.security.ssl=jdk.deploy, --add-exports=java.base/sun.security.timestamp=jdk.deploy, --add-exports=java.base/sun.security.util=jdk.deploy, --add-exports=java.base/sun.security.validator=jdk.deploy, --add-exports=java.base/sun.security.x509=jdk.deploy, --add-exports=java.base/sun.usagetracker=jdk.deploy, --add-exports=java.desktop/sun.awt=jdk.deploy, --add-exports=java.naming/com.sun.jndi.toolkit.url=jdk.deploy, --add-exports=java.base/jdk.internal.misc=jdk.javaws, --add-exports=java.desktop/com.sun.media.sound=jdk.javaws, --add-exports=java.desktop/sun.awt=jdk.javaws, --add-exports=java.desktop/sun.awt.image=jdk.javaws, --add-exports=java.base/jdk.internal.misc=jdk.plugin, --add-exports=java.base/sun.net=jdk.plugin, --add-exports=java.base/sun.net.www=jdk.plugin, --add-exports=java.base/sun.net.www.protocol.jar=jdk.plugin, --add-exports=java.base/sun.security.action=jdk.plugin, --add-exports=java.base/sun.security.util=jdk.plugin, --add-exports=java.desktop/com.sun.media.sound=jdk.plugin, --add-exports=java.desktop/java.awt.peer=jdk.plugin, --add-exports=java.desktop/sun.applet=jdk.plugin, --add-exports=java.desktop/sun.applet.resources=jdk.plugin, --add-exports=java.desktop/sun.awt=jdk.plugin, --add-exports=java.desktop/sun.awt.windows=jdk.plugin, --add-exports=java.desktop/sun.swing=jdk.plugin, --add-exports=jdk.jsobject/jdk.internal.netscape.javascript.spi=jdk.plugin, --add-exports=java.desktop/sun.awt.X11=jdk.plugin, --add-exports=java.desktop/sun.print=jdk.plugin, -Djdk.module.main=jdk.plugin]

Plugins:
+ wikipedia

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- W: Region [TMS_BLOCK_v2] Resetting cache
- W: Invalid jar file ''<josm.userdata>/plugins/wikipedia.jar.new'' (exists: false, canRead: false)
- W: Unable to read image: com.sun.deploy.net.FailedDownloadException: Unable to load resource
- E: Handled by bug report queue: java.lang.ExceptionInInitializerError. Cause: org.openstreetmap.josm.tools.JosmRuntimeException: Fatal: failed to locate image 'dialogs/wikipedia.???'. This is a serious configuration problem. JOSM will stop working.


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-2 (31) of javawsApplicationThreadGroup
java.lang.ExceptionInInitializerError
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:374)
	at org.openstreetmap.josm.plugins.PluginInformation.loadClass(PluginInformation.java:350)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:773)
	at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:860)
	at org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane$PluginDownloadAfterTask.run(PreferenceTabbedPane.java:172)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: org.openstreetmap.josm.tools.JosmRuntimeException: Fatal: failed to locate image 'dialogs/wikipedia.???'. This is a serious configuration problem. JOSM will stop working.
	at org.openstreetmap.josm.tools.ImageProvider.getResource(ImageProvider.java:703)
	at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:663)
	at org.openstreetmap.josm.tools.ImageProvider.get(ImageProvider.java:756)
	at org.wikipedia.WikipediaPlugin.<clinit>(WikipediaPlugin.java:31)
	... 20 more

Attachments (0)

Change History (5)

comment:1 by floscher, 7 years ago

It looks like the plugin got corrupted while downloading:

W: Invalid jar file ''<josm.userdata>/plugins/wikipedia.jar.new'' (exists: false, canRead: false)

Can you check that file?

comment:2 by Don-vip, 7 years ago

Owner: changed from floscher to nyurik
Status: newneedinfo

comment:3 by nyurik, 7 years ago

I just deleted all wikipedia.jar files everywhere on my Ubuntu system. Moreover, I deleted /home/yurik/.local/share/JOSM/ , /home/yurik/.config/JOSM/ , and /home/yurik/.cache/JOSM/

When I run the jnlp file, it downloads JOSM 14178, and starts correctly. After loading the list of plugins, it shows wikipedia local - unknown, available 1.1.1. The plugin downloads successfully, after which it shows the above error message. I have not been able to find any other places for JOSM files. The newly download /home/yurik/.local/share/JOSM/plugins/wikipedia.jar seems to be fine, it unzips and tests ok.

P.S. This has been done several times, not just once.

Last edited 7 years ago by nyurik (previous) (diff)

comment:4 by floscher, 7 years ago

Thank you for the detailed explanation, but I still can't reproduce the issue on my end (also Ubuntu. I tested with both WebStart and also when installed from the JOSM repository. JOSM version 14178, wikipedia plugin v1.1.1. And ~/.config/JOSM/, ~/.local/share/JOSM/ and ~/.cache/JOSM were deleted before testing).

Since the error message above complains about missing the icon dialogs/wikipedia.???, my best bet is still, that your wikipedia.jar is not the same as the one that is provided at https://josm.gitlab.io/wikipedia/dist/latest/wikipedia.jar , because that one contains said image. I know it sounds improbable to happen multiple times in a row, but I currently don't have another explanation.

Can you attach your ~/.local/share/JOSM/plugins/wikipedia.jar to this ticket? It should have the SHA256 checksum of 4f26e6f86ca1542541be516299b428764761930a6412b7d68175943fe061abd7.

comment:5 by Don-vip, 7 years ago

Resolution: irreproducible
Status: needinfoclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain nyurik.
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.