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

NPE in RemoteDelivery

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: Remote Delivery
    • Labels:
      None

      Description

      I get the following exception in RemoteDelivery.getGatewaySMTPHostAddresses():

      java.lang.NullPointerException
      at org.apache.james.transport.mailets.RemoteDelivery$1.hasNext(RemoteDelivery.java:1331)
      at org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:453)
      at org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:1098)
      at java.lang.Thread.run(Thread.java:595)

      in hasNext(), the break condition is not complete (missing addresses == null check)

      I'm working on a patch.

      RemoteDelivery config in question:

      <mailet match="All" class="RemoteDelivery">
      <outgoing> file://var/mail/outgoing/ </outgoing>

      <delayTime> 5 minutes </delayTime>
      <delayTime> 10 minutes </delayTime>
      <delayTime> 45 minutes </delayTime>
      <delayTime> 2 hours </delayTime>
      <delayTime> 3 hours </delayTime>
      <delayTime> 6 hours </delayTime>
      <maxRetries> 25 </maxRetries>

      <deliveryThreads> 1 </deliveryThreads>

      <sendpartial>false</sendpartial>

      <bounceProcessor>bounces</bounceProcessor>
      <gateway>localhost</gateway>
      <gatewayPort>2525</gatewayPort>
      </mailet>

        Attachments

        1. remotedelivery.patch
          4 kB
          Bernd Fondermann

          Activity

            People

            • Assignee:
              bago Stefano Bagnara
              Reporter:
              brainlounge Bernd Fondermann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: