I believe that the RoyaleUnit Ant tasks will choose the default browser by default, and I customized Royale's framework Ant scripts to use specific browsers. As I recall, I check for Chrome first, and if it's not available, then I try to find Firefox instead. Not all browsers can run our tests without a web server (IE, for instance), so I kept it limited to two known good browsers. Maybe in the future, we can integrate a simple web server into the RoyaleUnit Ant tasks so that they will work well in any browser.
-- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Thu, Apr 23, 2020 at 5:55 PM OmPrakash Muppirala <[email protected]> wrote: > Hmm, I decided to execute royale-asjs on agent1 and it is failing with a > similar but different error message, around the same area. > > > http://apacheroyaleci2.westus2.cloudapp.azure.com:8080/job/royale-asjs/1127/console > > Weird to see the chrome is invoked even though firefox is set to be the > default browser. > > On Thu, Apr 23, 2020 at 12:29 AM Alex Harui <[email protected]> > wrote: > > > OK, it may not be trust files. Did you check to see if my VM has opened > > port 843 to allow a policy file request? > > > > Again, I'm out of time for tonight. I suggest looking at the Royale code > > in the call stack to see what it is trying to do. > > org.apache.royale.test.ant.tasks.TestRun.run(TestRun.java:77) > > > > HTH, > > -Alex > > > > On 4/22/20, 11:46 PM, "OmPrakash Muppirala" <[email protected]> > wrote: > > > > On Wed, Apr 22, 2020 at 12:36 AM Alex Harui <[email protected] > > > > wrote: > > > > > I’m stopping for tonight, but what is in the two files? You might > > try > > > going to my VM, finding a SWF, loading it in FlashPlayerDebugger, > > > right-click to see the trust info, and see if sockets are enabled. > > Also > > > make sure you are running the same version of FlashPlayerDebugger > as > > on my > > > VM. > > > > > > > I tried everything. To my eyes, the settings look the same. > Although > > I > > dont get how I can right-click to see the trust info, sockets etc. I > > see > > the menu with `Settings` and `Global Settings`. Neither of them talk > > about > > trust info or sockets. > > > > Thanks, > > Om > > > > > > > > > > Good luck, > > > -Alex > > > > > > From: OmPrakash Muppirala <[email protected]> > > > Reply-To: "[email protected]" <[email protected]> > > > Date: Wednesday, April 22, 2020 at 12:30 AM > > > To: Apache Royale Development <[email protected]> > > > Subject: Re: royale-asjs build error > > > > > > > > > On Tue, Apr 21, 2020 at 9:01 PM Alex Harui > <[email protected] > > > > > > wrote: > > > Flash Player Trust files? > > > > > > I copied these two files from he master Jenkins server. It still > > seems to > > > fail on the same error: > > > > > > > > > [cid:ii_k9b0mukn0] > > > > > > > > > > > > > > > On 4/21/20, 5:08 PM, "OmPrakash Muppirala" <[email protected] > > <mailto: > > > [email protected]>> wrote: > > > > > > This is part of my port of certain jobs from Master to Agent2 > on > > the > > > Jenkins CI server. > > > > > > > > > I am seeing this error. Any idea what could be going wrong > here? > > > > > > BUILD FAILEDc:\jenkins\workspace\royale-asjs\build.xml:667: The > > > following error occurred while executing this line: > > > c:\jenkins\workspace\royale-asjs\frameworks\build.xml:118: The > > > following error occurred while executing this line: > > > c:\jenkins\workspace\royale-asjs\frameworks\build.xml:383: The > > > following error occurred while executing this line: > > > > > > > > c:\jenkins\workspace\royale-asjs\frameworks\projects\Basic\build.xml:68: > > > The following error occurred while executing this line: > > > > > > > > > c:\jenkins\workspace\royale-asjs\frameworks\projects\Basic\src\test\royale\build.xml:100: > > > java.util.concurrent.ExecutionException: command > > > [<policy-file-request/>] not understood > > > at java.util.concurrent.FutureTask.report(Unknown Source) > > > at java.util.concurrent.FutureTask.get(Unknown Source) > > > at > > org.apache.royale.test.ant.tasks.TestRun.run(TestRun.java:77) > > > at > > > > > > org.apache.royale.test.ant.tasks.RoyaleUnitTask.execute(RoyaleUnitTask.java:192) > > > at > > > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) > > > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown > > Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > > > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) > > > at org.apache.tools.ant.Task.perform(Task.java:348) > > > at org.apache.tools.ant.Target.execute(Target.java:435) > > > at > org.apache.tools.ant.Target.performTasks(Target.java:456) > > > at > > > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) > > > at > > > > > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) > > > at > > org.apache.tools.ant.Project.executeTargets(Project.java:1260) > > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) > > > at > > > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) > > > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown > > Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > > > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) > > > at org.apache.tools.ant.Task.perform(Task.java:348) > > > at org.apache.tools.ant.Target.execute(Target.java:435) > > > at > org.apache.tools.ant.Target.performTasks(Target.java:456) > > > at > > > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) > > > at > > > > > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) > > > at > > org.apache.tools.ant.Project.executeTargets(Project.java:1260) > > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) > > > at > > > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) > > > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown > > Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > > > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) > > > at org.apache.tools.ant.Task.perform(Task.java:348) > > > at org.apache.tools.ant.Target.execute(Target.java:435) > > > at > org.apache.tools.ant.Target.performTasks(Target.java:456) > > > at > > > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) > > > at > > > > > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) > > > at > > org.apache.tools.ant.Project.executeTargets(Project.java:1260) > > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) > > > at > > > > org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) > > > at > > > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) > > > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown > > Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > > > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) > > > at org.apache.tools.ant.Task.perform(Task.java:348) > > > at org.apache.tools.ant.Target.execute(Target.java:435) > > > at > org.apache.tools.ant.Target.performTasks(Target.java:456) > > > at > > > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) > > > at > > > > > > org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) > > > at > > org.apache.tools.ant.Project.executeTargets(Project.java:1260) > > > at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441) > > > at > > > > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) > > > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown > > Source) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > Source) > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > at > > > > > > org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) > > > at org.apache.tools.ant.Task.perform(Task.java:348) > > > at org.apache.tools.ant.Target.execute(Target.java:435) > > > at > org.apache.tools.ant.Target.performTasks(Target.java:456) > > > at > > > > org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) > > > at > > org.apache.tools.ant.Project.executeTarget(Project.java:1376) > > > at > > > > > > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > > > at > > org.apache.tools.ant.Project.executeTargets(Project.java:1260) > > > at org.apache.tools.ant.Main.runBuild(Main.java:857) > > > at org.apache.tools.ant.Main.startAnt(Main.java:236) > > > at > > org.apache.tools.ant.launch.Launcher.run(Launcher.java:287) > > > at > > org.apache.tools.ant.launch.Launcher.main(Launcher.java:113) > > > Caused by: command [<policy-file-request/>] not understood > > > at > > > > > > org.apache.royale.test.ant.RoyaleUnitSocketThread.parseInboundMessages(RoyaleUnitSocketThread.java:128) > > > at > > > > > > org.apache.royale.test.ant.RoyaleUnitSocketThread.call(RoyaleUnitSocketThread.java:66) > > > at java.util.concurrent.FutureTask.run(Unknown Source) > > > at > java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown > > > Source) > > > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > > > Source) > > > at java.lang.Thread.run(Unknown Source) > > > > > > Total time: 13 minutes 31 seconds > > > Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 -Xms384m > > -Xmx1024m > > > Build step 'Invoke Ant' marked build as failure > > > Skipped archiving because build is not successful > > > Sending e-mails to: [email protected]<mailto: > > [email protected] > > > > > > > Finished: FAILURE > > > > > > > > > > > > Full console log here: > > > > > > > > > > > > https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci2.westus2.cloudapp.azure.com%3A8080%2Fjob%2Froyale-asjs%2F1108%2Fconsole&data=02%7C01%7Caharui%40adobe.com%7C815236e818574366d87a08d7e751fb10%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637232211604317179&sdata=s5WIBzDL%2Bkf6Z6BNItagaEtUGlubKtoQ6j4j8VcJ9k8%3D&reserved=0 > > > < > > > > > > https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci2.westus2.cloudapp.azure.com%3A8080%2Fjob%2Froyale-asjs%2F1108%2Fconsole&data=02%7C01%7Caharui%40adobe.com%7C815236e818574366d87a08d7e751fb10%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637232211604317179&sdata=s5WIBzDL%2Bkf6Z6BNItagaEtUGlubKtoQ6j4j8VcJ9k8%3D&reserved=0 > > > > > > > > > > > > > > > > >
