• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • Hudson 1.392 on Windows server 2008

      Maven job build that runs on master ends with NPE while sending mails??

      [INFO] BUILD SUCCESSFUL
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 262 minutes 52 seconds
      [INFO] Finished at: Thu Jan 06 04:47:20 IST 2011
      [INFO] Final Memory: 308M/930M
      [INFO] ------------------------------------------------------------------------
      Waiting for Hudson to finish collecting data
      Sending e-mails to: xxx@yyy.com jjj@yyy.com
      channel stopped
      FATAL: null
      java.lang.NullPointerException
      at java.lang.String.startsWith(String.java:1421)
      at java.lang.String.startsWith(String.java:1450)
      at hudson.maven.MavenModuleSetBuild$1.isDescendantOf(MavenModuleSetBuild.java:213)
      at hudson.maven.MavenModuleSetBuild$1.<init>(MavenModuleSetBuild.java:182)
      at hudson.maven.MavenModuleSetBuild.getChangeSetFor(MavenModuleSetBuild.java:176)
      at hudson.maven.FilteredChangeLogSet.<init>(FilteredChangeLogSet.java:51)
      at hudson.maven.MavenBuild.getChangeSet(MavenBuild.java:164)
      at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:316)
      at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:1274)
      at hudson.model.User.getProjects(User.java:381)
      at hudson.scm.MailAddressResolverImpl.findMailAddressFor(MailAddressResolverImpl.java:19)
      at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:97)
      at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:496)
      at hudson.tasks.MailSender.buildCulpritList(MailSender.java:383)
      at hudson.tasks.MailSender.createEmptyMail(MailSender.java:345)
      at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:169)
      at hudson.tasks.MailSender.getMail(MailSender.java:160)
      at hudson.tasks.MailSender.execute(MailSender.java:94)
      at hudson.maven.MavenModuleSetBuild$RunnerImpl.cleanUp(MavenModuleSetBuild.java:772)
      at hudson.model.Run.run(Run.java:1405)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:400)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)

          [JENKINS-8436] Successful build ends with NPE

          liyatikal created issue -
          kutzi made changes -
          Component/s New: maven2 [ 15487 ]
          Component/s Original: core [ 15593 ]

          kutzi added a comment -

          Looks like another duplicate of JENKINS-7684 to me.

          kutzi added a comment - Looks like another duplicate of JENKINS-7684 to me.
          kutzi made changes -
          Link New: This issue duplicates JENKINS-7684 [ JENKINS-7684 ]

          Olivier Lamy added a comment -

          probably dupe of JENKINS-8452.
          Can you try with 1.394 ?

          Olivier Lamy added a comment - probably dupe of JENKINS-8452 . Can you try with 1.394 ?

          liyatikal added a comment -

          Using 1.394 doesn't help.
          Now some successful build logs look like this:

          [INFO] ------------------------------------------------------------------------
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD SUCCESSFUL
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 289 minutes 50 seconds
          [INFO] Finished at: Tue Jan 18 05:09:31 IST 2011
          [INFO] Final Memory: 320M/908M
          [INFO] ------------------------------------------------------------------------
          channel stopped
          FATAL: null
          java.lang.NullPointerException

          liyatikal added a comment - Using 1.394 doesn't help. Now some successful build logs look like this: [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 289 minutes 50 seconds [INFO] Finished at: Tue Jan 18 05:09:31 IST 2011 [INFO] Final Memory: 320M/908M [INFO] ------------------------------------------------------------------------ channel stopped FATAL: null java.lang.NullPointerException

          Olivier Lamy added a comment -

          any sample project to reproduce this ?

          Olivier Lamy added a comment - any sample project to reproduce this ?

          liyatikal added a comment -

          I don't have any sample project, I only have a few complicated ones which are internal.
          But it does happen every build, so I had to downgrade again to 1.376 (patch with ant 1.80)

          liyatikal added a comment - I don't have any sample project, I only have a few complicated ones which are internal. But it does happen every build, so I had to downgrade again to 1.376 (patch with ant 1.80)

          Ulli Hafner added a comment -

          After an upgrade from Hudson 1.395 to Jenkins 1.396 I also get this error: http://www.faktorzehn.org:8081/job/Hudson%20Plug-ins%20%28POM%29/10/console

          Ulli Hafner added a comment - After an upgrade from Hudson 1.395 to Jenkins 1.396 I also get this error: http://www.faktorzehn.org:8081/job/Hudson%20Plug-ins%20%28POM%29/10/console

          Ulli Hafner added a comment -

          Note that I get this exception for freestyle or maven builds.

          Ulli Hafner added a comment - Note that I get this exception for freestyle or maven builds.

            olamy Olivier Lamy
            liyatikal liyatikal
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: