You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Clebert Suconic <cl...@gmail.com> on 2012/09/13 22:56:35 UTC

NullPointerException on Maven Compile

We have recently upgraded mvn compile on HornetQ, a
Message-oriented-middleware from RedHat,


and we are now facing a NullPointerException on mac computers, when we
upgrade mvn-compiler to 2.5. It all works fine with 2.3.1, and it's funny
that only fails on my mac.

* https://gist.github.com/3717257


If there's anyone available to take a look, you can download my repo at:

git://github.com/clebertsuconic/hornetq.git
cd hornetq
git checkout mvn-upgrade-fails

or you can view it here:
https://github.com/clebertsuconic/hornetq/tree/mvn-upgrade-fails



*
Here is the NPE I"m getting (with mvn -X)

[INFO] Compiling 50 source files to
/work/hornetq/hornetq/hornetq-commons/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error: java.lang.NullPointerException
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.935s
[INFO] Finished at: Thu Sep 13 15:13:53 CDT 2012
[INFO] Final Memory: 9M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
(default-compile) on project hornetq-commons: Compilation failure
[ERROR] error: java.lang.NullPointerException
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
(default-compile) on project hornetq-commons: Compilation failure
error: java.lang.NullPointerException

	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	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)
Caused by: org.apache.maven.plugin.CompilationFailureException:
Compilation failure
error: java.lang.NullPointerException

	at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729)
	at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
