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?

	at com.adobe.flexbuilder.mxmlmodel.ComponentInstance.getStates(
	at com.adobe.flexbuilder.mxmlmodel.ComponentInstance.getDerivedStates(
	at com.adobe.flexbuilder.editors.mxml.views.states.StatesViewContentProvider.hasChildren(
	at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(
	at org.eclipse.jface.viewers.AbstractTreeViewer.updatePlus(
	at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(
	at org.eclipse.jface.viewers.AbstractTreeViewer$

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.