You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Stefano Bagnara (JIRA)" <se...@james.apache.org> on 2006/04/15 16:58:01 UTC

[jira] Commented: (JAMES-476) NPE in RemoteDelivery

    [ http://issues.apache.org/jira/browse/JAMES-476?page=comments#action_12374637 ] 

Stefano Bagnara commented on JAMES-476:
---------------------------------------

How could it happen to have a message with no recipients in the outgoing spool?
IIRC RemoteDelivery store a copy of serviced Mail for each domain of the recipients. If the message has no recipients it should not write anything to the outgoing spool. 

> NPE in RemoteDelivery
> ---------------------
>
>          Key: JAMES-476
>          URL: http://issues.apache.org/jira/browse/JAMES-476
>      Project: James
>         Type: Bug

>   Components: Remote Delivery
>     Versions: 2.3.0a1
>     Reporter: Bernd Fondermann
>      Fix For: 2.3.0a2
>  Attachments: remotedelivery.patch
>
> 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>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org