ClassCastException while dealing with FlexBuilder States

Writing by on Sunday, 11 of November , 2007 at 11:27 pm

Do you get this exception in the states view?

java.lang.ClassCastException
	at com.adobe.flexbuilder.mxmlmodel.ComponentInstance.getStates(ComponentInstance.java:162)
	at com.adobe.flexbuilder.mxmlmodel.ComponentInstance.getDerivedStates(ComponentInstance.java:193)
	at com.adobe.flexbuilder.editors.mxml.views.states.StatesViewContentProvider.hasChildren(StatesViewContentProvider.java:173)
	at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:1378)
	at org.eclipse.jface.viewers.AbstractTreeViewer.updatePlus(AbstractTreeViewer.java:1845)
	at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:536)
	at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:514)

Looks like its FlexBuilder is Case Sensitive and is confused between these tags

<mx:state> … <mx:state>
<mx:State> … </mx:State>

Use <mx:State> … </mx:State> and you should be fine.

Leave a comment

Category: Adobe

No Comments

No comments yet.

Leave a comment

You must be logged in to post a comment.

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.