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

Key: FB-15687
Type: Bug Bug
Status: Closed Closed
Resolution: Deferred
Priority: C C
Assignee: Mac Martine
Reporter: Mac Martine
Votes: 3
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Flash Builder / Flex Builder

"Error while loading initial content" when trying to Debug and imported 3.0.1 AIR project

Created: 10/30/08 12:24 PM   Updated: 02/17/09 11:33 AM
Component/s: AIR: Run/ Debug
Security Level: Public (All JIRA Users )

Severity: Incorrectly Functioning
Reproducibility: Every Time
Discoverability: Medium
Found in Version: MAX (Gumbo) - 213377
Milestone: Gumbo I10
Affected OS(s): All OS Platforms - All
Steps to Reproduce:
Steps to reproduce:
1. Create an AIR project in 3.0.x
2. Import the AIR project into Gumbo (File->Import->Flex Project->Project Folder) RESULT: Project is import as a Flex project (Flex icon instead of AIR)
3. Debug
 
 Actual Results:
 
Process terminated without establishing connection to debugger.

Command:

"/Applications/Adobe Gumbo MAX Preview/sdks/4.0.0/bin/adl" -runtime "/Applications/Adobe Gumbo MAX Preview/sdks/4.0.0/runtimes/air/mac" "/Users/mac/Documents/Flex Builder 3/myair/bin-debug/myair-app.xml" "/Users/mac/Documents/Flex Builder 3/myair/bin-debug"

Output from command:

error while loading initial content

 Expected Results:
 
 
 Workaround (if any):
 
 
 
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
QA Owner: Kazue Watanabe
Resolved by: Larry McLister
Participants: George Comninos, Heidi Williams, Larry McLister, Mac Martine, Narciso Jaramillo, Paul Evans, Simeon Bateman and Ted Zeng


 All   Comments      Sort Order:
Simeon Bateman - [10/31/08 05:04 PM ]
Changing the namespace from 1.0 to 1.5 fixes this issue.

<application xmlns="http://ns.adobe.com/air/application/1.5">

Heidi Williams - [11/05/08 01:56 PM ]
IRB opened to George post MAX

Paul Evans - [11/18/08 12:18 PM ]
Same error is generated when switching the SDK of a previous AIR project to 3.2 (FlexBuilder updated to 3.0.2).
Same fix - change to the application-app.xml file's namespace to 1.5 is the solution.
Would be handy if this error could be intercepted to report a more meaningful message by the time Gumbo is released.

Narciso Jaramillo - [12/16/08 04:15 PM ]
Actually, there are two solutions: (1) change the app.xml namespace to 1.5, or (2) switch the project to use an earlier SDK version (e.g. 3.1). Users might want to do the latter if they want to retain the ability to deploy the application under pre-1.5 versions of AIR.

Larry McLister - [01/05/09 03:46 PM ]
bulk change from I9 to I10

George Comninos - [02/03/09 07:51 PM ]
nj's solution #2 doesn't quite work, since the user chooses the SDK on import. If they choose a newer SDK than 3.1 in this case, they get this problem. We decided not to do any code re-writing on import, including the app xml descriptor file. If a 1.0/1.1 air app cannot be built properly with a newer SDK, an error should really be generated by the compiler saying this SDK is not compatible with their AIR app version, that way the user would see this and it would be obvious how to fix it. Can we push this to the AIR/compiler team?

Heidi Williams - [02/11/09 03:54 PM - edited ]
Mac, can you file an AIR bug. I agree with George that the adl should be backwards compatible and allow compiling older app descriptors.

Mac Martine - [02/12/09 02:17 PM ]
logged air bug Bug #: 2278598 -- back to qrb to decide what to do with this bug

Ted Zeng - [02/12/09 04:29 PM ]
First, the tool is ADL not ADT. ADT is for packaging an AIR file.

This problem is probably caused by API Versioning feature. The root content SWF file is generated in SWF10 file format
by newer SDk by default. And AIR apps with namespace lower than 1.5 are not allowed to work with SWF10 root content file.
This is by design.

The ways to prevent this error is either changing the namespace to 1.5, or tell Flex Builder to generate SWF9 root content file.

Older versions of ADL (and ADT) don't have this API Versioning feature. So it is possible to launch a SWF10 root content file with a namespace 1.0 or 1.1
when using those older versions of SDK.

Larry McLister - [02/16/09 05:31 PM ]
IRB deferred. We will be piping ADL errors to the FB output panel so it should be more obvious what the issue and solution are to users