Modify

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#7982 closed defect (fixed)

plugins crashing with r5466

Reported by: rickmastfan67 Owned by: Don-vip
Priority: major Component: Core
Version: latest Keywords:
Cc:

Description (last modified by Don-vip)

Steps to reproduce:

  1. Download some data
  2. Watch the openstreetbugs plugin crash instantly.
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-08-21 01:31:07
Last Changed Author: Don-vip
Revision: 5466
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-08-21 00:26:48 +0200 (Tue, 21 Aug 2012)
Last Changed Rev: 5466

Identification: JOSM/1.5 (5466 en)
Memory Usage: 167 MB / 2730 MB (79 MB allocated, but free)
Java version: 1.7.0_05, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Operating system: Windows 7
Dataset consistency test: No problems found

Plugin: OpeningHoursEditor (28477)
Plugin: buildings_tools (28529)
Plugin: mapdust (28412)
Plugin: measurement (28412)
Plugin: mirrored_download (28418)
Plugin: openstreetbugs (28412)
Plugin: reverter (28535)
Plugin: turnrestrictions (28412)
Plugin: undelete (28501)
Plugin: utilsplugin2 (28556)

org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin openstreetbugs
	at org.openstreetmap.josm.plugins.PluginProxy.mapFrameInitialized(PluginProxy.java:32)
	at org.openstreetmap.josm.plugins.PluginHandler.notifyMapFrameChanged(PluginHandler.java:859)
	at org.openstreetmap.josm.Main.setMapFrame(Main.java:211)
	at org.openstreetmap.josm.Main.addLayer(Main.java:365)
	at org.openstreetmap.josm.actions.downloadtasks.DownloadOsmTask$DownloadTask.finish(DownloadOsmTask.java:255)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable$1.run(PleaseWaitRunnable.java:89)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.awt.Dialog.show(Unknown Source)
	at java.awt.Component.show(Unknown Source)
	at java.awt.Component.setVisible(Unknown Source)
	at java.awt.Window.setVisible(Unknown Source)
	at java.awt.Dialog.setVisible(Unknown Source)
	at org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor$4.run(PleaseWaitProgressMonitor.java:170)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.openstreetmap.josm.plugins.PluginProxy.mapFrameInitialized(PluginProxy.java:29)
	... 40 more
Caused by: java.lang.NoSuchMethodError: org.openstreetmap.josm.data.Preferences.getBoolean(Ljava/lang/String;)Z
	at org.openstreetmap.josm.plugins.osb.gui.OsbDialog.<init>(OsbDialog.java:111)
	at org.openstreetmap.josm.plugins.osb.OsbPlugin.mapFrameInitialized(OsbPlugin.java:79)
	... 45 more

Or simply:

  1. Install all plugins and restart JOSM
  2. Many plugins can't start anymore

Attachments (0)

Change History (7)

comment:1 Changed 9 months ago by jttt

  • Owner changed from team to Don-vip

comment:2 follow-up: Changed 9 months ago by Jttt

Btw, I don't see a reason for org.openstreetmap.josm.data.Preferences.getBoolean to return big Boolean when the returned value can't never be null.

comment:3 Changed 9 months ago by anonymous

Ticket #7983 has been marked as a duplicate of this ticket.

comment:4 in reply to: ↑ 2 Changed 9 months ago by Don-vip

Replying to Jttt:

Btw, I don't see a reason for org.openstreetmap.josm.data.Preferences.getBoolean to return big Boolean when the returned value can't never be null.

There is none, my mistake, I should not have committed this part.

comment:5 Changed 9 months ago by Don-vip

  • Resolution set to fixed
  • Status changed from new to closed

In 5467/josm:

fix #7982 - Revert unwanted Preferences.getBoolean change that prevents some plugins to start

comment:6 Changed 9 months ago by Don-vip

  • Component changed from Plugin openstreetbugs to Core
  • Description modified (diff)
  • Summary changed from openstreetbugs plugin crashing after downloading some data in r5466 to plugins crashing with r5466

comment:7 Changed 9 months ago by skyper

Ticket #7995 has been marked as a duplicate of this ticket.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.