> While testing my custom mailet under high load
> (approx. 5 messages per second) I get this
> Exception from James [v2.1.2]:

> java.lang.RuntimeException: Exception caught while retrieving a stream:
> java.io.FileNotFoundException:
.../var/mail/spool/...Repository.FileStreamStore
> at filepair.File_Persistent_Stream_Repository.get(line 71)

This is James trying to READ an existing stream, and being told that it no
longer exists.

> at MimeMessageAvalonSource.getInputStream(line 59)
> at MimeMessageWrapper.writeTo(line 198)
> at MailImpl.writeMessageTo(line 376)
> at AvalonMailRepository.store(line 274)
> at James.sendMail(line 444)

This is James putting a message into the spool.  An InputStream for the
original message is requested so that James can stream from one file to the
other.

> at MailService.forwardMail(line 317)
> at ForwardMailet.service(line 146)

This is the code that created a new message to be copied from the other,
specifically:

>  myMailetContext.sendMail(mail.getSender(),
>                           recipientsToAdd,
>                           mail.getMessage());

> If I limit the load (eg one mail / second) the exception does not occur.
> Any ideas ?

Please try v2.2.0a7, if you don't mind testing, to see if this has already
been addressed.

        --- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to