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

Flex Builder 2 complains about NPSWF32.dll

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

Are you getting an annoying warning message that says

C:\Program Files\Mozilla Firefox\plugins\NPSWF32.dll
Flex Builder cannot locate the required version of Flash Player. You may need to install Flash Player 9.0 or reinstall Flex Builder. Do you want to try to run your application with the current version?

Solution: (that worked for me)
Copy the file NPSWF32.dll manually from C:\WINDOWS\system32\Macromed\Flash to C:\Program Files\Mozilla Firefox\plugins

This worked for me and got rid of that annoying popup. But I’m not sure, what consequences this will have in the future after further installs/updates of Firefox/Flash etc.

Adobe’s Solution: to this problem can be found at
Flex Builder 2: Installed Adobe Flash Player is Not a Debugger

Another Discussion: (also talks about copying the file manuallY)
new flash player?

Leave a comment

Category: Adobe

Command to map a network drive from command prompt

Writing by on Friday, 9 of November , 2007 at 10:14 am

Most of you might be familiar with net use which works fine for network drives

net use x: \\SomeHostMachine\SomeShare

For local drives use subst

subst z: c:\SomeFolder\SubFolder

Leave a comment

Category: Uncategorized

RSS Feeds don’t work with WordPress

Writing by on Monday, 5 of November , 2007 at 3:07 pm

Are you trying to enable RSS Feeds in WordPress and they don’t seem to work? You may have played around with the template files, default wordpress files and that most likely might have caused the problem. By default wordpress should be setup so that your RSS works correctly. Are you getting a message saying No input file specified.

Usually the format for the RSS Feed is of the form

http://shivdev.com/blog/feed/
http://shivdev.com/blog/index.php/feed/
http://shivdev.com/comments/feed/

Do not forget the / at the end – feed/. If you don’t have Permalinks, they are usually of the form

http://www.shivdev.com/?feed=rss2
http://www.shivdev.com/?feed=comments-rss2

If the link seems correct, but you still can’t get it to work, go back to the original (default) theme and see what errors you get. Maybe some adsense or analytics javascript in the wrong place etc. Correct the errors and you should be able to get your RSS to work.

You might also want to refer to How to enable RSS feeds? and Create RSS Feeds on any web page

Leave a comment

Category: Wordpress

Truncate A Date to First of the Month

Writing by on Friday, 2 of November , 2007 at 2:33 pm

Want to convert 1/20/2007 to 1/1/2007 in Excel?
Use the DATE excel function.

=DATE(YEAR(A1),MONTH(A1),1)

Leave a comment

Category: Excel

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.