1 Reply Latest reply on Mar 15, 2008 7:44 AM by Neill L

    Failed with return code: 6

    Neill L
      I'm getting a strange error running a multi-module Maven POM using the Maven antrun plugin to execute Flex Ant Tasks. Has anyone seen this error before? Any ideas what could be causing it? TIA

      Caused by: C:\Installs\MTCSEWorkspace\MTCSE_WebApp\flex-build.xml:16: mxmlc - Failed with return code: 6
      at flex2.ant.FlexTask.execute(FlexTask.java:181)

      The entire debug and stacktrace:

      [DEBUG] ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run' -->
      [DEBUG] (f) artifacts = [ant:ant:jar:1.6.5:runtime, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime, org.apache.maven:maven-project:jar:2.0.1:runtime]
      [DEBUG] (f) project = MavenProject: org.dhhs.mtcse:MTCSE_WebApp:0.1 @ C:\Installs\MTCSEWorkspace\MTCSE_WebApp\pom.xml
      [DEBUG] (f) tasks =
      [DEBUG] -- end configuration --
      [INFO] [antrun:run {execution: default}]
      [INFO] Executing tasks
      [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
      [DEBUG] getProperty(ns=null, name=ANT_HOME, user=false)
      [DEBUG] getProperty(ns=null, name=ant.reuse.loader, user=false)
      [DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
      [DEBUG] getProperty(ns=null, name=ant.executor.class, user=false)
      [DEBUG] getProperty(ns=null, name=ant.file, user=false)
      [DEBUG] getProperty(ns=null, name=ant.file, user=false)

      compile:
      Error loading: C:\Program Files\Java\jdk1.6.0_04\jre\bin\client\jvm.dll
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Error executing ant tasks

      Embedded error: The following error occurred while executing this line:
      C:\Installs\MTCSEWorkspace\MTCSE_WebApp\flex-build.xml:16: mxmlc - Failed with return code: 6
      [INFO] ------------------------------------------------------------------------
      [DEBUG] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor .java:564)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifec ycleExecutor.java:480)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor. java:459)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL ifecycleExecutor.java:311)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE xecutor.java:278)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java :143)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant tasks
      at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:114)
      at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor .java:539)
      ... 16 more
      Caused by: The following error occurred while executing this line:
      C:\Installs\MTCSEWorkspace\MTCSE_WebApp\flex-build.xml:16: mxmlc - Failed with return code: 6
      at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108)
      ... 19 more
      Caused by: C:\Installs\MTCSEWorkspace\MTCSE_WebApp\flex-build.xml:16: mxmlc - Failed with return code: 6
      at flex2.ant.FlexTask.execute(FlexTask.java:181)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      at org.apache.tools.ant.Task.perform(Task.java:364)
      at org.apache.tools.ant.Target.execute(Target.java:341)
      at org.apache.tools.ant.Target.performTasks(Target.java:369)
      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:3 7)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
      ... 23 more

        • 1. Re: Failed with return code: 6
          Neill L Level 1
          This turns out to be a non-issue. I re-installed JDK 1.6, thinking this might have been the problem, but as it turns out, this Windows machine was a VM, and there haven't been any issues with other VM's, only this one, leading me to conclude the problem was the VM. We've since migrated off this machine and recycled it.