Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » ThemePainter ClassCastException Office2003Painter Jide
ThemePainter ClassCastException Office2003Painter Jide [message #819876] Tue, 13 March 2012 12:36 Go to next message
Dani Szabolcs is currently offline Dani SzabolcsFriend
Messages: 1
Registered: March 2012
Junior Member

I am using Eclipse Indigo, with built in WindowBuilder, and we also use Jidesoft components.
Sometimes when I open design mode, it can not parse the code successfully, given this as an error:

java.lang.ClassCastException: com.jidesoft.plaf.office2003.Office2003Painter cannot be cast to com.jidesoft.plaf.basic.ThemePainter
	at com.jidesoft.plaf.basic.BasicJideButtonUI.installDefaults(Unknown Source)
	at com.jidesoft.plaf.basic.BasicJideButtonUI.installUI(Unknown Source)
	at javax.swing.JComponent.setUI(Unknown Source)
	at com.jidesoft.swing.JideButton.updateUI(Unknown Source)
	at javax.swing.AbstractButton.init(Unknown Source)
	at javax.swing.JButton.<init>(Unknown Source)

The Office2003Painter is subclass of ThemePainter.
The reason is of the ClassCastException is somewhere with the classloaders.
Could anyone give me advise to avoid this?

Thank you in advance,

Re: ThemePainter ClassCastException Office2003Painter Jide [message #819904 is a reply to message #819876] Tue, 13 March 2012 13:17 Go to previous message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
We saw couple times sometimes like this in the past.
Most probably JIDE tries to set some global state in JVM/Swing (for example to cache something) which conflicts then with classes loaded within new ClassLoader after reparse.

Konstantin Scheglov,
Google, Inc.
Previous Topic:Strategy for I18N
Next Topic:WindowBuilder Architecture/Documentation Site
Goto Forum:

Current Time: Fri Jun 22 19:18:27 GMT 2018

Powered by FUDForum. Page generated in 0.01782 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top