Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1350

Infinite loop in case of mailet throwing unchecked exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-beta3
    • None
    • None
    • james 3.0-beta4-20110922 on Linux, java 1.6.0_25-b06

      <bean id="mailqueuefactory" class="org.apache.james.queue.file.FileMailQueueFactory"/>

    Description

      When a mailet (custom one) throws unchecked exception (NullPointerException in this case), spool enters an infinite (looking) loop, and fills up the disk with error logs, like attached. Before filling up the disk, it made 882524 attempts like in the attached log.

      Mailet configured like that:

      <mailet match="All" class="xxx.FixNotStandardMessageId" onMailetException="ignore"/>

      Attachments

        1. James Infinite Loop Log.txt
          31 kB
          Andrzej Rusin

        Activity

          People

            Unassigned Unassigned
            arusin Andrzej Rusin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: