Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 515976

Summary: NPE during execution of org.eclipse.tycho:tycho-versions-plugin:1.1.0-SNAPSHOT:update-pom
Product: z_Archived Reporter: Sravan Kumar Lakkimsetti <sravankumarl>
Component: TychoAssignee: Jan Sievers <jan.sievers>
Status: CLOSED DUPLICATE QA Contact:
Severity: blocker    
Priority: P1 CC: akurtakov, daniel_megert, jan.sievers, Martin.SCHREIBER, sravankumarl
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/96085
https://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=2694138a1611b81eaf4cc63a5f90dc3e86c091ed
https://git.eclipse.org/r/96157
https://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?id=76060dce6608934a441614590f35a7c3cb6fb20a
Whiteboard:

Description Sravan Kumar Lakkimsetti CLA 2017-04-29 12:53:00 EDT
We are encountering NPE during this execution from April 28, 2017. I noticed there is a new snapshot version released on the on that day. can you please investigate

here is the log

http://download.eclipse.org/eclipse/downloads/drops4/I20170429-1230/buildlogs/mb050_pom-version-updater_output.txt

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:1.1.0-SNAPSHOT:update-pom (default-cli) on project platform-aggregator: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:1.1.0-SNAPSHOT:update-pom failed. NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-versions-plugin:1.1.0-SNAPSHOT:update-pom (default-cli) on project platform-aggregator: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:1.1.0-SNAPSHOT:update-pom failed.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224)
	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:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.eclipse.tycho:tycho-versions-plugin:1.1.0-SNAPSHOT:update-pom failed.
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	... 20 more
Caused by: java.lang.NullPointerException
	at org.eclipse.tycho.versions.UpdatePomMojo.execute(UpdatePomMojo.java:47)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	... 21 more
Comment 1 Sravan Kumar Lakkimsetti CLA 2017-04-29 13:23:14 EDT
One more question Any plans for 1.1.0 release during Oxygen timeframe? We would like to use released version of tycho for oxygen builds
Comment 2 Eclipse Genie CLA 2017-04-29 15:14:47 EDT
New Gerrit change created: https://git.eclipse.org/r/96085
Comment 3 Sravan Kumar Lakkimsetti CLA 2017-04-29 16:59:33 EDT
In the meanwhile I downgraded the version to 0.26.0. This is the version where update-pom goal worked.
Comment 4 Dani Megert CLA 2017-04-30 11:29:37 EDT
(In reply to Sravan Kumar Lakkimsetti from comment #3)
> In the meanwhile I downgraded the version to 0.26.0. This is the version
> where update-pom goal worked.

This was done with http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?id=62a27c101a261e2df0bc8af3724bc0f4fde415a4

I don't know what messed this up, but the Gerrit change ID does not exist and neither the Gerrit nor Git change was linked to this bug report. Sravan, please comment.
Comment 5 Jan Sievers CLA 2017-05-02 03:35:55 EDT
this is a regression introduced with

http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=9e72e1394c5d80139be3378e5231668b2b429a8b

fix proposed.
Comment 7 Martin Schreiber CLA 2017-05-02 03:45:04 EDT
(In reply to Jan Sievers from comment #5)
> this is a regression introduced with
> 
> http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/
> ?id=9e72e1394c5d80139be3378e5231668b2b429a8b
> 
> fix proposed.

Sorry Jan for not assigning this issue to myself after uploading a patch!
Comment 8 Eclipse Genie CLA 2017-05-02 08:17:57 EDT
New Gerrit change created: https://git.eclipse.org/r/96157
Comment 10 Sravan Kumar Lakkimsetti CLA 2017-05-02 08:20:10 EDT
(In reply to Eclipse Genie from comment #9)
> Gerrit change https://git.eclipse.org/r/96157 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/
> commit/?id=76060dce6608934a441614590f35a7c3cb6fb20a

Reverted the workaround done in eclipse platform build. This problem will get verified in today's platform build scheduled at 8PM EDT
Comment 11 Sravan Kumar Lakkimsetti CLA 2017-05-03 02:40:31 EDT
Build is successful today. I consider this as resolved.
Comment 12 Martin Schreiber CLA 2017-05-03 02:43:22 EDT
Thanks Sravan for your feedback.
Comment 13 Sravan Kumar Lakkimsetti CLA 2017-05-03 02:48:16 EDT
(In reply to Martin Schreiber from comment #12)
> Thanks Sravan for your feedback.

One question. What is the timeline for 1.1.0 release?
Comment 14 Jan Sievers CLA 2017-05-03 04:58:04 EDT
marking as duplicate

*** This bug has been marked as a duplicate of bug 512326 ***