[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| 
Re: [tycho-user] NPE with tycho-buildtimestamp-jgit
 | 
I'd say a bug in JGitBuildTimestampProvider#getRelPath is more likely,
but I would not exclude a bug in jgit either.
--
Regards,
Igor
On 12-07-26 9:01 AM, Marco Lehmann-Mörz wrote:
Hello Igor,
thank you for investigating. I'll try to debug it on windows. The
problem seems to be in jgit, what do you think?
TIA,
Marco
2012/7/25 Igor Fedorenko <igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>
    The problem is windows-specific, everything works under osx and linux.
    tycho-buildtimestamp-jgit sources are in [1]
    Tycho development environment setup is documented in [2]. I did not
    review/try instructions on that page recently, however.
    [1]
    http://git.eclipse.org/c/__tycho/org.eclipse.tycho.__extras.git/tree/tycho-__buildtimestamp-jgit
    <http://git.eclipse.org/c/tycho/org.eclipse.tycho.extras.git/tree/tycho-buildtimestamp-jgit>
    [2] http://wiki.eclipse.org/__Developing_Tycho
    <http://wiki.eclipse.org/Developing_Tycho>
    --
    Regards,
    Igor
    On 12-07-25 7:54 AM, Marco Lehmann-Mörz wrote:
        Sorry, no luck.
        I did a clean git clone
        https://github.com/mlehmannm/__mlm-eclipse-ide-jsbuilder.git
        <https://github.com/mlehmannm/mlm-eclipse-ide-jsbuilder.git> and
        then
        cls && mvn -X clean package -Dmaven.repo.local=.maven > mvn.log
        The result is in the appended log file.
        Maybe I can debug it? Any hints how to do that? What sources (from
        where) do I need?
        TIA,
        Marco
        2012/7/25 Igor Fedorenko <igor@xxxxxxxxxxxxxx
        <mailto:igor@xxxxxxxxxxxxxx> <mailto:igor@xxxxxxxxxxxxxx
        <mailto:igor@xxxxxxxxxxxxxx>>>
             I can't reproduce the problem. The project builds for me
        locally and
             generated version qualifiers match git timestamp as far as
        I can tell.
             Can you try with clean local repository?
             --
             Regards,
             Igor
             On 12-07-23 1:51 PM, Marco Lehmann-Mörz wrote:
                 Hello Igor,
                 I just cloned the repository in question and the stacktrace
                 appeared.
                 Maybe there is a mistake in my parent pom (at the root).
        https://github.com/mlehmannm/____mlm-eclipse-ide-jsbuilder.git
        <https://github.com/mlehmannm/__mlm-eclipse-ide-jsbuilder.git>
        <https://github.com/mlehmannm/__mlm-eclipse-ide-jsbuilder.git
        <https://github.com/mlehmannm/mlm-eclipse-ide-jsbuilder.git>>
                 HTH,
                 Marco
                 2012/7/23 Igor Fedorenko <igor@xxxxxxxxxxxxxx
        <mailto:igor@xxxxxxxxxxxxxx>
                 <mailto:igor@xxxxxxxxxxxxxx
        <mailto:igor@xxxxxxxxxxxxxx>> <mailto:igor@xxxxxxxxxxxxxx
        <mailto:igor@xxxxxxxxxxxxxx>
                 <mailto:igor@xxxxxxxxxxxxxx <mailto:igor@xxxxxxxxxxxxxx>>>>
                      Have you committed the project in question to git
                 repository? Are you
                      able to provide small standalone example we can use to
                 reproduce the
                      problem?
                      --
                      Regards,
                      Igor
                      On 12-07-23 5:20 AM, Marco Lehmann-Mörz wrote:
                          Hi there!
                          I'm trying the tycho-buildtimestamp-jgit
        plugin without
                 luck.
                          Everytime I get the following stack trace:
                          [DEBUG] -- end configuration --
                          [INFO]
        ------------------------------______--------------------------__--__--__------------
                          [INFO] Reactor Summary:
                          [INFO]
                          [INFO] mlm.eclipse.ide.jsbuilder-______parent
                 ..................
                          SUCCESS [0.281s]
                          [INFO] mlm.eclipse.ide.jsbuilder
        .........................
                          FAILURE [0.718s]
                          [INFO] mlm.eclipse.ide.jsbuilder.______feature
                 ................. SKIPPED
                          [INFO] mlm.eclipse.ide.jsbuilder-______repository
                 .............. SKIPPED
                          [INFO]
        ------------------------------______--------------------------__--__--__------------
                          [INFO] BUILD FAILURE
                          [INFO]
        ------------------------------______--------------------------__--__--__------------
                          [INFO] Total time: 34.063s
                          [INFO] Finished at: Mon Jul 23 10:56:37 CEST 2012
                          [INFO] Final Memory: 74M/178M
                          [INFO]
        ------------------------------______--------------------------__--__--__------------
                          [ERROR] Failed to execute goal
        org.eclipse.tycho:tycho-______packaging-plugin:0.16.0-______SNAPSHOT:build-qualifier
                          (default-build-qualifier) on project
                 mlm.eclipse.ide.jsbuilder:
                          Execution default-build-quali
                          fier of goal
        org.eclipse.tycho:tycho-______packaging-plugin:0.16.0-______SNAPSHOT:build-qualifier
                          failed. NullPointerException -> [Help 1]
        org.apache.maven.lifecycle.______LifecycleExecutionException:
                 Failed to
                          execute goal
        org.eclipse.tycho:tycho-______packaging-plugin:0.16.0-______SNAPSHOT:build-qualifier
                          (default-build-qualifier) on project mlm.ecli
                          pse.ide.jsbuilder: Execution
        default-build-qualifier of
                 goal
        org.eclipse.tycho:tycho-______packaging-plugin:0.16.0-______SNAPSHOT:build-qualifier
                          failed.
                                    at
        org.apache.maven.lifecycle.______internal.MojoExecutor.__execute(____MojoExecutor.java:__225)
                                    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:______57)
                                    at
        sun.reflect.______DelegatingMethodAccessorImpl.______invoke(______DelegatingMethodAccessorImpl.______java:43)
                                    at
                 java.lang.reflect.Method.______invoke(Method.java:601)
                                    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.______PluginExecutionException:
                          Execution
                          default-build-qualifier of goal
        org.eclipse.tycho:tycho-______packaging-plugin:0.16.0-______SNAPSHOT:build-qualifier
                          failed.
                                    at
        org.apache.maven.plugin.______DefaultBuildPluginManager.______executeMojo(______DefaultBuildPluginManager.______java:110)
                                    at
        org.apache.maven.lifecycle.______internal.MojoExecutor.__execute(____MojoExecutor.java:__209)
                                    ... 19 more
                          Caused by: java.lang.NullPointerException
                                    at
        org.eclipse.tycho.extras.______buildtimestamp.jgit.______JGitBuildTimestampProvider.______getTimestamp(______JGitBuildTimestampProvider.______java:86)
                                    at
        org.eclipse.tycho.______buildversion.______BuildQualifierMojo.______getBuildTimestamp(______BuildQualifierMojo.java:182)
                                    at
        org.eclipse.tycho.______buildversion.______BuildQualifierMojo.execute(______BuildQualifierMojo.java:156)
                                    at
        org.apache.maven.plugin.______DefaultBuildPluginManager.______executeMojo(______DefaultBuildPluginManager.______java:101)
                                    ... 20 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/______PluginExecutionException
        <http://cwiki.apache.org/____confluence/display/MAVEN/____PluginExecutionException>
        <http://cwiki.apache.org/____confluence/display/MAVEN/____PluginExecutionException
        <http://cwiki.apache.org/__confluence/display/MAVEN/__PluginExecutionException>>
        <http://cwiki.apache.org/____confluence/display/MAVEN/____PluginExecutionException
        <http://cwiki.apache.org/__confluence/display/MAVEN/__PluginExecutionException>
        <http://cwiki.apache.org/__confluence/display/MAVEN/__PluginExecutionException
        <http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException>>>
                          [ERROR]
                          [ERROR] After correcting the problems, you can
        resume
                 the build
                          with the
                          command
                          [ERROR]   mvn <goals> -rf
        :mlm.eclipse.ide.jsbuilder
                          Please have a look at
        https://github.com/mlehmannm/______mlm-eclipse-ide-jsbuilder
        <https://github.com/mlehmannm/____mlm-eclipse-ide-jsbuilder>
        <https://github.com/mlehmannm/____mlm-eclipse-ide-jsbuilder
        <https://github.com/mlehmannm/__mlm-eclipse-ide-jsbuilder>>
        <https://github.com/mlehmannm/____mlm-eclipse-ide-jsbuilder
        <https://github.com/mlehmannm/__mlm-eclipse-ide-jsbuilder>
        <https://github.com/mlehmannm/__mlm-eclipse-ide-jsbuilder
        <https://github.com/mlehmannm/mlm-eclipse-ide-jsbuilder>>>
                          TIA,
                          Marco
          _____________________________________________________
                          tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
        <mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
                 <mailto:tycho-user@xxxxxxxxxxx
        <mailto:tycho-user@xxxxxxxxxxx> <mailto:tycho-user@xxxxxxxxxxx
        <mailto:tycho-user@xxxxxxxxxxx>__>__>
        https://dev.eclipse.org/______mailman/listinfo/tycho-user
        <https://dev.eclipse.org/____mailman/listinfo/tycho-user>
        <https://dev.eclipse.org/____mailman/listinfo/tycho-user
        <https://dev.eclipse.org/__mailman/listinfo/tycho-user>>
          <https://dev.eclipse.org/____mailman/listinfo/tycho-user
        <https://dev.eclipse.org/__mailman/listinfo/tycho-user>
                 <https://dev.eclipse.org/__mailman/listinfo/tycho-user
        <https://dev.eclipse.org/mailman/listinfo/tycho-user>>>
                      _____________________________________________________
                      tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
        <mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
                 <mailto:tycho-user@xxxxxxxxxxx
        <mailto:tycho-user@xxxxxxxxxxx> <mailto:tycho-user@xxxxxxxxxxx
        <mailto:tycho-user@xxxxxxxxxxx>__>__>
        https://dev.eclipse.org/______mailman/listinfo/tycho-user
        <https://dev.eclipse.org/____mailman/listinfo/tycho-user>
        <https://dev.eclipse.org/____mailman/listinfo/tycho-user
        <https://dev.eclipse.org/__mailman/listinfo/tycho-user>>
          <https://dev.eclipse.org/____mailman/listinfo/tycho-user
        <https://dev.eclipse.org/__mailman/listinfo/tycho-user>
                 <https://dev.eclipse.org/__mailman/listinfo/tycho-user
        <https://dev.eclipse.org/mailman/listinfo/tycho-user>>>
                 --
                 Tschö Marco
                 ___________________________________________________
                 tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
        <mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
        https://dev.eclipse.org/____mailman/listinfo/tycho-user
        <https://dev.eclipse.org/__mailman/listinfo/tycho-user>
                 <https://dev.eclipse.org/__mailman/listinfo/tycho-user
        <https://dev.eclipse.org/mailman/listinfo/tycho-user>>
             ___________________________________________________
             tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
        <mailto:tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>__>
        https://dev.eclipse.org/____mailman/listinfo/tycho-user
        <https://dev.eclipse.org/__mailman/listinfo/tycho-user>
             <https://dev.eclipse.org/__mailman/listinfo/tycho-user
        <https://dev.eclipse.org/mailman/listinfo/tycho-user>>
        --
        Tschö Marco
        _________________________________________________
        tycho-user mailing list
        tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
        https://dev.eclipse.org/__mailman/listinfo/tycho-user
        <https://dev.eclipse.org/mailman/listinfo/tycho-user>
    _________________________________________________
    tycho-user mailing list
    tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
    https://dev.eclipse.org/__mailman/listinfo/tycho-user
    <https://dev.eclipse.org/mailman/listinfo/tycho-user>
--
Tschö Marco
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user