flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric THOMAS <webdoubl...@hotmail.com>
Subject NPE in FM / FU (test-run)
Date Wed, 29 Jan 2014 20:51:24 GMT
Hi,

I was trying to execute a mvn test using Flexmojos 6.0.1 and FlexUnit 4.1 but had a NPE, works
fine from IntelliJ.

Just wonder if this error [1] reminds something to someone, I had it before, I'm pretty sure
but can't remember what that came from, any idea ? and is it normal to have 3 test runners
?

Thanks,
Frédéric THOMAS

[1]

[INFO] 
[INFO] --- flexmojos-maven-plugin:6.0.1:test-run (default-test-run) @ Authentication ---
[DEBUG] Configuring mojo net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:test-run from plugin
realm ClassRealm[plugin>net.flexmojos.oss:flexmojos-maven-plugin:6.0.1, parent: sun.misc.Launcher$AppClassLoader@5c4aca27]
[DEBUG] Configuring mojo 'net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:test-run' with basic
configurator -->
[DEBUG]   (f) adlCommand = adl
[DEBUG]   (f) allowHeadlessMode = true
[DEBUG]   (f) basedir = [source]\Authentication
[DEBUG]   (f) configDirectory = [source]\Authentication\src\main\config
[DEBUG]   (f) coverage = false
[DEBUG]   (f) coverageDataDirectory = [target]\Authentication\flexmojos
[DEBUG]   (f) coverageOutputDirectory = [target]\Authentication\coverage
[DEBUG]   (f) coverageProvider = cobertura
[DEBUG]   (f) coverageReportFormat = [html]
[DEBUG]   (f) coverageSourceRoots = [[source]\Authentication\src\main\flex]
[DEBUG]   (f) firstConnectionTimeout = 20000
[DEBUG]   (f) flashPlayerCommand = C:/IDE/tools/flashplayer/flashplayer_11_sa_debug.exe
[DEBUG]   (f) fullSynchronization = false
[DEBUG]   (f) localRepository =        id: local
      url: file:///C:/Users/FThomas/.m2/repository/
   layout: none

