Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18020

Publisher hudson.tasks.Mailer aborted due to exception randomly appearing

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • core, mailer-plugin
    • None

      I am having periodic expereince with this:

      06:17:59 BUILD FAILED
      06:17:59 <job>\build.xml:973: The following error occurred while executing this line:
      06:17:59 <job>\build.xml:975: The following error occurred while executing this line:
      06:17:59 <job>\build.xml:323: The following error occurred while executing this line:
      06:17:59 <job>\build.xml:274: The following error occurred while executing this line:
      06:17:59 <job>\build.xml:286: The following error occurred while executing this line:
      06:17:59 <job>\build.xml:140: exec returned: 1
      06:17:59
      06:17:59 Total time: 60 minutes 10 seconds
      06:18:00 Build step 'Invoke Ant' marked build as failure
      06:18:00 [WARNINGS] Skipping publisher since build result is FAILURE
      06:18:00 Archiving artifacts
      06:18:51 Recording test results
      06:18:51 Recording fingerprints
      06:21:44 ERROR: Publisher hudson.tasks.Mailer aborted due to exception
      06:21:44 java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #1 DESC: lo=3,hi=1,size=175,size2=175
      06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:442)
      06:21:44 at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:222)
      06:21:44 at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:357)
      06:21:44 at hudson.model.Run.onLoad(Run.java:319)
      06:21:44 at hudson.model.RunMap.retrieve(RunMap.java:226)
      06:21:44 at hudson.model.RunMap.retrieve(RunMap.java:59)
      06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:667)
      06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:650)
      06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:456)
      06:21:44 at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:222)
      06:21:44 at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:1580)
      06:21:44 at hudson.model.User.getProjects(User.java:449)
      06:21:44 at hudson.scm.SubversionMailAddressResolverImpl.findMailAddressFor(SubversionMailAddressResolverImpl.java:25)
      06:21:44 at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:101)
      06:21:44 at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:532)
      06:21:44 at hudson.tasks.MailSender.buildCulpritList(MailSender.java:408)
      06:21:44 at hudson.tasks.MailSender.createEmptyMail(MailSender.java:368)
      06:21:44 at hudson.tasks.MailSender.createFailureMail(MailSender.java:227)
      06:21:44 at hudson.tasks.MailSender.getMail(MailSender.java:154)
      06:21:44 at hudson.tasks.MailSender.execute(MailSender.java:100)
      06:21:44 at hudson.tasks.Mailer.perform(Mailer.java:117)
      06:21:44 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      06:21:44 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      06:21:44 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
      06:21:44 at hudson.model.Build$BuildExecution.post2(Build.java:183)
      06:21:44 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
      06:21:44 at hudson.model.Run.execute(Run.java:1600)
      06:21:44 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      06:21:44 at hudson.model.ResourceController.execute(ResourceController.java:88)
      06:21:44 at hudson.model.Executor.run(Executor.java:241)
      06:21:44 Finished: FAILURE

      I cannot produce any pattern to make intended resulf of this, but mainly we are having these issues after we started to have few junit unit tests failing constantly.

      Please inform if any logs needed. And in the noob termimology, please.

          [JENKINS-18020] Publisher hudson.tasks.Mailer aborted due to exception randomly appearing

          Linards L created issue -
          Linards L made changes -
          Description Original: I am having periodic expereince with this:

          06:17:59 BUILD FAILED
          06:17:59 E:\Hudson\jobs\trunk-Horizon-nightly\workspace\Source\build.xml:973: The following error occurred while executing this line:
          06:17:59 E:\Hudson\jobs\trunk-Horizon-nightly\workspace\Source\build.xml:975: The following error occurred while executing this line:
          06:17:59 E:\Hudson\jobs\trunk-Horizon-nightly\workspace\Source\build.xml:323: The following error occurred while executing this line:
          06:17:59 E:\Hudson\jobs\trunk-Horizon-nightly\workspace\Source\build.xml:274: The following error occurred while executing this line:
          06:17:59 E:\Hudson\jobs\trunk-Horizon-nightly\workspace\Source\build.xml:286: The following error occurred while executing this line:
          06:17:59 E:\Hudson\jobs\trunk-Horizon-nightly\workspace\Source\build.xml:140: exec returned: 1
          06:17:59
          06:17:59 Total time: 60 minutes 10 seconds
          06:18:00 Build step 'Invoke Ant' marked build as failure
          06:18:00 [WARNINGS] Skipping publisher since build result is FAILURE
          06:18:00 Archiving artifacts
          06:18:51 Recording test results
          06:18:51 Recording fingerprints
          06:21:44 ERROR: Publisher hudson.tasks.Mailer aborted due to exception
          06:21:44 java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #1 DESC: lo=3,hi=1,size=175,size2=175
          06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:442)
          06:21:44 at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:222)
          06:21:44 at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:357)
          06:21:44 at hudson.model.Run.onLoad(Run.java:319)
          06:21:44 at hudson.model.RunMap.retrieve(RunMap.java:226)
          06:21:44 at hudson.model.RunMap.retrieve(RunMap.java:59)
          06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:667)
          06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:650)
          06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:456)
          06:21:44 at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:222)
          06:21:44 at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:1580)
          06:21:44 at hudson.model.User.getProjects(User.java:449)
          06:21:44 at hudson.scm.SubversionMailAddressResolverImpl.findMailAddressFor(SubversionMailAddressResolverImpl.java:25)
          06:21:44 at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:101)
          06:21:44 at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:532)
          06:21:44 at hudson.tasks.MailSender.buildCulpritList(MailSender.java:408)
          06:21:44 at hudson.tasks.MailSender.createEmptyMail(MailSender.java:368)
          06:21:44 at hudson.tasks.MailSender.createFailureMail(MailSender.java:227)
          06:21:44 at hudson.tasks.MailSender.getMail(MailSender.java:154)
          06:21:44 at hudson.tasks.MailSender.execute(MailSender.java:100)
          06:21:44 at hudson.tasks.Mailer.perform(Mailer.java:117)
          06:21:44 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          06:21:44 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
          06:21:44 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
          06:21:44 at hudson.model.Build$BuildExecution.post2(Build.java:183)
          06:21:44 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
          06:21:44 at hudson.model.Run.execute(Run.java:1600)
          06:21:44 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          06:21:44 at hudson.model.ResourceController.execute(ResourceController.java:88)
          06:21:44 at hudson.model.Executor.run(Executor.java:241)
          06:21:44 Finished: FAILURE

          I cannot produce any pattern to make intended resulf of this, but mainly we are having these issues after we started to have few junit unit tests failing constantly.

          Please inform if any logs needed. And in the noob termimology, please. ;)
          New: I am having periodic expereince with this:

          06:17:59 BUILD FAILED
          06:17:59 <job>\build.xml:973: The following error occurred while executing this line:
          06:17:59 <job>\build.xml:975: The following error occurred while executing this line:
          06:17:59 <job>\build.xml:323: The following error occurred while executing this line:
          06:17:59 <job>\build.xml:274: The following error occurred while executing this line:
          06:17:59 <job>\build.xml:286: The following error occurred while executing this line:
          06:17:59 <job>\build.xml:140: exec returned: 1
          06:17:59
          06:17:59 Total time: 60 minutes 10 seconds
          06:18:00 Build step 'Invoke Ant' marked build as failure
          06:18:00 [WARNINGS] Skipping publisher since build result is FAILURE
          06:18:00 Archiving artifacts
          06:18:51 Recording test results
          06:18:51 Recording fingerprints
          06:21:44 ERROR: Publisher hudson.tasks.Mailer aborted due to exception
          06:21:44 java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #1 DESC: lo=3,hi=1,size=175,size2=175
          06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:442)
          06:21:44 at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:222)
          06:21:44 at hudson.tasks.Fingerprinter$FingerprintAction.onLoad(Fingerprinter.java:357)
          06:21:44 at hudson.model.Run.onLoad(Run.java:319)
          06:21:44 at hudson.model.RunMap.retrieve(RunMap.java:226)
          06:21:44 at hudson.model.RunMap.retrieve(RunMap.java:59)
          06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:667)
          06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:650)
          06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:456)
          06:21:44 at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:222)
          06:21:44 at hudson.model.AbstractProject.hasParticipant(AbstractProject.java:1580)
          06:21:44 at hudson.model.User.getProjects(User.java:449)
          06:21:44 at hudson.scm.SubversionMailAddressResolverImpl.findMailAddressFor(SubversionMailAddressResolverImpl.java:25)
          06:21:44 at hudson.tasks.MailAddressResolver.resolve(MailAddressResolver.java:101)
          06:21:44 at hudson.tasks.Mailer$UserProperty.getAddress(Mailer.java:532)
          06:21:44 at hudson.tasks.MailSender.buildCulpritList(MailSender.java:408)
          06:21:44 at hudson.tasks.MailSender.createEmptyMail(MailSender.java:368)
          06:21:44 at hudson.tasks.MailSender.createFailureMail(MailSender.java:227)
          06:21:44 at hudson.tasks.MailSender.getMail(MailSender.java:154)
          06:21:44 at hudson.tasks.MailSender.execute(MailSender.java:100)
          06:21:44 at hudson.tasks.Mailer.perform(Mailer.java:117)
          06:21:44 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
          06:21:44 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
          06:21:44 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:776)
          06:21:44 at hudson.model.Build$BuildExecution.post2(Build.java:183)
          06:21:44 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:726)
          06:21:44 at hudson.model.Run.execute(Run.java:1600)
          06:21:44 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          06:21:44 at hudson.model.ResourceController.execute(ResourceController.java:88)
          06:21:44 at hudson.model.Executor.run(Executor.java:241)
          06:21:44 Finished: FAILURE

          I cannot produce any pattern to make intended resulf of this, but mainly we are having these issues after we started to have few junit unit tests failing constantly.

          Please inform if any logs needed. And in the noob termimology, please. ;)

          Linards L added a comment -

          What is interesting are tghese lines:

          06:18:00 Build step 'Invoke Ant' marked build as failure
          06:18:00 [WARNINGS] Skipping publisher since build result is FAILURE

          • and -

          06:21:44 ERROR: Publisher hudson.tasks.Mailer aborted due to exception
          06:21:44 java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #1 DESC: lo=3,hi=1,size=175,size2=175
          06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:442)
          06:21:44 at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:222)

          ... Seems like Warnings plugin somehow manages this "jenkins.model.lazy.AbstractLazyLoadRunMap.search" better that internal Mailer ...

          Linards L added a comment - What is interesting are tghese lines: 06:18:00 Build step 'Invoke Ant' marked build as failure 06:18:00 [WARNINGS] Skipping publisher since build result is FAILURE and - 06:21:44 ERROR: Publisher hudson.tasks.Mailer aborted due to exception 06:21:44 java.lang.ArrayIndexOutOfBoundsException: Assertion error: failing to load #1 DESC: lo=3,hi=1,size=175,size2=175 06:21:44 at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:442) 06:21:44 at hudson.model.AbstractBuild.getPreviousBuild(AbstractBuild.java:222) ... Seems like Warnings plugin somehow manages this "jenkins.model.lazy.AbstractLazyLoadRunMap.search" better that internal Mailer ...

          Oleg Nenashev added a comment -

          Reassigned to a proper component

          Oleg Nenashev added a comment - Reassigned to a proper component
          Oleg Nenashev made changes -
          Component/s New: mailer [ 17522 ]
          Component/s Original: core [ 15593 ]

          Oleg Nenashev added a comment -

          My bad. It was a bug in Jenkins core (search in lazy load cache).
          The issue duplicates JENKINS-15652

          Oleg Nenashev added a comment - My bad. It was a bug in Jenkins core (search in lazy load cache). The issue duplicates JENKINS-15652
          Oleg Nenashev made changes -
          Component/s New: core [ 15593 ]
          Oleg Nenashev made changes -
          Link New: This issue duplicates JENKINS-15652 [ JENKINS-15652 ]
          Oleg Nenashev made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 149317 ] New: JNJira + In-Review [ 193067 ]

            Unassigned Unassigned
            hx_unbanned Linards L
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: