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

Key: SDK-17192
Type: Bug Bug
Status: Closed Closed
Resolution: Cannot Reproduce
Priority: None None
Assignee: Joan Lafferty
Reporter: Christophe Jolif
Votes: 1
Watchers: 3
Operations

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

[Marshall Plan] StackOverflow occuring when using hasOwnProperty in Marshall Plan

Created: 10/06/08 07:07 AM   Updated: 10/10/08 06:24 AM
Component/s: Runtime Exceptions
Security Level: Public (All JIRA Users )

File Attachments: 1. Zip Archive marshall-plan-app.zip (14 kb)
2. Zip Archive marshall-plan.zip (14 kb)


Severity: Crash/Hang
Reproducibility: Every Time
Discoverability: High
Found in Version: SDK Flex 3.0.3
Affected OS(s): Windows
Steps to Reproduce:
Steps to reproduce:
1. run marshall-plan project
2. type in the url of the marshall-plan-app project SWF

 
 Actual Results:
Error: Error #1023: Stack overflow occurred.
at Object$/_hasOwnProperty()
at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()
at Object$/_hasOwnProperty()
at Object/http://adobe.com/AS3/2006/builtin::hasOwnProperty()
 
 Expected Results:
 Should not throw runtime error.
 
 Workaround (if any):
 
 
 
Language Found: English
Bugbase Id: none
QA Owner: Steven Shongrunden
Resolved by: Joan Lafferty
Participants: Christophe Jolif, Joan Lafferty, Lauren Park and radha venugopal


 All   Comments      Sort Order:
Christophe Jolif - [10/06/08 07:09 AM ]
Using several Adobe components including DMV one such as OLAP cube is showing the problem

Lauren Park - [10/06/08 09:54 AM ]
re-assigned to Joan.

Joan Lafferty - [10/09/08 07:11 PM ]
Hi Christophe,

In the bug, you are trying to put a child application that is not on the same domain as the main application into the same security domain via:
context.securityDomain = SecurityDomain.currentDomain;

This isn't a supported use case. We do not recommend changing the security domain of a child swf. If you want the untrusted child to have access to the parent or vice versa, you should use Security.allowDomain.

If I remove the code from the example regarding changing security domains, things work correctly. I don't get any errors.

Christophe Jolif - [10/10/08 03:15 AM ]
Hi Joan,

What I do is a simple copy/paste of draft Marshall Plan documentation. See "Specifying a LoaderContext" in http://blogs.adobe.com/flexdoc/loadingSubApps.pdf. So if that is *not* the way to go, I guess the documentation should be fixed?

radha venugopal - [10/10/08 06:24 AM ]
I have an application which loads a child Application which is on the server. When i load the child into the parent application it gives me the same stack error
Here is the code for the main application:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="loadACT();" scriptTimeLimit="5000">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.managers.SystemManager;
import mx.controls.SWFLoader;
private var loaderA:Loader = new Loader();
private function loadACT():void
{
var contextA:LoaderContext = new LoaderContext();
contextA.applicationDomain = new ApplicationDomain();
loaderA.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loaderA.load(new URLRequest("other/Demo_flex3.swf"), contextA);
}
private var myLoader:SWFLoader ;
private function completeHandler(event:Event):void
{
myLoader = new SWFLoader();
myLoader.trustContent=true ;
Security.allowDomain("*");
myLoader.source = event.target.content;
this.addChild(myLoader);


}

]]>
</mx:Script>
</mx:Application>