[DEBUG]   (f) outputDirectory = [source]\Authentication\target\classes
[DEBUG]   (f) packaging = swf
[DEBUG]   (f) pluginArtifacts = [net.flexmojos.oss:flexmojos-maven-plugin:maven-plugin:6.0.1:,
...]
[DEBUG]   (f) project = MavenProject: com.cpaglobal.memotech.webclient.application.modules:Authentication:6.2-SNAPSHOT
@ [source]\Authentication\pom.xml
[DEBUG]   (f) quick = false
[DEBUG]   (f) remoteRepositories = [       id: artifactory
      url: http://ing-membulvd002.int.cpaglobal.net:8085/artifactory/repo
   layout: default
snapshots: [enabled => true, update => daily]
 releases: [enabled => true, update => daily]
]
[DEBUG]   (f) resources = [Resource {targetPath: null, filtering: true, FileSet {directory:
[source]\Authentication\src\main\resources, PatternSet [includes: {**/*}, excludes: {}]}}]
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession@6a153a08
[DEBUG]   (f) skip = false
[DEBUG]   (f) skipTest = false
[DEBUG]   (f) targetDirectory = [target]\Authentication
[DEBUG]   (f) testFailureIgnore = false
[DEBUG]   (f) testOutputDirectory = [source]\Authentication\target\test-classes
[DEBUG]   (f) testTimeout = 2000
[DEBUG] -- end configuration --
[INFO] Flexmojos 6.0.1
[INFO]      GPL License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file
[DEBUG] Found 3 test runners:
[AuthenticationModule.swf, TestRunner.swf, _flexunit.swf]
[DEBUG] Using test port '53188' and test control port '53187'
[DEBUG] Flexmojos test port: 53188 - control: 53187
[INFO] Running tests [source]\Authentication\target\test-classes\AuthenticationModule.swf
[DEBUG] [LAUNCHER] ASVmLauncher starting
[DEBUG] [net.flexmojos.oss.test.monitor.AsVmPing] opened server socket on port 53187
[DEBUG] [LAUNCHER] exec: [C:/IDE/tools/flashplayer/flashplayer_11_sa_debug.exe] - [source]\Authentication\target\test-classes\AuthenticationModule.swf
[DEBUG] [LAUNCHER] Creating process
[DEBUG] [net.flexmojos.oss.test.monitor.ResultHandler] opened server socket on port 53188
[WARNING] [LAUNCHER] Using regular flashplayer tests
[DEBUG] [LAUNCHER] Executing command: [C:/IDE/tools/flashplayer/flashplayer_11_sa_debug.exe,
[source]\Authentication\target\test-classes\AuthenticationModule.swf]
[DEBUG] [LAUNCHER] Process created java.lang.ProcessImpl@7e83b2c3
[DEBUG] [MOJO] launcher STARTED
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [LAUNCHER] Output pumpers ON
[DEBUG] [LAUNCHER] Waiting for flashplayer termination
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [MOJO] launcher RUNNING
[DEBUG] [MOJO] pinger ERROR
[DEBUG] [MOJO] resultHandler STARTED
[DEBUG] [LAUNCHER] process has not been finished, destroying
[DEBUG] Flexmojos test port: 53188 - control: 53187
[INFO] Running tests [source]\Authentication\target\test-classes\TestRunner.swf
[DEBUG] [net.flexmojos.oss.test.monitor.AsVmPing] opened server socket on port 53187
[DEBUG] [LAUNCHER] ASVmLauncher starting
[DEBUG] [LAUNCHER] exec: [C:/IDE/tools/flashplayer/flashplayer_11_sa_debug.exe] - [source]\Authentication\target\test-classes\TestRunner.swf
[DEBUG] [LAUNCHER] Creating process
[WARNING] [LAUNCHER] Using regular flashplayer tests
[DEBUG] [LAUNCHER] Executing command: [C:/IDE/tools/flashplayer/flashplayer_11_sa_debug.exe,
[source]\Authentication\target\test-classes\TestRunner.swf]
[DEBUG] [LAUNCHER] Flashplayer closed
[DEBUG] [LAUNCHER] Unexpected return code 1
[DEBUG] [LAUNCHER] Process created java.lang.ProcessImpl@54193e36
[DEBUG] [MOJO] launcher STARTED
[DEBUG] [MOJO] pinger STARTED
[DEBUG] [MOJO] resultHandler ERROR
[DEBUG] Flexmojos test port: 53188 - control: 53187
[INFO] Running tests [source]\Authentication\target\test-classes\_flexunit.swf
[DEBUG] [LAUNCHER] ASVmLauncher starting
[DEBUG] [LAUNCHER] exec: [C:/IDE/tools/flashplayer/flashplayer_11_sa_debug.exe] - [source]\Authentication\target\test-classes\_flexunit.swf
[DEBUG] [LAUNCHER] Creating process
[WARNING] [LAUNCHER] Using regular flashplayer tests
[DEBUG] [LAUNCHER] Executing command: [C:/IDE/tools/flashplayer/flashplayer_11_sa_debug.exe,
[source]\Authentication\target\test-classes\_flexunit.swf]
[DEBUG] [LAUNCHER] Output pumpers ON
[DEBUG] [LAUNCHER] Waiting for flashplayer termination
[DEBUG] [MOJO] Error running: class net.flexmojos.oss.test.AbstractControlledThread$1
java.lang.NullPointerException
    at net.flexmojos.oss.test.launcher.AsVmLauncher.run(AsVmLauncher.java:171)
    at java.lang.Thread.run(Thread.java:724)
[DEBUG] [LAUNCHER] Process created java.lang.ProcessImpl@3d0434d2
[DEBUG] [MOJO] launcher STARTED
[DEBUG] [MOJO] pinger ERROR
[DEBUG] [MOJO] resultHandler ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Tests run: 0, Failures: 0, Errors: 0, Time Elapsed: 0 sec
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.054s
[DEBUG] [LAUNCHER] Output pumpers ON
[DEBUG] [LAUNCHER] Waiting for flashplayer termination
[INFO] Finished at: Wed Jan 29 20:36:06 GMT 2014
[INFO] Final Memory: 16M/633M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:test-run (default-test-run)
on project Authentication: null - [source]\Authentication\target\test-classes\_flexunit.swf:
NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.flexmojos.oss:flexmojos-maven-plugin:6.0.1:test-run
(default-test-run) on project Authentication: null - [source]\Authentication\target\test-classes\_flexunit.swf
    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:320)
    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:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    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)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Caused by: org.apache.maven.plugin.MojoExecutionException: null - [source]\Authentication\target\test-classes\_flexunit.swf
    at net.flexmojos.oss.plugin.test.TestRunMojo.tearDown(TestRunMojo.java:448)
    at net.flexmojos.oss.plugin.test.TestRunMojo.execute_aroundBody0(TestRunMojo.java:263)
    at net.flexmojos.oss.plugin.test.TestRunMojo.execute_aroundBody1$advice(TestRunMojo.java:41)
    at net.flexmojos.oss.plugin.test.TestRunMojo.execute_aroundBody2(TestRunMojo.java:249)
    at net.flexmojos.oss.plugin.test.TestRunMojo.execute_aroundBody3$advice(TestRunMojo.java:34)
    at net.flexmojos.oss.plugin.test.TestRunMojo.execute(TestRunMojo.java:1)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    ... 25 more
Caused by: net.flexmojos.oss.test.TestRunnerException: null - [source]\Authentication\target\test-classes\_flexunit.swf
    at net.flexmojos.oss.test.DefaultTestRunner.run(DefaultTestRunner.java:84)
    at net.flexmojos.oss.plugin.test.TestRunMojo.runTest(TestRunMojo.java:407)
    at net.flexmojos.oss.plugin.test.TestRunMojo.runTest(TestRunMojo.java:374)
    at net.flexmojos.oss.plugin.test.TestRunMojo.runTests(TestRunMojo.java:432)
    at net.flexmojos.oss.plugin.test.TestRunMojo.run(TestRunMojo.java:310)
    at net.flexmojos.oss.plugin.test.TestRunMojo.execute_aroundBody0(TestRunMojo.java:262)
    ... 31 more
Caused by: java.lang.NullPointerException
    at net.flexmojos.oss.test.launcher.AsVmLauncher.run(AsVmLauncher.java:171)
    at java.lang.Thread.run(Thread.java:724)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Process finished with exit code 1
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message