This may look like a repeat post, but i am trying to gather as much data on this issue so that a bug can be logged against Fx Mojos or ADT. In on of them Marvin has commented that its deep inside ADT thats causing the issue. Though CLI of ADT doesnt cause this
I am trying to build my air artifact using FlexMojos/ Maven. I’ve run into an NPE, which might be coming from ADT. My Air descriptor file is pretty simple. So are my pom. 1. Maven :3.0.3 2. Java : 1.6.0_22 3. Flex Version : 4.5.0.19786 4. ADT : 2.6.0.19120 5. FlexMojos : 4.0-beta-7 I did explore a bit into the mojos code to see if it was coming from the mojos, http://goo.gl/GCGjv . (looking at the verbose log (1620), it seems to be executing well till line 217, the debug trace is available in the log before the error strikes). After which it calls packager.addSourceWithPath( source, path );, in which packager is of type com.adobe.air.AIRPackager; On googling I found few results on this particular stack trace and suggestions like 1. To see if the descriptor file has a different air version in the namespace than the compiler 2. To see if there is any space / naming / path issues in the descriptor for icon names 3. To see if ${output} is present in the descriptor’s <content> to ensure that the flash builder replaceable text is take care of. In order to address everything that’s there on the net, I made a very simple air app, with one file, descriptor and a pom. And I seem to be running into the same issue. Here is the sample http://www.mediafire.com/?11uxvymfpb6e1a4 Other experiments • Tried with different version of Flex SDK, and Flex Mojos. • changing the packaging from swf to air, and seem to have run into the same error. • build the swf, the xml and the artifacts using maven, built using adt commandline, that worked Any help or guidance in this regard is much appreciated. StackTrace: [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven- plugin:4.0-beta-7:sign-air (default-sign-air) on p roject test: Error invoking AIR api: NullPointerException -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-pl ugin:4.0-beta-7:sign-air (default-sign-air) on project test: Error invoking AIR api 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: Error invoking AIR api at org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java: 334) at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody0(SignAirMojo.java: 345) at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody1$advice(SignAirMojo.java: 24) at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody2(SignAirMojo.java: 345) at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody3$advice(SignAirMojo.java: 17) at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute(SignAirMojo.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: java.lang.NullPointerException at org.sonatype.flexmojos.plugin.air.SignAirMojo.getAirDescriptor_aroundBody4(SignAirMojo.java: 368) at org.sonatype.flexmojos.plugin.air.SignAirMojo.getAirDescriptor_aroundBody5$advice(SignAirMojo.java: 37) at org.sonatype.flexmojos.plugin.air.SignAirMojo.getAirDescriptor(SignAirMojo.java: 1) at org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java: 197) ... 26 more References : https://issues.sonatype.org/browse/FLEXMOJOS-360 https://issues.sonatype.org/browse/FLEXMOJOS-359 http://groups.google.com/group/flex-mojos/browse_thread/thread/140018f39035cd0b http://markmail.org/message/dm75hlpdrj3uguzl http://osdir.com/ml/flex-mojos/2011-01/msg00175.html http://www.mail-archive.com/[email protected]/msg08972.html -- 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/
