james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evert Tigchelaar <e.tigchel...@minihouse.com>
Subject Re: npe when sending mail to more than two recipients
Date Thu, 14 Sep 2006 10:08:45 GMT
 From my mailed log file.

14/09/06 11:30:13 INFO  James.Mailet: RemoteAddrNotInNetwork: Authorized 
addresses: [,]
14/09/06 11:30:13 INFO  James.Mailet: RemoteDelivery: maxRetries is 
larger than total number of attempts specified. Increasing last 
delayTime with 19 attempts
14/09/06 11:30:13 INFO  James.Mailet: RemoteDelivery: Delay of 21600000 
msecs is now attempted: 20 times
14/09/06 11:36:56 INFO  James.Mailet: Error while storing mail.
javax.mail.MessagingException: Exception caught while storing Message 
Container: java.lang.NullPointerException
	at java.lang.Thread.run(Thread.java:595)

The NPE is thrown by the following code in the store(Mail) method in 
AvalonMailRepository because wrapper.getSourceId() returns null because 
it has no source like I wrote in my previouse mail.

if (wrapper.getSourceId().equals(destinationBuffer.toString()) && 
!wrapper.isModified()) {

Not fully sure which exact version I use because the developer in the 
company I work who normaly works on the James code is on holiday, he 
should come back next week. But I think we use build 2.3.0 A2.

Stefano Bagnara wrote:
> What release of james 2.3-dev are you using?
> What is your config.xml and what is the exact stack trace?
> Stefano
> Evert Tigchelaar wrote:
>> When I send an e-mail from local user to
>> 1 or 2 users, no problem but when I send an e-mail to more
>> than I get a npe in AvalonMailRepository because the source field (of 
>> class MimeMessageSource) in MimeMessageWrapper is null. I use a 
>> filebased inboxRepository like this in the config.xml
>> <inboxRepository>
>>          <repository destinationURL="file:///E:/mail/inboxes/" 
>> type="MAIL"/>
>>       </inboxRepository>
>> is this a known problem?
>> I use: "James Mail Server 2.3-dev" (copyed from the console when I 
>> run.bat script.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org

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

View raw message