Issue 36 in israfil-mojo: NullPointerException when executing the flex2.tools.Compiler

25 views
Skip to first unread message

codesite...@google.com

unread,
Apr 17, 2008, 12:38:11 PM4/17/08
to israfil-m...@googlegroups.com
Issue 36: NullPointerException when executing the flex2.tools.Compiler
http://code.google.com/p/israfil-mojo/issues/detail?id=36

New issue report by nicholas.hamming:
What steps will reproduce the problem?
1. Configure Flex project to use maven-flex2-plugin. (See 'Project's
pom.xml' below.)
2. Run 'mvn install' (in project's directory).

What is the expected output?
- BUILD SUCCESSFUL

What do you see instead?
- (See 'Console Output' below.)

What version of the product are you using? On what operating system?
- maven-flex2-plugin (v1.3)
- Flex SDK 3.0.0
- Maven 2.0.8
- Java JDK 1.5.0_12
- Windows XP Pro (SP2)

Please provide any additional information below.

Console Output
==============
C:\T2MDev\HMIS-Prototype Workspace\HMIS-Prototype\HMIS-Prototype-flex>mvn
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building HMIS-Prototype-flex
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [flex2:compile-swf]
[INFO] Attaching licenses.
[DEBUG] Dependency artifacts: []
[INFO] Adding Extra Parameters: []
[DEBUG] Invoking flex2.tools.Compiler with parameters: [+flexlib=C:\Program
File
s\Adobe\Flex Builder 3 Plug-in\sdks\3.0.0\frameworks, -load-config,
C:\Program F
iles\Adobe\Flex Builder 3 Plug-in\sdks\3.0.0\frameworks\flex-config.xml,
-source
-path, C:\T2MDev\HMIS-Prototype
Workspace\HMIS-Prototype\HMIS-Prototype-flex\src
\main\flex, -output, C:\T2MDev\HMIS-Prototype
Workspace\HMIS-Prototype\HMIS-Prot
otype-flex\target\HMIS-Prototype-flex-0.00.01-SNAPSHOT.swf,
-compiler.locale, en
_US, -compiler.strict, -show-actionscript-warnings, -show-binding-warnings,
-sho
w-deprecation-warnings, -compiler.debug=true, --, Commitments.mxml]
[DEBUG] Command line: java -Xmx384m -Dsun.io.useCanonCaches=false
-classpath "C:
\Program Files\Adobe\Flex Builder 3
Plug-in\sdks\3.0.0\lib\mxmlc.jar;C:\Document
s and
Settings\nhamming\.m2\repository\net\israfil\mojo\maven-flex2-plugin-suppo
rt\1.0\maven-flex2-plugin-support-1.0.jar"
net.israfil.mojo.flex2.StreamedParame
terExecutableWrapper flex2.tools.Compiler
[INFO] java.lang.NullPointerException
[INFO] at java.util.Arrays$ArrayList.<init>(Unknown Source)
[INFO] at java.util.Arrays.asList(Unknown Source)
[INFO] at
net.israfil.mojo.flex2.StreamedParameterExecutableWrapper.main(Stream
edParameterExecutableWrapper.java:64)
[INFO] Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Result of flex2.tools.Compiler execution is: '1'.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Result of
flex2.tools.Co
mpiler execution is: '1'.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.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(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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: Result of
flex2.tools
.Compiler execution is: '1'.
at
net.israfil.mojo.flex2.AbstractFlexMojo.execute(AbstractFlexMojo.java
:298)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
... 16 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Thu Apr 17 12:02:41 ADT 2008
[INFO] Final Memory: 6M/11M
[INFO] ------------------------------------------------------------------------

Project’s pom.xml
=================
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>HMIS-Prototype</groupId>
<artifactId>HMIS-Prototype-flex</artifactId>
<packaging>swf</packaging>
<version>0.00.01-SNAPSHOT</version>
<name>HMIS-Prototype-flex</name>
<description></description>
<properties>
<flex.home>
C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.0.0
</flex.home>
</properties>
<dependencies>
</dependencies>
<distributionManagement>
<repository>
<id>internal</id>
<name>Internal Repository</name>
<url>
.....
</url>
</repository>
</distributionManagement>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<plugins>
<plugin>
<groupId>net.israfil.mojo</groupId>
<artifactId>maven-flex2-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<flexhome>${flex.home}</flexhome>
<usenetwork>true</usenetwork>
<strict>true</strict>
<!-- ... other options ... -->
<showDeprecationWarnings>true</showDeprecationWarnings>
<showBindingWarnings>true</showBindingWarnings>
<warning>true</warning>
<showActionscriptWarnings>true</showActionscriptWarnings>
<debug>true</debug>
<main>Commitments.mxml</main>
</configuration>
</plugin>
</plugins>
<defaultGoal>install</defaultGoal>
</build>
</project>

Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages