I have been specializing in building web-based applications since 1998, primarily using HTML, Flex, LiveCycle, Java, ColdFusion, and SQL Server.
You found yourself here, so hopefully you'll get something good out of it!
Enjoy...

Wednesday, February 21, 2007

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.

24 comments:

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.

CheersJules

ps the link to my site goes nowhere yet -- still to come! Let's just say I am in "stealth mode" heh

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

Here's another syntax error that leads to an uncaught compiler error. If you look in the log (which you can find if you right-click on the error message in the "Problems" window of the Flex Builder and follow the instructions), you will see the message

java.lang.NumberFormatException: multiple points

the offending code is

public var springFriction:Numner = 0.5.

Now that's a syntax error the compiler definitely should have caught! Too bad I had to rip apart my project to find it.

Thanks for making this thread a google-able repository of stupid Flex compiler bugs, you're saving people a lot of time.

I had the same error - upon inspecting the log file I found that Flex choked because the directory 'bin-release/assets' did not exist. When I exported the release build to something other than 'bin-relase', it worked! Adobe really needs to get on top of these bugs...

Mine was the same as Karfau's, except it was caused not by bad data in the properties file, but by using a very large (>180 Kb) file. I solved the problem by deleting a bunch of entries that were no longer needed.

Thanks Michael and Karfau -- you saved me a lot of time and a BIG headache!

!MESSAGE TextFileBufferManager failed to notify an ITextFileBufferListener!STACK 0java.lang.NullPointerException at de.richinternet.flexbuilder.task.FlexDocumentListener.removeMarkers(FlexDocumentListener.java:204) at de.richinternet.flexbuilder.task.FlexDocumentListener.processDocument(FlexDocumentListener.java:125)