Internal Build Error
I recently ran into an issue with Flex Builder where I was getting the "An internal build error has occurred. Please check the Error Log." error when trying to debug my project. Absolutely nothing worked including all the normal practices such as cleaning the project, recreating the workspace, manually deleting the bin folder, reinstalling Flex Builder, etc.
After performing all of these tasks I was still getting "Uncaught exception in compiler" in the error log, which by the way is the .log file in the .metadata folder of your workspace. After further analysis, I tied the issue back to a missing semi-colon after a variable declaration in my class such as:
public class SomeClass
{
public var blah:Object
}
If you ever find yourself in this situation, start rolling back code and begin to do a detailed analysis for syntax errors that normally do not pose any problems.
9 comments:
Great post! You fixed my issue right away! You can't skip a ; before an attribute declaration!
Thanks!
Michael
Handy post, I needed to find the .log file and didn't want to trawl the Adobe livedocs/labs knowledge soup.
I just had the same error (Uncaught exception in .log, java.lang.StackOverflowException). It appeared after I'd done some work with sed on my object model. Turned out one of the classes extended itself, ie class myClass extends myClass :-)
This was with the Flex 3 Beta.
Cheers
Jules
ps the link to my site goes nowhere yet -- still to come! Let's just say I am in "stealth mode" heh
Great Article.
Also, I once got this error when nesting three if statements. It was the wierdest thing.
Thanks for the tip - I was searching everywhere for that log file!
It turns out, in my case anyway, that the internal build error can also happen if you are running eclipse in GCJ instead of sun java.
I added this to my Flex startup script to fix it:
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/
PATH=/usr/lib/jvm/java-1.5.0-sun/bin/:$PATH
Excellent!!!
The offending snippet was
private var o : Object = (data='A',label="A");
Thanks a lot.
Just like Jules, I wanted to locate the log file - soooo glad you mentioned where it is - thanks!!
Googling the "An internal error..." message is what got me to this page.
nice post! my error was caused by improperly commenting out a line in an overridden puremvc function.
the missing semi colons are probably on a line before a metatag
eg
private var _myVar:String
[Bindleable]
otherwise the compiler thinks the [] belong to the prievious line
I also had the error saying "An internal build error has occurred. Please check the Error Log."
I did all the painful debugging of the code.
I edited a mxml and the above problem start coming. But then i copied the contents of the mxml file on to a notepad. i deleted all .html , .swf and also the dubug file relevant to aboce mxml. Then i took the new mxml file and copied the contents of the notepad.
The file ran finely.
Try to do this. It may help you people
Have a good day
Post a Comment