Debugging the Maven execution I found the error... The packager is throwing the message "Invalid namespace http://ns.adobe.com/air/application/2.6" I don't know why the SignAirMojo is not showing this message to the output when throws Exception. The ADT packager is throwing it to the method message of the listener.
Any one knows how to resolve it? Regards, Endrigo Antonini On 6 abr, 01:50, Endrigo Antonini <[email protected]> wrote: > Hi, > > Yeap I checked my descriptor file and was wrong. But I corrected it and I > still having the problem. > > Here is my new descriptor file: > <?xml version="1.0" encoding="utf-8" standalone="no"?> > <application xmlns="http://ns.adobe.com/air/application/2.6"> > > <id>test</id> > > <filename>test</filename> > > <name>test</name> > > <versionNumber>1.0.0</versionNumber> > > <initialWindow> > <content>[This value will be overwritten by Flash Builder in > the output app.xml]</content> > </initialWindow> > </application> > > I changed to use Flex Version 4.5.0.19786 and then Flex Mojo version > 4.0-SNAPSHOT. > > Any other Idea? > > Regards, > Endrigo Antonini > > Em 05/04/2011, às 18:54, Dtornkaew escreveu: > > > > > I have seen this problem when the app descriptor.xml is set to 2.5 and > > you try to compile with AIR 2.6 SDK. > > > Based on the stack this appears to be the problem you are seeing too. > > > Lance > > > On Apr 4, 11:33 am, Endrigo Antonini <[email protected]> wrote: > >> I tried this on Windows and Mac. And it's happening on both off then. > > >> On 4 abr, 12:02, Endrigo Antonini <[email protected]> wrote: > > >>> I received an NPE while trying to compile an AIR project. > > >>> Error: > >>> [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven- > >>> plugin:4.0-SNAPSHOT:sign-air (default) on project test: Error invoking > >>> AIR api: NullPointerException -> [Help 1] > >>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to > >>> execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0- > >>> SNAPSHOT:sign-air (default) 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: > >>> 355) > >>> at > >>> org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody0(SignAirMo > >>> jo.java: > >>> 369) > >>> 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: > >>> 366) > >>> 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 > >>> com.adobe.air.ADTOutputStream.addApplicationDescriptor(ADTOutputStream.java > >>> : > >>> 315) > >>> at > >>> com.adobe.air.AIROutputStream.addApplicationDescriptor(AIROutputStream.java > >>> : > >>> 63) > >>> at > >>> com.adobe.air.ApplicationPackager.addSpecialFiles(ApplicationPackager.java: > >>> 232) > >>> at com.adobe.air.AIRPackager.addSpecialFiles(AIRPackager.java: > >>> 167) > >>> at > >>> com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java: > >>> 63) > >>> at > >>> org.sonatype.flexmojos.plugin.air.packager.FlexmojosAIRPackager.createPacka > >>> ge(FlexmojosAIRPackager.java: > >>> 72) > >>> at > >>> org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java: > >>> 332) > >>> ... 26 more > >>> [ERROR] > >>> [ERROR] Re-run Maven using the -X switch to enable full debug logging. > >>> [ERROR] > >>> [ERROR] For more information about the errors and possible solutions, > >>> please read the following articles: > > >>> pom.xml > >>> <?xml version="1.0" encoding="UTF-8"?> > >>> <project xmlns="http://maven.apache.org/POM/4.0.0" > >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > >>> > >>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4...."> > >>> <modelVersion>4.0.0</modelVersion> > > >>> <properties> > >>> <flexmojos.version>4.0-SNAPSHOT</flexmojos.version> > > >>> <!-- > >>> FAIL > >>> <flexmojos.version>3.9</flexmojos.version> > >>> <flexmojos.version>3.8</flexmojos.version> > >>> <flexmojos.version>3.7</flexmojos.version> > > >>> FAIL > >>> <flex.version>4.5.0.19786</flex.version> > >>> <flex.version>4.5.0.18623</flex.version> > >>> --> > >>> <flex.version>4.5.0.17689</flex.version> > > >>> </properties> > > >>> <groupId>test</groupId> > >>> <artifactId>test</artifactId> > >>> <packaging>swf</packaging> > >>> <version>1.0</version> > >>> <build> > >>> <sourceDirectory>src/main/flex</sourceDirectory> > >>> <testSourceDirectory>src/test/flex</testSourceDirectory> > >>> <plugins> > >>> <plugin> > >>> <groupId>org.sonatype.flexmojos</groupId> > >>> <artifactId>flexmojos-maven-plugin</artifactId> > >>> <version>${flexmojos.version}</version> > >>> <extensions>true</extensions> > >>> <configuration> > >>> <tsa>none</tsa> > >>> > >>> <configurationReport>true</configurationReport> > >>> <sourceFile>${project.name}.mxml</sourceFile> > >>> <descriptorTemplate>${basedir}/src/main/flex/$ > >>> {project.name}-app.xml</descriptorTemplate> > >>> <keystore>${basedir}/src/compile/resources/ > >>> cert.p12</keystore> > >>> <storepass>PASSWORD</storepass> > >>> </configuration> > >>> <dependencies> > >>> <dependency> > >>> <groupId>com.adobe.flex</groupId> > >>> <artifactId>compiler</artifactId> > >>> <version>${flex.version}</version> > >>> <type>pom</type> > >>> </dependency> > >>> <dependency> > >>> <groupId>com.adobe.flex.compiler</groupId> > >>> <artifactId>adt</artifactId> > >>> <version>${flex.version}</version> > >>> </dependency> > >>> </dependencies> > >>> <executions> > >>> <execution> > >>> <goals> > >>> <goal>sign-air</goal> > >>> </goals> > >>> </execution> > >>> </executions> > >>> </plugin> > >>> </plugins> > >>> </build> > >>> <dependencies> > >>> <dependency> > >>> <groupId>com.adobe.flex.framework</groupId> > >>> <artifactId>air-framework</artifactId> > >>> <version>${flex.version}</version> > >>> <type>pom</type> > >>> </dependency> > >>> <dependency> > >>> <groupId>com.adobe.flexunit</groupId> > >>> <artifactId>flexunit</artifactId> > >>> <version>4.0-rc-1</version> > >>> <type>swc</type> > >>> <scope>test</scope> > >>> </dependency> > >>> </dependencies> > > >>> <repositories> > >>> <repository> > >>> <id>sonatype1</id> > >>> > >>> <url>http://repository.sonatype.org/content/groups/flexgroup</url> > >>> </repository> > >>> <repository> > >>> <id>sonatype2</id> > >>> > >>> <url>https://repository.sonatype.org/content/groups/forge/</url> > >>> </repository> > >>> <repository> > >>> <id>jboss</id> > >>> <url>http://repository.jboss.org/maven2/</url> > >>> </repository> > >>> <repository> > >>> <id>ibiblio</id> > > ... > > mais » -- 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/
