Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368183

Summary: Unexpected classcast exceptions with SwingX 1.6.3
Product: z_Archived Reporter: Michele Puccini <mik>
Component: WindowBuilderAssignee: Alexander Mitin <Alexander.Mitin>
Status: CLOSED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: Alexander.Mitin, clayberg
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
The full WindowBuilder report none

Description Michele Puccini CLA 2012-01-09 12:07:02 EST
Build Identifier: 20110916-0149

We're facing unexpected classcast exceptions with SwingX 1.6.3 when re-parsing a simple code sample (attached).

There's a good followup of the bug here:
http://www.java.net/forum/topic/javadesktop/java-desktop-technologies/swinglabs/windowbuilder-woes-swingx-163


Reproducible: Always

Steps to Reproduce:
1. create a class that extends a JXTable
2. open WindowBuilder
3. re-parse the code
Comment 1 Michele Puccini CLA 2012-01-09 12:07:56 EST
Created attachment 209218 [details]
The full WindowBuilder report
Comment 2 Michele Puccini CLA 2012-01-23 04:08:14 EST
The new version on Maven brings back SwingX functionality under WindowBuilder.

According to the author the problem did not happen on NetBeans.
Also the problem did not happen with previous versions of SwingX (1.6.2.xx) so he suspected of classloading issues:

"One change that may be exacerbating the WindowBuilder problem is the use of the ServiceLoader API to handle the loading of the UI addon stuff.  We started using ServiceLoader for obtaining the addon stuff to help separate the code to prevent it from being too interconnected. If the root cause of the WindowBuilder bugs is a ClassLoader issue, as I am assuming at this point (given both the history with NetBeans and the various stack traces here), then the addons are being created from the wrong ClassLoader because of the ServiceLoader." - kschaefe
Comment 3 Konstantin Scheglov CLA 2012-01-23 10:38:28 EST
Please attach corresponding SwingX jars.
I can not find where to download this version.
Comment 5 Konstantin Scheglov CLA 2012-02-10 09:49:03 EST
Works for me on Windows with SwingX-1.6.3 release.
Alexander, can you check on Linux or Mac?
I've uploaded test project with jars into DropBox.
Comment 6 Alexander Mitin CLA 2012-02-14 15:10:27 EST
Opens fine for me either.