java.lang.NullPointerException

Jenkins JIRA | torbent | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    In a couple of recent builds, I received messages like this: ERROR: Publisher hudson.tasks.Mailer aborted due to exception java.lang.NullPointerException at hudson.plugins.perforce.PerforceMailResolver.findMailAddressFor(PerforceMailResolver.java:41) at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:97) at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:465) at hudson.tasks.MailSender.buildCulpritList(MailSender.java:357) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:338) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:156) at hudson.tasks.MailSender.getMail(MailSender.java:147) at hudson.tasks.MailSender.execute(MailSender.java:81) at hudson.tasks.Mailer.perform(Mailer.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1263) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) The projects it happened for were new (in Hudson) and had rather many changes in the depot (because they're old). Some of the users involved might not exist anymore (didn't check, but it's plausible given the age of the projects). Feel free to make the summary more accurately reflect what causes the problem (number of changes / users not existing).

    Jenkins JIRA | 7 years ago | torbent
    java.lang.NullPointerException
  2. 0

    In a couple of recent builds, I received messages like this: ERROR: Publisher hudson.tasks.Mailer aborted due to exception java.lang.NullPointerException at hudson.plugins.perforce.PerforceMailResolver.findMailAddressFor(PerforceMailResolver.java:41) at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:97) at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:465) at hudson.tasks.MailSender.buildCulpritList(MailSender.java:357) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:338) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:156) at hudson.tasks.MailSender.getMail(MailSender.java:147) at hudson.tasks.MailSender.execute(MailSender.java:81) at hudson.tasks.Mailer.perform(Mailer.java:101) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550) at hudson.model.Build$RunnerImpl.post2(Build.java:152) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528) at hudson.model.Run.run(Run.java:1263) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:122) The projects it happened for were new (in Hudson) and had rather many changes in the depot (because they're old). Some of the users involved might not exist anymore (didn't check, but it's plausible given the age of the projects). Feel free to make the summary more accurately reflect what causes the problem (number of changes / users not existing).

    Jenkins JIRA | 7 years ago | torbent
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.plugins.perforce.PerforceMailResolver.findMailAddressFor()
    2. hudson.plugins.perforce
      PerforceMailResolver.findMailAddressFor
      1. hudson.plugins.perforce.PerforceMailResolver.findMailAddressFor(PerforceMailResolver.java:41)
      1 frame
    3. Hudson
      Executor.run
      1. hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:97)
      2. hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:465)
      3. hudson.tasks.MailSender.buildCulpritList(MailSender.java:357)
      4. hudson.tasks.MailSender.createEmptyMail(MailSender.java:338)
      5. hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:156)
      6. hudson.tasks.MailSender.getMail(MailSender.java:147)
      7. hudson.tasks.MailSender.execute(MailSender.java:81)
      8. hudson.tasks.Mailer.perform(Mailer.java:101)
      9. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      10. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:582)
      11. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:563)
      12. hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:550)
      13. hudson.model.Build$RunnerImpl.post2(Build.java:152)
      14. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:528)
      15. hudson.model.Run.run(Run.java:1263)
      16. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      17. hudson.model.ResourceController.execute(ResourceController.java:88)
      18. hudson.model.Executor.run(Executor.java:122)
      18 frames