[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/MojoFailureException

Re: NullPointerException on Maven Compile

Posted by Mark Struberg <st...@yahoo.de>.
Hi Clebert. 

I'm currently working on m-compiler-p 2.6 and will give it a look.

LieGrue,
strub




----- Original Message -----
> From: Clebert Suconic <cl...@gmail.com>
> To: users@maven.apache.org
> Cc: 
> Sent: Thursday, September 13, 2012 10:56 PM
> Subject: NullPointerException on Maven Compile
> 
> We have recently upgraded mvn compile on HornetQ, a
> Message-oriented-middleware from RedHat,
> 
> 
> and we are now facing a NullPointerException on mac computers, when we
> upgrade mvn-compiler to 2.5. It all works fine with 2.3.1, and it's funny
> that only fails on my mac.
> 
> * https://gist.github.com/3717257
> 
> 
> If there's anyone available to take a look, you can download my repo at:
> 
> git://github.com/clebertsuconic/hornetq.git
> cd hornetq
> git checkout mvn-upgrade-fails
> 
> or you can view it here:
> https://github.com/clebertsuconic/hornetq/tree/mvn-upgrade-fails
> 
> 
> 
> *
> Here is the NPE I"m getting (with mvn -X)
> 
> [INFO] Compiling 50 source files to
> /work/hornetq/hornetq/hornetq-commons/target/classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] error: java.lang.NullPointerException
> [INFO] 1 error
> [INFO] -------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.935s
> [INFO] Finished at: Thu Sep 13 15:13:53 CDT 2012
> [INFO] Final Memory: 9M/81M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
> (default-compile) on project hornetq-commons: Compilation failure
> [ERROR] error: java.lang.NullPointerException
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
> (default-compile) on project hornetq-commons: Compilation failure
> error: java.lang.NullPointerException
> 
>     at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>     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:39)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     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)
> Caused by: org.apache.maven.plugin.CompilationFailureException:
> Compilation failure
> error: java.lang.NullPointerException
> 
>     at 
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729)
>     at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
>     at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>     at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>     ... 19 more
> [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/MojoFailureException
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: NullPointerException on Maven Compile

Posted by Clebert Suconic <cl...@gmail.com>.
Thanks,

http://jira.codehaus.org/browse/MCOMPILER-181


I haven't filled a JIRA before because I wasn't sure it was a bug or a
configuration. (although even if it's a configuration causing this, it
should throw a valid error message).

On Fri, Sep 14, 2012 at 6:05 AM, Benson Margulies <bi...@gmail.com>wrote:

> Please file a JIRA.
>
> On Thu, Sep 13, 2012 at 4:56 PM, Clebert Suconic
> <cl...@gmail.com> wrote:
> > We have recently upgraded mvn compile on HornetQ, a
> > Message-oriented-middleware from RedHat,
> >
> >
> > and we are now facing a NullPointerException on mac computers, when we
> > upgrade mvn-compiler to 2.5. It all works fine with 2.3.1, and it's funny
> > that only fails on my mac.
> >
> > * https://gist.github.com/3717257
> >
> >
> > If there's anyone available to take a look, you can download my repo at:
> >
> > git://github.com/clebertsuconic/hornetq.git
> > cd hornetq
> > git checkout mvn-upgrade-fails
> >
> > or you can view it here:
> > https://github.com/clebertsuconic/hornetq/tree/mvn-upgrade-fails
> >
> >
> >
> > *
> > Here is the NPE I"m getting (with mvn -X)
> >
> > [INFO] Compiling 50 source files to
> > /work/hornetq/hornetq/hornetq-commons/target/classes
> > [INFO] -------------------------------------------------------------
> > [ERROR] COMPILATION ERROR :
> > [INFO] -------------------------------------------------------------
> > [ERROR] error: java.lang.NullPointerException
> > [INFO] 1 error
> > [INFO] -------------------------------------------------------------
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Total time: 2.935s
> > [INFO] Finished at: Thu Sep 13 15:13:53 CDT 2012
> > [INFO] Final Memory: 9M/81M
> > [INFO]
> ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
> > (default-compile) on project hornetq-commons: Compilation failure
> > [ERROR] error: java.lang.NullPointerException
> > [ERROR] -> [Help 1]
> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
> > (default-compile) on project hornetq-commons: Compilation failure
> > error: java.lang.NullPointerException
> >
> >         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
> >         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:39)
> >         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:597)
> >         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)
> > Caused by: org.apache.maven.plugin.CompilationFailureException:
> > Compilation failure
> > error: java.lang.NullPointerException
> >
> >         at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729)
> >         at
> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
> >         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> >         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> >         ... 19 more
> > [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/MojoFailureException
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Clebert Suconic
http://community.jboss.org/people/clebert.suconic@jboss.com
http://clebertsuconic.blogspot.com

Re: NullPointerException on Maven Compile

Posted by Benson Margulies <bi...@gmail.com>.
Please file a JIRA.

On Thu, Sep 13, 2012 at 4:56 PM, Clebert Suconic
<cl...@gmail.com> wrote:
> We have recently upgraded mvn compile on HornetQ, a
> Message-oriented-middleware from RedHat,
>
>
> and we are now facing a NullPointerException on mac computers, when we
> upgrade mvn-compiler to 2.5. It all works fine with 2.3.1, and it's funny
> that only fails on my mac.
>
> * https://gist.github.com/3717257
>
>
> If there's anyone available to take a look, you can download my repo at:
>
> git://github.com/clebertsuconic/hornetq.git
> cd hornetq
> git checkout mvn-upgrade-fails
>
> or you can view it here:
> https://github.com/clebertsuconic/hornetq/tree/mvn-upgrade-fails
>
>
>
> *
> Here is the NPE I"m getting (with mvn -X)
>
> [INFO] Compiling 50 source files to
> /work/hornetq/hornetq/hornetq-commons/target/classes
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] error: java.lang.NullPointerException
> [INFO] 1 error
> [INFO] -------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2.935s
> [INFO] Finished at: Thu Sep 13 15:13:53 CDT 2012
> [INFO] Final Memory: 9M/81M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
> (default-compile) on project hornetq-commons: Compilation failure
> [ERROR] error: java.lang.NullPointerException
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
> (default-compile) on project hornetq-commons: Compilation failure
> error: java.lang.NullPointerException
>
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>         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:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         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)
> Caused by: org.apache.maven.plugin.CompilationFailureException:
> Compilation failure
> error: java.lang.NullPointerException
>
>         at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:729)
>         at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
>         at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         ... 19 more
> [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/MojoFailureException

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org