NullPointerException on gae:run with Version 0.9.4 #41

Open
pyctam opened this Issue Aug 5, 2012 · 11 comments

7 participants

@pyctam

I created an artifact with archetypeArtifactId=gae-archetype-jsp, and not unable to run gae:run (and almost all other gae:xxxx goals) with latest plugin:

[INFO] Webapp assembled in [61 msecs]
[INFO] Building war: /home/dev/projects/personal/com.xxxx/web-portal/target/web-portal-1.0-SNAPSHOT.war
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at org.apache.maven.artifact.versioning.DefaultArtifactVersion.parseVersion(DefaultArtifactVersion.java:136)
at org.apache.maven.artifact.versioning.DefaultArtifactVersion.(DefaultArtifactVersion.java:47)
at org.apache.maven.plugin.DefaultPluginManager.checkPlexusUtils(DefaultPluginManager.java:928)
at org.apache.maven.plugin.DefaultPluginManager.ensurePluginContainerIsComplete(DefaultPluginManager.java:757)
at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:647)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Sun Aug 05 13:56:50 EDT 2012
[INFO] Final Memory: 19M/207M
[INFO] ------------------------------------------------------------------------

@pbackx

Same problem for me, albeit I didn't use the archetype.

I was using 0.9.1 of the plugin and tried to upgrade to 0.9.4
After some experimentation, I found that it works with 0.9.2, but not with anything higher.

This is for the following project if you want to see the pom files:
https://github.com/pbackx/PayPalIPNServlet

Please let me know if you want more information to debug this issue.

@kryptt
Maven GAE Plugin member

Cool, that should be enough.. let me check...

@harshan007

@kryptt Any kind updates we have. Am getting same error.
(also same as #45)

@harshan007

@pbackx , @pyctam Any workaround you guys have?

@cilogi

This is hurting...

@pbackx

@harshan007 sorry for the late reply, but no, I don't have any workarounds except not upgrading beyond 0.9.2 for now

@kryptt
Maven GAE Plugin member

Can you try out 0.9.5 ?

I believe I fixed it in that version.

@pbackx

Thanks, 0.9.5 fixed it!

Small note: I had to upgrade my Appengine SDK to the latest version (1.7.3)
I was running SDK 1.7.1 and this gave me command line errors. As if the plugin was sending incorrect arguments.

@ndywicki

I've the same error with version 0.9.5, SDK 1.7.3 and Maven 2.2.x
With Maven 3.0.x it's OK

@pbackx

After some more research, I can confirm that the problem still exists for Maven 2.2.1
Maven 3.0.3 is fine.

@b2bear

We are seeing the same issue here with the following setting in pom.xml:
< target.jdk >1.7< /target.jdk >
< gae.version >1.7.6< /gae.version > or 1.7.5
< maven-gae-plugin.version >0.9.5< /maven-gae-plugin.version >

OS: Linux ubuntu 3.2.0-39-generic-pae #62-Ubuntu SMP Wed Feb 27 22:25:11 UTC 2013 i686 i686 i386 GNU/Linux
Java: java version "1.7.0_17", Java(TM) SE Runtime Environment (build 1.7.0_17-b02), Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)

The same pom works in Windows8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment