Excellent, thanks Mike.

It'd be nice if they could find a way to output the file and line number 
causing the internal build error if it happens again! :-)

Ta,

Tim.

On Wednesday 29 Mar 2006 19:20, Mike Chambers wrote:
> fyi,
>
> I forwarded this to the Flex Builder team.
>
> mike chambers
>
> [EMAIL PROTECTED]
>
> Tim Sawyer wrote:
> > Still shouldn't blow up the compiler though should it. :-)
> >
> > Our old beta 1 code says:
> >
> > var kpiList:Array = Array(this.myData)[0];
> >
> > and the compiler warning is "Array(x) behaves the same as new
> > Array(x).  To cast a value to type Array use 'x as Array' instead of
> > Array(x)." so I changed it to
> >
> > var kpiList:Array = (this.myData as Array)[0];
> >
> > thereby causing the problem.  this.myData is an Object, so still needs
> > to be cast to Array.
> >
> > Strangely, the code that actually works is:
> >
> > var kpiList:Array = this.myData as Array;
> >
> > so I've lost a level of Array embedding somewhere...
> >
> > Tim.
> >
> > --- In flexcoders@yahoogroups.com, "Michael Schmalle"
> >
> > <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> Not to butt in or anything but,
> >>
> >>
> >> var kpiList:Array = (this.myData as Array)[0];
> >>
> >> That is probably not a very good way to write the expression anyway.
> >
> > I can
> >
> >> see why there might be a glich,
> >>
> >> var kpiList:Array = myData[0] as Array;
> >>
> >> would probably be better.
> >>
> >> Peace, Mike
> >>
> >> On 3/29/06, Tim Sawyer <[EMAIL PROTECTED]> wrote:
> >>>  Found it.  The compiler is throwing a fit on this line of code:
> >>>
> >>> var kpiList:Array = (this.myData as Array)[0];
> >>>
> >>> if I remove "as Array", then it compiles and the compiler no longer
> >>> explodes.  I actually added the as Array in because Flex gave me a
> >>> warning that I was casting Object to Array and I should do it
> >>> manually! :-)
> >>>
> >>> No it compiles, all I have to do is get this code to actually run in
> >>> Beta 2, at the moment I'm getting a blue screen in my browser, no
> >>> loading bar, and no application.  Argh!
> >>>
> >>> Tim.
> >>>
> >>> --- In flexcoders@yahoogroups.com, "bhaq1972" <mbhaque@> wrote:
> >>>> I'm also fustrated by this internal build error. the whole of my
> >>>> monday was wasted on it. i've now gone back to starting the project
> >>>> all over again, but only bringing in a class(or mxml) at a time.
> >>>> painfully slow but has broken yet.
> >>>>
> >>>>
> >>>> --- In flexcoders@yahoogroups.com, "Michael Schmalle"
> >>>>
> >>>> <teoti.graphix@> wrote:
> >>>>> Hi,
> >>>>>
> >>>>> I wrote a couple lengthy posts on this forum. ;-)
> >>>>>
> >>>>> Search for internal build error, you should see some things I have
> >>>>> encountered.
> >>>>>
> >>>>> Peace, Mike
> >>>>>
> >>>>> On 3/28/06, Tim Sawyer <lists@> wrote:
> >>>>>>  I'm getting "An internal build error has occurred. Please check
> >>>>
> >>>> the
> >>>>
> >>>>>> Error Log".  The log says:
> >>>>>>
> >>>>>> !ENTRY com.adobe.flexbuilder.project 4 43 2006-03-28
> >
> > 16:28:20.702
> >
> >>>>>> !MESSAGE Uncaught exception in compiler
> >>>>>> !STACK 0
> >>>>>> java.lang.NullPointerException
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :948)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.MemberExpressionNode.evaluate(
> >>>>>> MemberExpressionNode.java:31)
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :1606)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.ArgumentListNode.evaluate
> >>>>
> >>>> (ArgumentListNode.java:28)
> >>>>
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :727)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.SetExpressionNode.evaluate
> >>>>
> >>>> (SetExpressionNode.java
> >>>>
> >>>>>> :39)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :1040)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.MemberExpressionNode.evaluate(
> >>>>>> MemberExpressionNode.java:31)
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :1635)
> >>>>>>
> >>>>>>       at macromedia.asc.parser.ListNode.evaluate
> >>>>
> >>>> (ListNode.java:27)
> >>>>
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :1734)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.ExpressionStatementNode.evaluate(
> >>>>>> ExpressionStatementNode.java:33)
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :1714)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.StatementListNode.evaluate
> >>>>
> >>>> (StatementListNode.java
> >>>>
> >>>>>> :34)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :1786)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.IfStatementNode.evaluate
> >>>>
> >>>> (IfStatementNode.java:34)
> >>>>
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :1714)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.StatementListNode.evaluate
> >>>>
> >>>> (StatementListNode.java
> >>>>
> >>>>>> :34)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :2220)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.FunctionCommonNode.evaluate
> >>>>
> >>>> (FunctionCommonNode.java
> >>>>
> >>>>>> :87)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :2910)
> >>>>>>
> >>>>>>       at
> >>>>>> macromedia.asc.parser.ClassDefinitionNode.evaluate(
> >>>>>> ClassDefinitionNode.java:86)
> >>>>>>       at
> >>>>>> macromedia.asc.semantics.ConstantEvaluator.evaluate
> >>>>
> >>>> (ConstantEvaluator.java
> >>>>
> >>>>>> :2655)
> >>>>>>
> >>>>>>       at macromedia.asc.parser.ProgramNode.evaluate
> >>>>
> >>>> (ProgramNode.java:63)
> >>>>
> >>>>>>       at flex2.compiler.as3.Compiler.analyze4(Compiler.java:431)
> >>>>>>       at flex2.compiler.API.analyze(API.java:1370)
> >>>>>>       at flex2.compiler.API.analyze(API.java:1283)
> >>>>>>       at flex2.compiler.API.batchInner(API.java:224)
> >>>>>>       at flex2.compiler.API.batch(API.java:270)
> >>>>>>       at flex2.compiler.API.compile(API.java:462)
> >>>>>>       at
> >>>>>> com.adobe.flexbuilder.project.compiler.Compiler.compile
> >>>>
> >>>> (Compiler.java:204)
> >>>>
> >>>>>>       at
> >
> > com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilde
> >
> >>>> r.buildApplication
> >>>>
> >>>>>> (FlexIncrementalBuilder.java:352)
> >>>>>>       at
> >
> > com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilde
> >
> >>>> r.build
> >>>>
> >>>>>> (FlexIncrementalBuilder.java:236)
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.events.BuildManager$2.run
> >>>>
> >>>> (BuildManager.java:593)
> >>>>
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.runtime.InternalPlatform.run(
> >>>>>> InternalPlatform.java:1044)
> >>>>>>       at
> >
> > org.eclipse.core.runtime.Platform.run(Platform.java:783)
> >
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.events.BuildManager.basicBuild
> >>>>
> >>>> (BuildManager.java
> >>>>
> >>>>>> :168)
> >>>>>>
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.events.BuildManager.basicBuild
> >>>>
> >>>> (BuildManager.java
> >>>>
> >>>>>> :202)
> >>>>>>
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.events.BuildManager$1.run
> >>>>
> >>>> (BuildManager.java:231)
> >>>>
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.runtime.InternalPlatform.run(
> >>>>>> InternalPlatform.java:1044)
> >>>>>>       at
> >
> > org.eclipse.core.runtime.Platform.run(Platform.java:783)
> >
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.events.BuildManager.basicBuild
> >>>>
> >>>> (BuildManager.java
> >>>>
> >>>>>> :234)
> >>>>>>
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.events.BuildManager.basicBuildLoop(
> >>>>>> BuildManager.java:253)
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.events.BuildManager.build
> >>>>
> >>>> (BuildManager.java:282)
> >>>>
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.events.AutoBuildJob.doBuild
> >>>>
> >>>> (AutoBuildJob.java
> >>>>
> >>>>>> :139)
> >>>>>>
> >>>>>>       at
> >>>>>> org.eclipse.core.internal.events.AutoBuildJob.run
> >>>>
> >>>> (AutoBuildJob.java:200)
> >>>>
> >>>>>>       at org.eclipse.core.internal.jobs.Worker.run
> >>>>
> >>>> (Worker.java:76)
> >>>>
> >>>>>> Anyone got any pointers?  Or am I down to selectively moving
> >>>>
> >>>> code to a
> >>>>
> >>>>>> new project to see which file causes the problem?
> >>>>>>
> >>>>>> This is Beta 2, although a collegue still on Beta 1 has the same
> >>>>
> >>>> issue
> >>>>
> >>>>>> with the same code (pre Beta 2 fixes - I've just fixed mine)
> >>>>>>
> >>>>>> ta,
> >>>>>>
> >>>>>> Tim.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>  --
> >>>>>> Flexcoders Mailing List
> >>>>>> FAQ:
> >>>>
> >>>> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >>>>
> >>>>>> Search Archives:
> >
> > http://www.mail-archive.com/flexcoders%<http://www.mail-archive.com/flexc
> >oders%25>
> >
> >>>> 40yahoogroups.com
> >>>>
> >>>>>>  SPONSORED LINKS
> >>>>>>   Web site design development<http://groups.yahoo.com/gads?
> >
> > t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=
> > Computer+software+development&w3=Software+design+and+development&w4=M
> > acromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L
> >
> >>>> -4QTvxB_quFDtMyhrQaHQ>  Computer
> >>>>
> >>>>>> software development<http://groups.yahoo.com/gads?
> >
> > t=ms&k=Computer+software+development&w1=Web+site+design+development&w
> > 2=Computer+software+development&w3=Software+design+and+development&w4
> > =Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig
> >
> >>>> =lvQjSRfQDfWudJSe1lLjHw>  Software
> >>>>
> >>>>>> design and development<http://groups.yahoo.com/gads?
> >
> > t=ms&k=Software+design+and+development&w1=Web+site+design+development
> > &w2=Computer+software+development&w3=Software+design+and+development&
> > w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.s
> >
> >>>> ig=1pMBCdo3DsJbuU9AEmO1oQ>   Macromedia
> >>>>
> >>>>>> flex<http://groups.yahoo.com/gads?
> >
> > t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+sof
> > tware+development&w3=Software+design+and+development&w4=Macromedia+fl
> > ex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZ
> >
> >>>> I36cYzBjw>  Software
> >>>>
> >>>>>> development best practice<http://groups.yahoo.com/gads?
> >
> > t=ms&k=Software+development+best+practice&w1=Web+site+design+developm
> > ent&w2=Computer+software+development&w3=Software+design+and+developme
> > nt&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166
> >
> >>>> &.sig=f89quyyulIDsnABLD6IXIw>
> >>>>
> >>>>>>  ------------------------------
> >>>>>> YAHOO! GROUPS LINKS
> >>>>>>
> >>>>>>
> >>>>>>    -  Visit your
> >>>>
> >>>> group "flexcoders<http://groups.yahoo.com/group/flexcoders>"
> >>>>
> >>>>>>    on the web.
> >>>>>>
> >>>>>>    -  To unsubscribe from this group, send an email to:
> >>>>>>     [EMAIL PROTECTED]<flexcoders-
> >>>>
> >>>> [EMAIL PROTECTED]>
> >>>>
> >>>>>>    -  Your use of Yahoo! Groups is subject to the Yahoo!
> >
> > Terms of
> >
> >>>>>>    Service <http://docs.yahoo.com/info/terms/>.
> >>>>>>
> >>>>>>
> >>>>>>  ------------------------------
> >>>>>
> >>>>> --
> >>>>> What goes up, does come down.
> >>>
> >>>  --
> >>> Flexcoders Mailing List
> >>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >>> Search Archives:
> >
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >
> >>>  ------------------------------
> >>> YAHOO! GROUPS LINKS
> >>>
> >>>
> >>>    -  Visit your group
> >
> > "flexcoders<http://groups.yahoo.com/group/flexcoders>"
> >
> >>>    on the web.
> >>>
> >>>    -  To unsubscribe from this group, send an email to:
> >
> > [EMAIL PROTECTED]<[EMAIL PROTECTED]
> >.com?subject=Unsubscribe>
> >
> >>>    -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >>>    Service <http://docs.yahoo.com/info/terms/>.
> >>>
> >>>
> >>>  ------------------------------
> >>
> >> --
> >> What goes up, does come down.
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to