But the version upgrade itself didn't fix the issue? On Wed, Jun 3, 2015 at 5:12 PM, F. Beligianni <faybeligia...@gmail.com> wrote:
> Thank you Robert, > > I set useNativeGit to true just in flink-runtime package and the build was > successful :) > > Just a comment I had to change also the version of the git-commit-id-plugin > to 2.1.10 which is the first version that has this configuration flag. The > version in the flink-runtime pom file was 2.1.5 > > > > 2015-06-03 16:50 GMT+02:00 Robert Metzger <rmetz...@apache.org>: > > > It seems to be an issue of the eclipse egit module: > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=351855, > > https://www.eclipse.org/forums/index.php/t/361344/, > > https://netbeans.org/bugzilla/show_bug.cgi?id=243088 > > > > > > From reading the source code [1] it seems that the jgit tool is trying to > > resolve a commit by its ID, which is null? > > > > Can you try setting useNativeGit to true for both instances of the > > git-commit-id-plugin (in flink-runtime and flink-dist). Maybe that > resolves > > the issue. > > Also, can you do a "git log" and check if everything with your history is > > correct? > > Maybe git fsck and git repair are tools that can help as well. > > > > > > > > [1] > > > > > https://github.com/eclipse/jgit/blob/master/org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevWalk.java > > On Wed, Jun 3, 2015 at 4:22 PM, Szabó Péter <nemderogator...@gmail.com> > > wrote: > > > > > @Robert > > > No, I couldn't. > > > > > > 2015-06-03 16:21 GMT+02:00 Szabó Péter <nemderogator...@gmail.com>: > > > > > > > I have the same problem on one of my computers but not on the other > > one. > > > > I've read somewhere that it can be related to the git > > > > version/configuration. I'm not completely sure, though. > > > > > > > > Peter > > > > > > > > 2015-06-03 15:46 GMT+02:00 F. Beligianni <faybeligia...@gmail.com>: > > > > > > > >> Hello, > > > >> > > > >> I have a problem to build Flink master branch. Specifically, when I > am > > > >> running "mvn clean install" in master branch I take the following > > > >> exception: > > > >> > > > >> > > > >> [ERROR] Failed to execute goal > > > >> pl.project13.maven:git-commit-id-plugin:2.1.5:revision (default) on > > > >> project > > > >> flink-runtime: Execution default of goal > > > >> pl.project13.maven:git-commit-id-plugin:2.1.5:revision failed. > > > >> NullPointerException -> [Help 1] > > > >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to > > > execute > > > >> goal pl.project13.maven:git-commit-id-plugin:2.1.5:revision > (default) > > on > > > >> project flink-runtime: Execution default of goal > > > >> pl.project13.maven:git-commit-id-plugin:2.1.5:revision 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:497) > > > >> 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 of goal > pl.project13.maven:git-commit-id-plugin:2.1.5:revision > > > >> 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.jgit.lib.ObjectIdOwnerMap.get(ObjectIdOwnerMap.java:131) > > > >> at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:810) > > > >> at org.eclipse.jgit.revwalk.RevWalk.parseCommit(RevWalk.java:725) > > > >> at > > > >> > > > >> > > > > > > pl.project13.maven.git.GitCommitIdMojo.loadGitData(GitCommitIdMojo.java:386) > > > >> at > > > >> > > pl.project13.maven.git.GitCommitIdMojo.execute(GitCommitIdMojo.java:269) > > > >> at > > > >> > > > >> > > > > > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) > > > >> ... 21 more > > > >> [ERROR] > > > >> > > > >> > > > >> Maven and java versions that I am using are: > > > >> > > > >> Apache Maven 3.3.1 > > > >> Maven home: /usr/local/Cellar/maven/3.3.1/libexec > > > >> Java version: 1.8.0_40, vendor: Oracle Corporation > > > >> > > > >> > > > >> It seams that no one else has this problem, especially with building > > the > > > >> master branch, so any help about how to get over this problem would > be > > > >> highly appreciated! > > > >> > > > >> BR, > > > >> Faye > > > >> > > > > > > > > > > > > > >