JDK-6436388 : SWATBUG: Plugin mimetype applets can not be loaded with Mustang b87
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2006-06-08
  • Updated: 2010-04-02
  • Resolved: 2006-06-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
build tested - Mustang rc build 87 SWAT build
bundles location: /net/mizu.sfbay/usr/re/jdk6/bundles/*/latest
Tested configurations - Win XP Home/IE, Win 2000 Pro/MZ, Solaris Sparc 10/MZ

Steps to reproduce

Install JRE mustang b87 SWAT build from the above location
Invoke IE or MZ browser
Load the following MIMETYPE applet :
http://sqeweb/deployment1/deployment_mustang_int_exec_ws/deployment/tests/BATTestsuite/pluginhtml-default/Default_MimeType_160.html

The applet does not load, and you see the following exceptions :

For Internet Explorer
-----------------------
java.lang.NoClassDefFoundError: Could not initialize class java.awt.TextArea
	at MimeTypes.init(MimeTypes.java:21)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

For Mozilla
-------------
java.lang.ExceptionInInitializerError
	at MimeTypes.init(MimeTypes.java:21)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: javax.swing.KeyStroke cannot be cast to java.lang.Comparable
	at java.util.TreeMap.compare(Unknown Source)
	at java.util.TreeMap.put(Unknown Source)
	at java.util.TreeSet.add(Unknown Source)
	at java.awt.KeyboardFocusManager.initFocusTraversalKeysSet(Unknown Source)
	at java.awt.TextArea.<clinit>(Unknown Source)
	... 3 more

This is a regression from b87.

Comments
EVALUATION I suggest closing this as a duplicate of AWT bug 6436388, which is the same problem, and fixing it under that bug number.
09-06-2006

EVALUATION It's actually another instance of 6434148. The fix of 6434148 only take cares of all the occurrences of the problem in the swing workspace. But this time, the problem comes from awt :( In the static initializer of java.awt.TestArea, it uses TreeSet to store KeyStroke, which is the same problem as 6434148. A simple standalone testcase will reproduce the same exception: class test { public static void main(String[] args) { new java.awt.TextArea(); } } C:\6436388>"c:\Program Files\java\jre1.6.0\bin\java.exe" test Exception in thread "main" java.lang.ExceptionInInitializerError at test.main(test.java:3) Caused by: java.lang.ClassCastException: java.awt.AWTKeyStroke cannot be cast to java.lang.Comparable at java.util.TreeMap.compare(Unknown Source) at java.util.TreeMap.put(Unknown Source) at java.util.TreeSet.add(Unknown Source) at java.awt.KeyboardFocusManager.initFocusTraversalKeysSet(Unknown Sourc e) at java.awt.TextArea.<clinit>(Unknown Source) ... 1 more Re-assigning to awt for further investigation.
08-06-2006