java.lang.NullPointerException

Jenkins JIRA | podskalsky | 2 years ago
  1. 0

    For example ... We had some faild builds. After fixes the build was now OK but the mail notification is failing !!! ERROR: Failed to set Jenkins Identity header on email. java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.get(InstanceIdentity.java:126) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.setJenkinsInstanceIdent(MimeMessageBuilder.java:184) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:162) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:391) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:201) at hudson.tasks.MailSender.createMail(MailSender.java:192) at hudson.tasks.MailSender.run(MailSender.java:107) at hudson.tasks.Mailer.perform(Mailer.java:141) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1743) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) ERROR: Publisher hudson.tasks.Mailer aborted due to exception java.lang.NullPointerException at javax.mail.internet.InternetAddress.toString(InternetAddress.java:461) at javax.mail.internet.InternetAddress.toString(InternetAddress.java:426) at javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707) at javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:175) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:391) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:201) at hudson.tasks.MailSender.createMail(MailSender.java:192) at hudson.tasks.MailSender.run(MailSender.java:107) at hudson.tasks.Mailer.perform(Mailer.java:141) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1743) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Finished: FAILURE Workaround: downgrade to Mailer 1.12

    Jenkins JIRA | 2 years ago | podskalsky
    java.lang.NullPointerException
  2. 0

    For example ... We had some faild builds. After fixes the build was now OK but the mail notification is failing !!! ERROR: Failed to set Jenkins Identity header on email. java.lang.NullPointerException at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.get(InstanceIdentity.java:126) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.setJenkinsInstanceIdent(MimeMessageBuilder.java:184) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:162) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:391) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:201) at hudson.tasks.MailSender.createMail(MailSender.java:192) at hudson.tasks.MailSender.run(MailSender.java:107) at hudson.tasks.Mailer.perform(Mailer.java:141) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1743) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) ERROR: Publisher hudson.tasks.Mailer aborted due to exception java.lang.NullPointerException at javax.mail.internet.InternetAddress.toString(InternetAddress.java:461) at javax.mail.internet.InternetAddress.toString(InternetAddress.java:426) at javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707) at javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:175) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:391) at hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:201) at hudson.tasks.MailSender.createMail(MailSender.java:192) at hudson.tasks.MailSender.run(MailSender.java:107) at hudson.tasks.Mailer.perform(Mailer.java:141) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) at hudson.model.Run.execute(Run.java:1743) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Finished: FAILURE Workaround: downgrade to Mailer 1.12

    Jenkins JIRA | 2 years ago | podskalsky
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hello, If there are two or more addresses set in the "Reply-To Address" (separated by a comma), then builds fail due to the following error (I would like to be able to have more than one email specified as there are more than one person managing Jenkins): ERROR: Unable to send to address: fxxxxxxh@cxxxxxxt.com,CxxxxxxK@hxxxxxxxxs.com javax.mail.internet.AddressException: Illegal address in string ``fxxxxxxh@cxxxxxxt.com,CxxxxxxK@hxxxxxxxxs.com'' at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114) at hudson.tasks.Mailer.stringToAddress(Mailer.java:206) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.toNormalizedAddress(MimeMessageBuilder.java:262) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createUnstableMail(MailSender.java:223) at hudson.tasks.MailSender.createMail(MailSender.java:185) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:74) at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at javax.mail.internet.InternetAddress.toString(InternetAddress.java:461) at javax.mail.internet.InternetAddress.toString(InternetAddress.java:426) at javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707) at javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createUnstableMail(MailSender.java:223) at hudson.tasks.MailSender.createMail(MailSender.java:185) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:74) at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) project=hudson.maven.MavenModuleSet@7a591988[iot-core.master-event-source-service] project.getModules()=[hudson.maven.MavenModule@553e3d5[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource:eventsource-parent][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource:eventsource-parent][relativePath:], hudson.maven.MavenModule@1e9d5aed[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.client:eventsource-client][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.client:eventsource-client][relativePath:client], hudson.maven.MavenModule@2e2d3108[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.core:eventsource-core][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.core:eventsource-core][relativePath:core], hudson.maven.MavenModule@5a9fb7fe[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.protobuf:eventsource-protobuf][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.protobuf:eventsource-protobuf][relativePath:protobuf], hudson.maven.MavenModule@786a74c5[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.server:eventsource-server][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.server:eventsource-server][relativePath:server], hudson.maven.MavenModule@7fbb0361[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.webapp:eventsource-webapp][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.webapp:eventsource-webapp][relativePath:webapp]] project.getRootModule()=hudson.maven.MavenModule@553e3d5[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource:eventsource-parent][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource:eventsource-parent][relativePath:] FATAL: null java.lang.NullPointerException at javax.mail.internet.InternetAddress.toString(InternetAddress.java:461) at javax.mail.internet.InternetAddress.toString(InternetAddress.java:426) at javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707) at javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createUnstableMail(MailSender.java:223) at hudson.tasks.MailSender.createMail(MailSender.java:185) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:74) at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Skipping sonar analysis due to bad build status FAILURE ERROR: Unable to send to address: fxxxxxxh@cxxxxxxt.com,CxxxxxxK@hxxxxxxxxs.com javax.mail.internet.AddressException: Illegal address in string ``fxxxxxxh@cxxxxxxt.com,CxxxxxxK@hxxxxxxxxs.com'' at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114) at hudson.tasks.Mailer.stringToAddress(Mailer.java:206) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.toNormalizedAddress(MimeMessageBuilder.java:262) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createFailureMail(MailSender.java:262) at hudson.tasks.MailSender.createMail(MailSender.java:180) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1065) at hudson.model.Run.execute(Run.java:1785) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) FATAL: null java.lang.NullPointerException at javax.mail.internet.InternetAddress.toString(InternetAddress.java:461) at javax.mail.internet.InternetAddress.toString(InternetAddress.java:426) at javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707) at javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createFailureMail(MailSender.java:262) at hudson.tasks.MailSender.createMail(MailSender.java:180) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1065) at hudson.model.Run.execute(Run.java:1785) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410)

    Jenkins JIRA | 11 months ago | Fadi Farah
    java.lang.NullPointerException
  5. 0

    Hello, If there are two or more addresses set in the "Reply-To Address" (separated by a comma), then builds fail due to the following error (I would like to be able to have more than one email specified as there are more than one person managing Jenkins): ERROR: Unable to send to address: fxxxxxxh@cxxxxxxt.com,CxxxxxxK@hxxxxxxxxs.com javax.mail.internet.AddressException: Illegal address in string ``fxxxxxxh@cxxxxxxt.com,CxxxxxxK@hxxxxxxxxs.com'' at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114) at hudson.tasks.Mailer.stringToAddress(Mailer.java:206) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.toNormalizedAddress(MimeMessageBuilder.java:262) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createUnstableMail(MailSender.java:223) at hudson.tasks.MailSender.createMail(MailSender.java:185) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:74) at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com java.lang.NullPointerException at javax.mail.internet.InternetAddress.toString(InternetAddress.java:461) at javax.mail.internet.InternetAddress.toString(InternetAddress.java:426) at javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707) at javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createUnstableMail(MailSender.java:223) at hudson.tasks.MailSender.createMail(MailSender.java:185) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:74) at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) project=hudson.maven.MavenModuleSet@7a591988[iot-core.master-event-source-service] project.getModules()=[hudson.maven.MavenModule@553e3d5[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource:eventsource-parent][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource:eventsource-parent][relativePath:], hudson.maven.MavenModule@1e9d5aed[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.client:eventsource-client][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.client:eventsource-client][relativePath:client], hudson.maven.MavenModule@2e2d3108[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.core:eventsource-core][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.core:eventsource-core][relativePath:core], hudson.maven.MavenModule@5a9fb7fe[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.protobuf:eventsource-protobuf][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.protobuf:eventsource-protobuf][relativePath:protobuf], hudson.maven.MavenModule@786a74c5[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.server:eventsource-server][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.server:eventsource-server][relativePath:server], hudson.maven.MavenModule@7fbb0361[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.webapp:eventsource-webapp][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource.webapp:eventsource-webapp][relativePath:webapp]] project.getRootModule()=hudson.maven.MavenModule@553e3d5[iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource:eventsource-parent][iot-core.master-event-source-service/com.cxxxxxxt.platform.eventsource:eventsource-parent][relativePath:] FATAL: null java.lang.NullPointerException at javax.mail.internet.InternetAddress.toString(InternetAddress.java:461) at javax.mail.internet.InternetAddress.toString(InternetAddress.java:426) at javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707) at javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createUnstableMail(MailSender.java:223) at hudson.tasks.MailSender.createMail(MailSender.java:185) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.reporters.MavenMailer.end(MavenMailer.java:74) at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:859) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Skipping sonar analysis due to bad build status FAILURE ERROR: Unable to send to address: fxxxxxxh@cxxxxxxt.com,CxxxxxxK@hxxxxxxxxs.com javax.mail.internet.AddressException: Illegal address in string ``fxxxxxxh@cxxxxxxt.com,CxxxxxxK@hxxxxxxxxs.com'' at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:114) at hudson.tasks.Mailer.stringToAddress(Mailer.java:206) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.toNormalizedAddress(MimeMessageBuilder.java:262) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createFailureMail(MailSender.java:262) at hudson.tasks.MailSender.createMail(MailSender.java:180) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1065) at hudson.model.Run.execute(Run.java:1785) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) FATAL: null java.lang.NullPointerException at javax.mail.internet.InternetAddress.toString(InternetAddress.java:461) at javax.mail.internet.InternetAddress.toString(InternetAddress.java:426) at javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707) at javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694) at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:179) at hudson.tasks.MailSender.createEmptyMail(MailSender.java:399) at hudson.tasks.MailSender.createFailureMail(MailSender.java:262) at hudson.tasks.MailSender.createMail(MailSender.java:180) at hudson.tasks.MailSender.run(MailSender.java:109) at hudson.tasks.MailSender.execute(MailSender.java:103) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.cleanUp(MavenModuleSetBuild.java:1065) at hudson.model.Run.execute(Run.java:1785) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410)

    Jenkins JIRA | 11 months ago | Fadi Farah
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at javax.mail.internet.InternetAddress.toString()
    2. JavaMail API
      MimeMessage.setReplyTo
      1. javax.mail.internet.InternetAddress.toString(InternetAddress.java:461)
      2. javax.mail.internet.InternetAddress.toString(InternetAddress.java:426)
      3. javax.mail.internet.MimeMessage.setAddressHeader(MimeMessage.java:707)
      4. javax.mail.internet.MimeMessage.setReplyTo(MimeMessage.java:694)
      4 frames
    3. jenkins.plugins.mailer
      MimeMessageBuilder.buildMimeMessage
      1. jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:175)
      1 frame
    4. Hudson
      Executor.run
      1. hudson.tasks.MailSender.createEmptyMail(MailSender.java:391)
      2. hudson.tasks.MailSender.createBackToNormalMail(MailSender.java:201)
      3. hudson.tasks.MailSender.createMail(MailSender.java:192)
      4. hudson.tasks.MailSender.run(MailSender.java:107)
      5. hudson.tasks.Mailer.perform(Mailer.java:141)
      6. hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
      7. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      8. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      9. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      10. hudson.model.Build$BuildExecution.post2(Build.java:183)
      11. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683)
      12. hudson.model.Run.execute(Run.java:1743)
      13. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      14. hudson.model.ResourceController.execute(ResourceController.java:89)
      15. hudson.model.Executor.run(Executor.java:240)
      15 frames