8 Replies Latest reply on Nov 5, 2009 11:35 AM by SquigglyLOT

    Internal Build Error - StandardDefs - FB4 Beta 2

    SquigglyLOT Level 1

      Downloaded and installed FlashBuilder 4 Beta 2.  Imported a project started in Beta 1.  Receive "An internal build error has occurred" on every other build attempt (it builds ok, then errors on next build, then ok on next build, then errors...etc).

       

      Using the default Flex 4 SDK Beta 2 that was supplied with FB4B2.

       

      The following is output from the error log:

       

       

      eclipse.buildId=unknown
      java.version=1.6.0_16
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments:  -os win32 -ws win32 -arch x86 -clean
      
      !ENTRY com.adobe.flexbuilder.project 4 43 2009-10-21 09:18:32.829
      !MESSAGE Uncaught exception in compiler
      !STACK 0
      java.lang.NullPointerException
           at flex2.compiler.mxml.lang.StandardDefs.isRepeater(StandardDefs.java:798)
           at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.defaultPropertyElement(ComponentBuilder.java:549)
           at flex2.compiler.mxml.lang.ChildNodeHandler.unknown(ChildNodeHandler.java:176)
           at flex2.compiler.mxml.lang.ChildNodeHandler$CoreDeclarationHandler.unknown(ChildNodeHandler.java:229)
           at flex2.compiler.mxml.lang.DeclarationHandler.invoke(DeclarationHandler.java:124)
           at flex2.compiler.mxml.lang.ChildNodeHandler$CoreDeclarationHandler.invoke(ChildNodeHandler.java:234)
           at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.invoke(ComponentBuilder.java:681)
           at flex2.compiler.mxml.lang.ChildNodeHandler.scanChildNodes(ChildNodeHandler.java:77)
           at flex2.compiler.mxml.builder.ComponentBuilder.processChildren(ComponentBuilder.java:427)
           at flex2.compiler.mxml.builder.ComponentBuilder.analyze(ComponentBuilder.java:154)
           at flex2.compiler.mxml.dom.StateNode.analyze(StateNode.java:24)
           at flex2.compiler.mxml.builder.ArrayBuilder$ElementNodeHandler.stateNode(ArrayBuilder.java:211)
           at flex2.compiler.mxml.lang.ValueNodeHandler.invoke(ValueNodeHandler.java:101)
           at flex2.compiler.mxml.builder.ArrayBuilder.processChildren(ArrayBuilder.java:110)
           at flex2.compiler.mxml.builder.AbstractBuilder.processRValueNodes(AbstractBuilder.java:935)
           at flex2.compiler.mxml.builder.AbstractBuilder.processPropertyNodes(AbstractBuilder.java:757)
           at flex2.compiler.mxml.builder.AbstractBuilder.processPropertyNodes(AbstractBuilder.java:728)
           at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.property(ComponentBuilder.java:496)
           at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.states(ComponentBuilder.java:470)
           at flex2.compiler.mxml.lang.ChildNodeHandler$CoreDeclarationHandler.states(ChildNodeHandler.java:200)
           at flex2.compiler.mxml.lang.DeclarationHandler.invoke(DeclarationHandler.java:90)
           at flex2.compiler.mxml.lang.ChildNodeHandler$CoreDeclarationHandler.invoke(ChildNodeHandler.java:234)
           at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.invoke(ComponentBuilder.java:681)
           at flex2.compiler.mxml.builder.DocumentBuilder$DocumentChildNodeHandler.invoke(DocumentBuilder.java:776)
           at flex2.compiler.mxml.lang.ChildNodeHandler.scanChildNodes(ChildNodeHandler.java:77)
           at flex2.compiler.mxml.builder.ComponentBuilder.processChildren(ComponentBuilder.java:427)
           at flex2.compiler.mxml.builder.DocumentBuilder.analyze(DocumentBuilder.java:178)
           at flex2.compiler.mxml.dom.Node.analyze(Node.java:47)
           at flex2.compiler.mxml.ImplementationCompiler.parse1(ImplementationCompiler.java:180)
           at flex2.compiler.mxml.MxmlCompiler.parse1(MxmlCompiler.java:168)
           at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2851)
           at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2804)
           at flex2.compiler.CompilerAPI.batch2(CompilerAPI.java:446)
           at flex2.compiler.CompilerAPI.batch(CompilerAPI.java:1274)
           at flex2.compiler.CompilerAPI.compile(CompilerAPI.java:1488)
           at flex2.tools.oem.Application.compile(Application.java:1169)
           at flex2.tools.oem.Application.recompile(Application.java:1114)
           at flex2.tools.oem.Application.compile(Application.java:805)
           at flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:344)
           at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(ASApplicationBuilder.java:272)
           at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.build(ASApplicationBuilder.java:123)
           at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBuilder.java:187)
           at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(ASItemBuilder.java:74)
           at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(FlexProjectBuilder.java:466)
           at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:284)
           at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:131)
           at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
           at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
           at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
           at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
           at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
           at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
           at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
           at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
           at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
           at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
           at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      
      !ENTRY com.adobe.flexbuilder.project 4 43 2009-10-21 09:20:57.659
      !MESSAGE Uncaught exception in compiler
      !STACK 0
      java.lang.NullPointerException
           at flex2.compiler.mxml.lang.StandardDefs.isIUIComponent(StandardDefs.java:715)
           at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.nestedDeclaration(ComponentBuilder.java:586)
           at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.nestedDeclaration(ComponentBuilder.java:561)
           at flex2.compiler.mxml.builder.DocumentBuilder$DocumentChildNodeHandler.nestedDeclaration(DocumentBuilder.java:664)
           at flex2.compiler.mxml.lang.ChildNodeHandler.unknown(ChildNodeHandler.java:182)
           at flex2.compiler.mxml.builder.ComponentBuilder$ComponentChildNodeHandler.invoke(ComponentBuilder.java:691)
           at flex2.compiler.mxml.builder.DocumentBuilder$DocumentChildNodeHandler.invoke(DocumentBuilder.java:776)
           at flex2.compiler.mxml.lang.ChildNodeHandler.scanChildNodes(ChildNodeHandler.java:77)
           at flex2.compiler.mxml.builder.ComponentBuilder.processChildren(ComponentBuilder.java:427)
           at flex2.compiler.mxml.builder.DocumentBuilder.analyze(DocumentBuilder.java:178)
           at flex2.compiler.mxml.dom.Node.analyze(Node.java:47)
           at flex2.compiler.mxml.ImplementationCompiler.parse1(ImplementationCompiler.java:180)
           at flex2.compiler.mxml.MxmlCompiler.parse1(MxmlCompiler.java:168)
           at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2851)
           at flex2.compiler.CompilerAPI.parse1(CompilerAPI.java:2804)
           at flex2.compiler.CompilerAPI.batch2(CompilerAPI.java:446)
           at flex2.compiler.CompilerAPI.batch(CompilerAPI.java:1274)
           at flex2.compiler.CompilerAPI.compile(CompilerAPI.java:1488)
           at flex2.tools.oem.Application.compile(Application.java:1169)
           at flex2.tools.oem.Application.recompile(Application.java:1114)
           at flex2.tools.oem.Application.compile(Application.java:805)
           at flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:344)
           at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(ASApplicationBuilder.java:272)
           at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.build(ASApplicationBuilder.java:123)
           at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBuilder.java:187)
           at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(ASItemBuilder.java:74)
           at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(FlexProjectBuilder.java:466)
           at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:284)
           at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:131)
           at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
           at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
           at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
           at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
           at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
           at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
           at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
           at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
           at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
           at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
           at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
           at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      

        • 1. Re: Internal Build Error - StandardDefs - FB4 Beta 2
          CoreyRLucier Adobe Employee

          If after a full clean build of your project files you are still seeing 

          the issue would it be possible to post the code that's causing the 

          error?

           

          -C

          • 2. Re: Internal Build Error - StandardDefs - FB4 Beta 2
            David_F57 Level 5

            Hi Corey,

             

            flashbuilder bug FB23092 was logged with this issue of internal build errors a while back. The problem described above seems to be consistant with what I have been experienceing. Minor changes to code cuases an internal build error cleaning the project resolves it or simply placing a space somewhere in your code and doing a manual save will then clear the error. The scary part is sometimes the project will compile but ignore the changes to the code as though the build process is reading from a cached version from an earlier build. It is not project based you can start a new project put a variable in the code somewhere and set its value compile it then change the variable value again you will either get an internal error or the code will compile with no save changes dialog appearing as is usual with code changes. The bigger the project (.ie. add skins and a few extract mxml files) the more frequent the internal errors become. I have had this issue with the last couple of beta 2 pre-release drops. This is on fairly clean version Windows 7 x64 ( I actual did a system rebuild and FB and chrome was the only additional software installed and the problem was there immediately.

             

            David.

            1 person found this helpful
            • 3. Re: Internal Build Error - StandardDefs - FB4 Beta 2
              SquigglyLOT Level 1

              Corey,

               

              As David mentions, doing a full clean build does provide a temporary resolution of the internal build error ... only to come back (and then go away, and then come back...and so on) on minor code changes (I've got "Build Automatically" turned on).

               

              This doesn't appear to be related to code within my project or codebase, as far as I can tell ... and there is no indication given by FB or the compiler of what the offending code might be.   The only clue I've had thus far is in the workbench error log for FB4 ... which I've attached in its entirety.

               

              It also appears limited to FB4, as command-line compilation has thus far not returned such an error.

               

              The project I'm working with at the moment is quite large (over 100 mxml & as objectt, plus numerous FlexUnit tests, and external CSS and image files).  Previously using Flex 4 SDK Beta 1 Build 7219 with this same code base, without issue.

               

              I wish I could provide more specific info, but at the moment, there does not appear anything more specific to point to.

              • 4. Re: Internal Build Error - StandardDefs - FB4 Beta 2
                David_F57 Level 5

                hi,

                 

                could you give your OS specs as when i reported the issue earlier they couldn't replicate it. Maybe its something specific to the OS.

                 

                David

                • 5. Re: Internal Build Error - StandardDefs - FB4 Beta 2
                  SquigglyLOT Level 1

                  Attached a stripped down version of the configuration log ... hoping it'll be helpful to any Adobe devs.

                   

                  But, the basic OS specs are:

                   

                  Windows XP Pro, SP3 (3GB RAM, 3.8GHz Dual Core, 32bit)

                   

                  I was going to check this same codebase on a new install of Windows 7 RC 64-bit, but you mentioned already that you were seeing similar issues there.

                   

                  -- Matt

                  • 6. Re: Internal Build Error - StandardDefs - FB4 Beta 2
                    SquigglyLOT Level 1

                    It appears that this may be related to conflicts of some sort with FlexUnit.  I have not had the time to investigate this more fully, and this may be only coincidental, but removing my unit tests and the FlexUnit runner caused this issue to go away.

                     

                    The unit tests were originally written using the FlexUnit 4 beta SWCs and a custom runner based on what was reported in http://www.insideria.com/2009/05/flashbuilder4-will-support-fle.html

                     

                    When time permits, I'll attempt to do some further investigation into this, and try to update the FlexUnit tests using the latest FB4 models and APIs.

                    • 7. Re: Internal Build Error - StandardDefs - FB4 Beta 2
                      RaniKumar Level 2

                      I have observerd that once internal build error occurs, whatever is done, does not solve the issue other than closing and opening FB.  According to me Unit tests context is just coincidence.

                       

                      Please try out the IDE integration features to use FlexUnit4 and let us know your feedback.

                       

                      Thanks,

                      Rani

                      • 8. Re: Internal Build Error - StandardDefs - FB4 Beta 2
                        SquigglyLOT Level 1

                        Removing the old MXML runners and SWCs for FlexUnit4 cleared up the internal build error issues.  I have re-create the FlexUnitApplication and Suite to call my unit tests, and have not encountered the internal build errors again in the past few weeks.

                         

                        Now I just have to work through the 24 errors in the 124 unit tests to figure out what's changed that broke those.