maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Ashitkin (JIRA)" <j...@codehaus.org>
Subject [jira] (MJAR-192) Sporadic NPE in maven-jar-plugin:2.5:jar
Date Mon, 05 Jan 2015 09:55:10 GMT

    [ https://jira.codehaus.org/browse/MJAR-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=360661#comment-360661
] 

Alexander Ashitkin edited comment on MJAR-192 at 1/5/15 3:53 AM:
-----------------------------------------------------------------

I again got NPE in MavenProject. It looks like this is an issue with maven core:
{code}
09:22:46 [ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.2:compile
(default) on project my-tests: Execution default of goal org.codehaus.gmavenplus:gmavenplus-plugin:1.2:compile
failed. NullPointerException -> [Help 1]
09:22:52 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.2:compile
(default) on project my-tests: Execution default of goal org.codehaus.gmavenplus:gmavenplus-plugin:1.2:compile
failed.
09:22:52 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
09:22:52 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
09:22:52 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
09:22:52 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
09:22:52 	at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:188)
09:22:52 	at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:184)
09:22:52 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
09:22:52 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
09:22:52 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
09:22:52 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
09:22:52 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
09:22:52 	at java.lang.Thread.run(Thread.java:745)
09:22:52 Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of
goal org.codehaus.gmavenplus:gmavenplus-plugin:1.2:compile failed.
09:22:52 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)
09:22:52 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
09:22:52 	... 11 more
09:22:52 Caused by: java.lang.NullPointerException
09:22:52 	at org.apache.maven.project.MavenProject.getArtifacts(MavenProject.java:717)
09:22:52 	at org.apache.maven.project.MavenProject.getCompileClasspathElements(MavenProject.java:343)
09:22:52 	at org.codehaus.gmavenplus.mojo.CompileMojo.execute(CompileMojo.java:50)
09:22:52 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
09:22:52 	... 12 more
{code}

Looks like org.apache.maven.project.MavenProject#setArtifactFilter / getArtifacts are called
by several threads concurrently on the same MavenProject instance.

would really appreciate if you move this issue to maven core project

thank you


was (Author: alex_ashitkin):
I again got NPE in MavenProject. It looks like this is an issue with maven core:
{code}
09:22:52 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:1.2:compile
(default) on project my-tests: Execution default of goal org.codehaus.gmavenplus:gmavenplus-plugin:1.2:compile
failed.09:22:52
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)09:22:52
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)09:22:52
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)09:22:52
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)09:22:52
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:188)09:22:52
at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:184)09:22:52
at java.util.concurrent.FutureTask.run(FutureTask.java:266)09:22:52
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)09:22:52
at java.util.concurrent.FutureTask.run(FutureTask.java:266)09:22:52
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)09:22:52
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)09:22:52
at java.lang.Thread.run(Thread.java:745)09:22:52 Caused by: org.apache.maven.plugin.PluginExecutionException:
Execution default of goal org.codehaus.gmavenplus:gmavenplus-plugin:1.2:compile failed.09:22:52
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:143)09:22:52
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)09:22:52
	... 11 more09:22:52 Caused by: java.lang.NullPointerException09:22:52
at org.apache.maven.project.MavenProject.getArtifacts(MavenProject.java:717)09:22:52
at org.apache.maven.project.MavenProject.getCompileClasspathElements(MavenProject.java:343)09:22:52
at org.codehaus.gmavenplus.mojo.CompileMojo.execute(CompileMojo.java:50)09:22:52
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)09:22:52
	... 12 more
{code}

Looks like org.apache.maven.project.MavenProject#setArtifactFilter / getArtifacts are called
by several threads concurrently on the same MavenProject instance.

would really appreciate if you move this issue to maven core project

thank you

> Sporadic NPE in maven-jar-plugin:2.5:jar
> ----------------------------------------
>
>                 Key: MJAR-192
>                 URL: https://jira.codehaus.org/browse/MJAR-192
>             Project: Maven JAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>         Environment: win 2008 server x64 java 8u25 maven 3.2.5
>            Reporter: Alexander Ashitkin
>
> Strange npe at jar goal:
> {code}
> 16:41:50 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.5:jar
(default-jar) on project my-model: Error assembling JAR: NullPointerException -> [Help
1]
> 16:41:50 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.maven.plugins:maven-jar-plugin:2.5:jar (default-jar) on project my-model: Error
assembling JAR
> 16:41:50 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
> 16:41:50 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 16:41:50 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 16:41:50 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> 16:41:50 	at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:188)
> 16:41:50 	at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:184)
> 16:41:50 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 16:41:50 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 16:41:50 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 16:41:50 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 16:41:50 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 16:41:50 	at java.lang.Thread.run(Thread.java:745)
> 16:41:50 Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling
JAR
> 16:41:50 	at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:233)
> 16:41:50 	at org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:251)
> 16:41:50 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> 16:41:50 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> 16:41:50 	... 11 more
> 16:41:50 Caused by: java.lang.NullPointerException
> 16:41:50 	at org.apache.maven.project.MavenProject.getArtifacts(MavenProject.java:715)
> 16:41:50 	at org.apache.maven.project.MavenProject.deepCopy(MavenProject.java:1218)
> 16:41:50 	at org.apache.maven.project.MavenProject.<init>(MavenProject.java:197)
> 16:41:50 	at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:501)
> 16:41:50 	at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:226)
> 16:41:50 	... 14 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message