HELP! My FlexBuilder won’t start! No worries, try this …
Thursday, July 5th, 2007When you tried to open an AS file in FB did you suddenly get this message?
An error has occurred. See error log for more details.
Or maybe this message when you tried to open an MXML file:
Unable to create this part due to an internal error. Reason for the failure: The editor class could not be instantiated. This usually indicates that the editor’s class name was mistyped in plugin.xml.
No worries! try this:
go to:
[workspace directory]/.metadata/.plugins/com.adobe.flexbuilder.codemodel/searchCache
backup the directories in there that end with “.index”. zip them up and put them somewhere safe. then delete the directories. leave the file “catalog.xml”.
start flexbuilder. it should work.
The problem is that the lucene index was corrupted or lost, probably during a failed FlexBuilder shutdown. So when FB starts up and it tries to load the lucene index it fails horribly and you can’t use it anymore. Hmm … maybe the FB team can add a “try … catch” block and save us the horror? :)
Make sure your log file has an error that says something like this:
java.io.FileNotFoundException: [workspace]\.metadata\.plugins\com.adobe.flexbuilder.codemodel\searchCache\SWCReference.index\segments (The system cannot find the file specified)
The log file is located in:
[workspace]\.metadata\.log
Happy coding.
/r
