﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8022	Exception during JOSM startup (happens randomly)	ppawel@…	team	"What steps will reproduce the problem?
 1. Start JOSM.

What is the expected result?

JOSM starts.

What happens instead?

JOSM reports exception and hangs on the startup screen.

Please provide any additional information below. Attach a screenshot if
possible.

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-07-23 01:31:06
Last Changed Author: Don-vip
Revision: 5356
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-07-22 22:36:44 +0200 (Sun, 22 Jul 2012)
Last Changed Rev: 5356

Identification: JOSM/1.5 (5356 en)
Memory Usage: 104 MB / 865 MB (46 MB allocated, but free)
Java version: 1.7.0_07, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Operating system: Linux

Plugin: DirectDownload
Plugin: DirectUpload
Plugin: FastDraw
Plugin: continuosDownload
Plugin: globalsat
Plugin: lakewalker
Plugin: openstreetbugs
Plugin: utilsplugin2
Plugin: waydownloader

java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to java.lang.Number
	at org.openstreetmap.josm.Main.<init>(Main.java:336)
	at org.openstreetmap.josm.gui.MainApplication.<init>(MainApplication.java:69)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:343)
Caused by: java.util.concurrent.ExecutionException: java.lang.ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to java.lang.Number
	at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
	at java.util.concurrent.FutureTask.get(Unknown Source)
	at org.openstreetmap.josm.Main.<init>(Main.java:333)
	... 2 more
Caused by: java.lang.ClassCastException: javax.swing.plaf.nimbus.DerivedColor$UIResource cannot be cast to java.lang.Number
	at javax.swing.AbstractButton.setUIProperty(Unknown Source)
	at javax.swing.LookAndFeel.installProperty(Unknown Source)
	at javax.swing.plaf.synth.SynthMenuItemUI.updateStyle(Unknown Source)
	at javax.swing.plaf.synth.SynthMenuItemUI.installDefaults(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.installUI(Unknown Source)
	at javax.swing.JComponent.setUI(Unknown Source)
	at javax.swing.AbstractButton.setUI(Unknown Source)
	at javax.swing.JMenuItem.setUI(Unknown Source)
	at javax.swing.JMenuItem.updateUI(Unknown Source)
	at javax.swing.JMenuItem.init(Unknown Source)
	at javax.swing.JMenuItem.<init>(Unknown Source)
	at javax.swing.JMenuItem.<init>(Unknown Source)
	at javax.swing.JMenu$1.<init>(Unknown Source)
	at javax.swing.JMenu.createActionComponent(Unknown Source)
	at javax.swing.JMenu.add(Unknown Source)
	at org.openstreetmap.josm.gui.ImageryMenu.refreshImageryMenu(ImageryMenu.java:96)
	at org.openstreetmap.josm.gui.preferences.imagery.ImageryPreference.initialize(ImageryPreference.java:1039)
	at org.openstreetmap.josm.Main$4.call(Main.java:325)
	at org.openstreetmap.josm.Main$4.call(Main.java:318)
	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
}}}
"	defect	closed	normal		Core		othersoftware	template_report	
