Skip to main content



      Home
Home » Eclipse Projects » WindowBuilder » ThemePainter ClassCastException Office2003Painter Jide
ThemePainter ClassCastException Office2003Painter Jide [message #819876] Tue, 13 March 2012 08:36 Go to next message
Eclipse UserFriend
Hi,

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,
Szabi

Re: ThemePainter ClassCastException Office2003Painter Jide [message #819904 is a reply to message #819876] Tue, 13 March 2012 09:17 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Strategy for I18N
Next Topic:WindowBuilder Architecture/Documentation Site
Goto Forum:
  


Current Time: Thu Jul 24 18:09:04 EDT 2025

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

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

Back to the top