History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: SDK-17840
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: B B
Assignee: rkrishna
Reporter: rkrishna
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Flex SDK

Incremental compiler gives internal build errors

Created: 10/28/08 10:47 AM   Updated: 05/11/09 02:11 PM
Component/s: MXML Compiler
Security Level: Public (All JIRA Users )

File Attachments: 1. File MAXPrereleaseTest1.fxp (1.05 Mb)

Issue Links:
Duplicate
 
This issue is duplicated by:
SDK-17952 Uncaught exception in compiler - java... None Closed
SDK-17958 Intermittent internal compiler error ... None Closed

Severity: Incorrectly Functioning with Workaround
Reproducibility: Intermittent
Discoverability: Medium
Milestone: SDK Gumbo Iteration 11
Affected OS(s): All OS Platforms
Steps to Reproduce:
Steps to reproduce:
I am not sure that this can be consistently reproduced with this app. Incremental compilation gives internal build errors
<?xml version="1.0" encoding="utf-8"?>
<FxApplication xmlns="http://ns.adobe.com/mxml/2009" xmlns:WishAppService="services.WishAppService.*">

<Script>
<![CDATA[
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
protected function fxbutton1_clickHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
//loginResult1.token = wishAppService1.login(uidTI.text, pwdTI.text);
loginResult1.token = wishAppService1.login(' ', ' ');
}

protected function wishAppService1_resultHandler(event:ResultEvent):void
{
// TODO Auto-generated method stub
trace(currentState);
//if(loginResult1.lastResult == -1)
currentState = 'errorState';


}


protected function wishAppService1_faultHandler(event:FaultEvent):void
{
// TODO Auto-generated method stub
Alert.show(event.fault.faultString);
currentState = 'errorState';
}

]]>
</Script>

<Declarations>
<CallResponder id="loginResult1" />
<WishAppService:WishAppService id="wishAppService1" destination.State1="Projects.WishAppService" showBusyCursor.State1="true" endpoint.State1="http://localhost/amfphp/gateway.php" source.State1="Projects.WishAppService" result="wishAppService1_resultHandler(event)" fault="wishAppService1_faultHandler(event)"/>
</Declarations>


<states>
<State name="State1" />
<State name="errorState"/>
</states>
<!--
<VGroup x="53.00" width="735.00" height="552.00" y="43">
<HGroup x="60.00" y="71.00" width="230.00" height="36.00">
<Label x="34.00" y="38.00" text="UserId :"/>
<FxTextInput x="102.00" y="13.00" id="uidTI"/>
</HGroup>
<HGroup x="79.00" y="282.00" width="264.00" height="31.00">
<Label x="34.00" y="38.00" text="password:"/>
<FxTextInput x="102.00" y="13.00" id="pwdTI"/>
</HGroup>
-->
<FxButton x="100.00" y="390.00" label="Submit" click="fxbutton1_clickHandler(event)"/>
<!--
<Label x="153.00" y="204.00" text="Error logging in ; Please check the user ID/password" width="519.00" height="55.00" fontWeight="normal" fontFamily="Arial" fontSize="17" includeIn="errorState"/>
</VGroup>
-->
<!--
<DataGrid includeIn="State1" id="DataGrid1" editable="true" y="239.0" x="127.0" dataProvider="{loginResult1.lastResult}">
<columns>
<DataGridColumn headerText="password" dataField="password"/>
<DataGridColumn headerText="name" dataField="name"/>
<DataGridColumn headerText="id" dataField="id"/>
</columns>
</DataGrid>
-->
</FxApplication>


 Actual Results:

Error log shows the following this might be of help
 
ENTRY com.adobe.flexbuilder.project 4 43 2008-10-28 21:12:23.906
!MESSAGE Uncaught exception in compiler
!STACK 0
java.lang.NullPointerException
at flex2.tools.PreLink.locateStyleDefaults(PreLink.java:121)
at flex2.tools.PreLink.processMainUnit(PreLink.java:178)
at flex2.tools.PreLink.run(PreLink.java:70)
at flex2.compiler.CompilerAPI.compile(CompilerAPI.java:1527)
at flex2.tools.oem.Application.compile(Application.java:1148)
at flex2.tools.oem.Application.compile(Application.java:840)
at flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:354)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(ASApplicationBuilder.java:271)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.build(ASApplicationBuilder.java:122)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBuilder.java:140)
at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(ASItemBuilder.java:73)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(FlexProjectBuilder.java:358)
at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:195)
at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:130)
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)
 
 
 Expected Results:
 
 
 Workaround (if any):
 Do a clean rebuild.
 
 
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Gaurav Jain
Resolved by: Paul Reilly
Participants: Gaurav Jain, George Comninos, Heidi Williams, Larry McLister, Lauren Park, Mac Martine, Paul Reilly and rkrishna
JDK: Sun 1.5.x


 All   Comments      Sort Order:
Larry McLister - [10/28/08 11:27 AM ]
I'm not able to reproduce this one but the stack may be worth having someone take a look at.

Heidi Williams - [10/28/08 12:52 PM ]
George, can you take a look at the stack for anything fishy? Or see if you can reproduce it?

George Comninos - [10/28/08 03:19 PM ]
utr for me also, but we should definitely have someone on the sdk compiler team look at the stack trace.

Gaurav Jain - [10/31/08 09:29 PM ]
Cannot reproduce. But lets get investigated by getting the stacktrace looked at.

Lauren Park - [11/07/08 03:06 AM ]
Opened.

Mac Martine - [11/10/08 12:48 PM ]
I've been hitting this a lot lately. I don't have a reproducible case but I've hit it a couple times a day when doing scenario

Lauren Park - [12/16/08 03:39 PM ]
Auto-update milestone from I9 -> i10.

Paul Reilly - [02/04/09 09:26 AM ]
Add check for null Source in the list of sources, but also add assert so we try to better understand this unexpected situation.

Lauren Park - [02/06/09 04:41 PM ]
Moved to i11.

Paul Reilly - [03/16/09 05:06 AM ]
It seems like this issue has been fixed, since it hasn't been reported again in a few months. Looking at the current code, it doesn't seem possible. If reopened, please update the stack trace with current line numbers.