Hi Marvin,
OK, I think this problem is occurring because the build can not launch the
flash player.
In TestSuite.txt I see
launch(org.sonatype.flexmojos.test.launcher.AsVmLauncherTest) Time elapsed:
0.018 sec <<< FAILURE!
org.sonatype.flexmojos.test.launcher.LaunchFlashPlayerException: Failed to
launch Flash Player.
at
org.sonatype.flexmojos.test.launcher.AsVmLauncher.runFlashplayer(AsVmLauncher.java:182)
at
org.sonatype.flexmojos.test.launcher.AsVmLauncher.start(AsVmLauncher.java:292)
at
org.sonatype.flexmojos.test.launcher.AsVmLauncherTest.launch(AsVmLauncherTest.java:29)
Caused by: java.io.IOException: Cannot run program "Flash Player": error=2, No
such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at
org.sonatype.flexmojos.test.launcher.AsVmLauncher.runFlashplayer(AsVmLauncher.java:176)
... 14 more
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 17 more
Is this because I have not set some configuration variable (I did try several
different versions of -DflashplayerCommand=... but nothing changed the "Flash
Player" in the above error), or is it related to what you said a while ago on
http://osdir.com/ml/flex-mojos/2010-10/msg00129.html -
"I'm trying to make flexmojos easier to run unit test, by making it capable of
using flashplayer from maven repo. That plus maven-external-dependency-plugin
[1] would make flexmojos more transparent for used.... eliminating the need to
setup flashplayer on the OS....
But, linux is not my native environment (neither is mac). So I would like to
ask for volunteers that wanna to get dirty in order to get this working.
The configuration for maven-external-dependency-plugin is described [2]
Unless I get some help this feature will be available on windows only, since I
don't have time to go linux and figure this out."
If it is the latter, I will try to see what I can do. I presume I have to do
something like the following
1) Somehow manually install the mac flash debug player into my maven repository
at ~/.m2/repository/com/adobe/flashplayer/10.2/, making a note of how I do that.
2) during the build process copy this player to
flexmojos-aggregator/flexmojos-testing/flexmojos-tester/target/flashplayer/ ,
like you seem to do with the windows and linux one.
3) during testing make sure that AsVmLauncherTest.launch will launch this
player on a mac.
I that about it?
Conrad
On 15 Dec 2010, at 02:13, Marvin Froeder wrote:
> A unit test didn't pass, look at test report to know why.
>
> On Tue, Dec 14, 2010 at 6:34 PM, Conrad Winchester <[email protected]>
> wrote:
> OK, got 4.x building but it fails the tester api tests after a 'mvn clean
> install -P minimal' . I have attached the output log of an 'mvn -e -X clean
> install -P minimal'
>
> I
>
> --
> 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/
>
> want to help try and provide a patch and so I would really appreciate any
> help in getting my build working.
>
> Thanks
>
> Conrad
>
>
>
>
> On 14 Dec 2010, at 11:28, Marvin Froeder wrote:
>
>> Work on windows and fail on mac os x??? that is a serious bug then, but I
>> don't think it is flexmojos, since this stuff is injected by maven...
>>
>> I thought it was failing everywhere and you was putting this files in some
>> random location (not inside src/main/resources or whatever is your resources
>> folder), but NVM then....
>>
>> On Tue, Dec 14, 2010 at 9:26 AM, Conrad Winchester
>> <[email protected]> wrote:
>> I'm sorry, I don't understand your last post, the files mentioned in the pom
>> do exist. If I specify an absolute file path to them the build works. The
>> build also works on windows with no modifications, hence my mentioning that
>> it is a bug I may have found in os x.
>>
>> I also pointed out that if it really is a file not found error than it does
>> indeed throw that error instead of an NPE.
>>
>> If you look at my stack trace it is an NPE for files that can be found.
>>
>> Have I missed something?
>>
>> Sent from my iPad
>>
>> On Dec 14, 2010, at 10:46 AM, Marvin Froeder <[email protected]> wrote:
>>
>>> So, you file doesn't exits inside resources folder? Well, make sense to no
>>> work then.
>>>
>>> Well, the patch here is throw a fileNotFound exception instead of an NPE....
>>>
>>> On Tue, Dec 14, 2010 at 5:14 AM, Conrad Winchester <[email protected]>
>>> wrote:
>>> Hi Marvin,
>>>
>>> in order to create a patch should I work on the trunk or the 4.x branch?
>>>
>>> Conrad
>>>
>>> On 13 Dec 2010, at 20:29, Marvin Froeder wrote:
>>>
>>>> Ok, lemme know when you file a patch for it.
>>>>
>>>> VELO
>>>>
>>>> On Mon, Dec 13, 2010 at 6:25 PM, Conrad Winchester
>>>> <[email protected]> wrote:
>>>> Hi managed to find issues.sonatype.org and sign up. Have reported the issue
>>>>
>>>> https://issues.sonatype.org/browse/FLEXMOJOS-375
>>>>
>>>> Thanks
>>>>
>>>> Conrad
>>>> On 12 Dec 2010, at 19:49, Conrad Winchester wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I think I have identified a bug in flexmojos 4 beta 4 on a mac running os
>>>>> x 10.6.5 and maven 3.0.1
>>>>>
>>>>> Inside properties I have
>>>>>
>>>>> <properties>
>>>>>
>>>>> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>>>>> <flex.sdk.version>4.1.0.16076</flex.sdk.version>
>>>>> <flexmojos.version>4.0-beta-4</flexmojos.version>
>>>>> <flexunit.version>4.1.0-beta3</flexunit.version>
>>>>>
>>>>>
>>>>> <library.namespace.uri>library://www.dz015.com/ns</library.namespace.uri>
>>>>>
>>>>> <library.manifest.file>src/main/flex/manifest.xml</library.manifest.file>
>>>>> <library.design.file>src/main/flex/design.xml</library.design.file>
>>>>>
>>>>> <library.defaults.css>src/main/flex/defaults.css</library.defaults.css>
>>>>>
>>>>> </properties>
>>>>>
>>>>>
>>>>> Inside the build configuration I have
>>>>>
>>>>> <includeNamespaces>
>>>>> <namespace>${library.namespace.uri}</namespace>
>>>>> </includeNamespaces>
>>>>>
>>>>> and
>>>>>
>>>>> <includeStylesheets>
>>>>> <stylesheet>
>>>>> <name>defaults.css</name>
>>>>> <path>${library.defaults.css}</path>
>>>>> </stylesheet>
>>>>> </includeStylesheets>
>>>>>
>>>>> If I try to build it I get a null pointer exception (see after this email
>>>>> for error output with 'mvn -e -X compile'). If I make both of the file
>>>>> references (library.default.css and library.namespaice.uri) absolute from
>>>>> the root then the error does not occur. If I make the file reference
>>>>> absolute, but spelt wrong the I get a 'can not find file' error. And so
>>>>> this only happens with relative file references.
>>>>>
>>>>> I have attached my project (its very simple) and would appreciate any
>>>>> help and/or acknowledgement of whether or not this is a bug - If there is
>>>>> a place for me to report this issue then please tell me where that is.
>>>>>
>>>>> Thanks for any help
>>>>>
>>>>>
>>>>> Conrad Winchester
>>>>>
>>>>> <ExampleSWCProject.zip>
>>>>>
>>>>> ERROR FOLLOWS >>>>>>>
>>>>>
>>>>> [ERROR] Failed to execute goal
>>>>> org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-beta-4:compile-swc
>>>>> (default-compile-swc) on project example-swc-project:
>>>>> java.lang.reflect.InvocationTargetException: NullPointerException ->
>>>>> [Help 1]
>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>>>>> goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-beta-4:compile-swc
>>>>> (default-compile-swc) on project example-swc-project:
>>>>> java.lang.reflect.InvocationTargetException
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203)
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
>>>>> 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:314)
>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
>>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
>>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
>>>>> 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:
>>>>> java.lang.reflect.InvocationTargetException
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:278)
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1737)
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody0(CompcMojo.java:224)
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody1$advice(CompcMojo.java:36)
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody2(CompcMojo.java:218)
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody3$advice(CompcMojo.java:14)
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody4(CompcMojo.java:1)
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody5$advice(CompcMojo.java:17)
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute(CompcMojo.java:1)
>>>>> at
>>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
>>>>> at
>>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
>>>>> ... 19 more
>>>>> Caused by: java.lang.RuntimeException:
>>>>> java.lang.reflect.InvocationTargetException
>>>>> at
>>>>> org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.getArgumentsList(DefaultFlexCompilerArgumentParser.java:56)
>>>>> at
>>>>> org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.parseArguments(DefaultFlexCompilerArgumentParser.java:38)
>>>>> at
>>>>> org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.parseArguments(DefaultFlexCompilerArgumentParser.java:33)
>>>>> at
>>>>> org.sonatype.flexmojos.compiler.DefaultFlexCompiler$1.command(DefaultFlexCompiler.java:38)
>>>>> at
>>>>> org.sonatype.flexmojos.compiler.DefaultFlexCompiler$6.run(DefaultFlexCompiler.java:134)
>>>>> at java.lang.Thread.run(Thread.java:680)
>>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>> 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.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.doGetArgs(DefaultFlexCompilerArgumentParser.java:180)
>>>>> at
>>>>> org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.getArgumentsList(DefaultFlexCompilerArgumentParser.java:52)
>>>>> ... 5 more
>>>>> Caused by: java.lang.NullPointerException
>>>>> at
>>>>> org.sonatype.flexmojos.plugin.compiler.CompcMojo$1.path(CompcMojo.java:296)
>>>>> ... 11 more
>>>>> [ERROR]
>>>>> [ERROR]
>>>>> [ERROR] For more information about the errors and possible solutions,
>>>>> please read the following articles:
>>>>> [ERROR] [Help 1]
>>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> 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/
>>>>
>>>>
>>>> --
>>>> 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/
>>>
>>>
>>> --
>>> 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/
>>>
>>>
>>> --
>>> 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/
>>
>>
>> --
>> 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/
>>
>>
>> --
>> 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/
>
>
>
>
> --
> 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/
--
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/