http://paste2.org/p/1481458 (stack trace looks better here, and wanted
to use pastebin, its down since morning lol, after 7 billion posts or
7 million users?)

On Jun 21, 11:30 am, Snadboy <[email protected]> wrote:
> 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 
> samplehttp://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(Lif 
> ecycleModuleBuilder.java:
> 84)
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif 
> ecycleModuleBuilder.java:
> 59)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li 
> fecycleStarter.java:
> 183)
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart 
> er.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(DelegatingMethodAccessorImp 
> l.java:
> 25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j 
> ava:
> 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(SignAirMo 
> jo.java:
> 345)
>         at
> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody1$advice(Si 
> gnAirMojo.java:
> 24)
>         at
> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody2(SignAirMo 
> jo.java:
> 345)
>         at
> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody3$advice(Si 
> gnAirMojo.java:
> 17)
>         at
> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute(SignAirMojo.java:
> 1)
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP 
> luginManager.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-360https://issues.sonatype.org/browse/FLEXMOJOS-359http://groups.google.com/group/flex-mojos/browse_thread/thread/140018...http://markmail.org/message/dm75hlpdrj3uguzlhttp://osdir.com/ml/flex-mojos/2011-01/msg00175.htmlhttp://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/

Reply via email to