Reply
Member
BFrancic
Posts: 5
Registered: 06-28-2010
0

Errors when starting Web Sessions with Flex support in iTest 4.0

I have an iTest web session set up with flex support enabled but get the following ActionScript errors when the session runs in the iTest internal browser:

1. VerifyError: Error #1053:illegal override of allowInsecureDomain in_main_mx_managers_SystemManager

2. ReferenceError: Error #1065:Variable_main_mx_managers_SystemManager is not defined

Although the background colour of our application is visible, we cannot reach our login screen. These errors do not appear when we access the application through a browser outside of iTest.

I have copied the files iTestAutomationEnvironment.xml & iTestFlexWrapper.swf into the directory on the application host server where the main swf sits. I have also tried the alternative compilation approach i.e. putting the swc into our build. We are using Flex 3.

Community Leader
GregM
Posts: 302
Registered: 09-02-2008
0

Re: Errors when starting Web Sessions with Flex support in iTest 4.0

I think you need to place the iTest swf and xml files in every directory from which swf files are served up.

Member
BFrancic
Posts: 5
Registered: 06-28-2010
0

Re: Errors when starting Web Sessions with Flex support in iTest 4.0

Hi Greg, thanks for your reply. The 2 files have been copied to every directory where we have a swf but the result is the same.

Member
BFrancic
Posts: 5
Registered: 06-28-2010
0

Re: Errors when starting Web Sessions with Flex support in iTest 4.0

Adding further notes:

We specifically need to use flexSDK 3.5 for this application rather than 4.0.

Cannot carry out any debugging - the errors arise as the application login dialog is initialising in the internal browser. The server logs are not written to at this point so there's nothing to check. The application is deployed in Tomcat.

Have attached the some screenshots to help illustrate the problem:

1. login-initialising.png - shows application's blue background as it's initializing in the internal browser. The intialising progress bar disappears before it completes.
2. actionscript-error1.png & actionscript-error2.png - the 2 actionscript errors are then displayed.

Used the the following website from Adobe for understanding what the respectives errors mean - http://help.adobe.com/en_US/AS3LCR/Flash_10.0/runtimeErrors.html


With the first error (1053), the footnote suggests the ActionScript in the SWF is invalid, however, the problem does not arise when initialising in a seperate (firefox) browser, only in the
internal one.

The second error (1065) indicates that 'SystemManager' is not defined. Details of this class can be found - http://livedocs.adobe.com/flex/3/langref/mx/managers/SystemManager.html - it contains the public method allowInsecureDomain() refered to in the first error i.e. illegal override of allowInsecureDomain.

NOTE: Right mouse clicking on the blue background at this point lists the following actions:- Describe | Snapshot | Get Text | Get Data

 

Hope this helps.

login-initializing.png
actionscript-error1.png
actionscript-error2.png
Community Leader
AdamB
Posts: 723
Registered: 09-01-2008
0

Re: Errors when starting Web Sessions with Flex support in iTest 4.0

It looks like there is a problem when the iTest wrapper swf loads your swf.  Basically, it has to load and instrument the code and communicate back to iTest.  We are looking into what incompatibilities might exist.


Does this post answer your question? Click the "Accept as solution" button.

Was this post helpful? Click the yellow "Kudos!" button.
Fanfare
RalphJ
Posts: 91
Registered: 09-15-2008
0

Re: Errors when starting Web Sessions with Flex support in iTest 4.0

Investigation into customer's SWF code taken offline.

Resolution will be posted here for future reference once ascertained.