I resolved this issue myself. The issue was that flexmojos is launching the 
air debugger - adl.exe, and the return code 3 is thrown from adl rather 
than flexmojos. This error translates to 'The runtime cannot be found' from 
here: 
http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7fd7.html
 
In my case this was being reported because the Path variable wasn't set to 
a complete installation of ADL. Changing the Path variable to point to the 
bin directory of an Adobe SDK directory resolved the problem. 
 

On Thursday, 6 December 2012 11:23:16 UTC, Murray Furtado wrote:

> Here's some more debug trace we see just before the error appears:
>
> [INFO] Running tests C:\Development\Flex 
> Development\indigo\indigo-swc\target\test-classes\TestRunner.swf
> [DEBUG] [LAUNCHER] ASVmLauncher starting
> [DEBUG] [LAUNCHER] exec: [adl] - C:\Development\Flex 
> Development\indigo\indigo-swc\target\test-classes\TestRunner.x
> ml
> [DEBUG] [LAUNCHER] Creating process
> [DEBUG] [org.sonatype.flexmojos.test.monitor.ResultHandler] opened server 
> socket on port 4988
> [DEBUG] [org.sonatype.flexmojos.test.monitor.AsVmPing] opened server 
> socket on port 4987
> [WARNING] [LAUNCHER] Using regular flashplayer tests
> [DEBUG] [LAUNCHER] Process created java.lang.ProcessImpl@4e95f5
> [DEBUG] [LAUNCHER] Output pumpers ON
> [DEBUG] [LAUNCHER] Waiting for flashplayer termination
> [DEBUG] [MOJO] launcher RUNNING
> [DEBUG] [MOJO] pinger STARTED
> [DEBUG] [MOJO] resultHandler STARTED
> [DEBUG] [LAUNCHER] Flashplayer closed
> [DEBUG] [LAUNCHER] Unexpected return code 3
> [DEBUG] [MOJO] launcher ERROR
> [DEBUG] [MOJO] pinger STARTED
> [DEBUG] [MOJO] resultHandler STARTED
> Cobertura: Saved information on 261 classes.
>
>
>
> On Wednesday, 5 December 2012 11:35:16 UTC, Murray Furtado wrote: 
>>
>> Hi, we've started seeing the following exception when running unit tests 
>> using flexmojos 4.2-beta with flex version 4.5.1.21328 and flexunit 
>> 4.1-RC2.  Can anyone help by telling us what this return code means and  
>> what our problem might be? 
>>  
>> Thanks!
>>  
>> ugin:4.2-beta:test-run (default-test-run) on project indigo-swc: 
>> Unexpected return code 3 - C:\Development\Flex Dev
>> elopment\indigo\indigo-swc\target\test-classes\TestRunner.swf
>>         at 
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>>         at 
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>         at 
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>         at 
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>         at 
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>         at 
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>         at 
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>         at 
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>>         at 
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>>         at 
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>>         at 
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Unexpected 
>> return code 3 - C:\Development\Flex Developme
>> nt\indigo\indigo-swc\target\test-classes\TestRunner.swf
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.tearDown(TestRunMojo.java:420)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody0(TestRunMojo.java:245)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody1$advice(TestRunMojo.java:24)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody2(TestRunMojo.java:231)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody3$advice(TestRunMojo.java:17)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.execute(TestRunMojo.java:1)
>>         at 
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>>         at 
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>>         ... 19 more
>> Caused by: org.sonatype.flexmojos.test.TestRunnerException: Unexpected 
>> return code 3 - C:\Development\Flex Developm
>> ent\indigo\indigo-swc\target\test-classes\TestRunner.swf
>>         at 
>> org.sonatype.flexmojos.test.DefaultTestRunner.run(DefaultTestRunner.java:67)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.runTest(TestRunMojo.java:381)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.runTest(TestRunMojo.java:349)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.runTests(TestRunMojo.java:404)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.run(TestRunMojo.java:292)
>>         at 
>> org.sonatype.flexmojos.plugin.test.TestRunMojo.execute_aroundBody0(TestRunMojo.java:244)
>>         ... 25 more
>> Caused by: java.lang.Error: Unexpected return code 3
>>         at 
>> org.sonatype.flexmojos.test.launcher.AsVmLauncher.processExitCode(AsVmLauncher.java:134)
>>         at 
>> org.sonatype.flexmojos.test.launcher.AsVmLauncher.run(AsVmLauncher.java:158)
>>         at java.lang.Thread.run(Thread.java:619)
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to