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 <ap...@bago.org> on 2006/10/06 10:50:23 UTC
Re: [jira] Resolved: (JAMES-649) error "OutOfMemoryError: JAVA HE
AP SPACE" in connections log file when doing a POP TOP for 4000 messages
Maxime.LORIDAN@external.thalesgroup.com wrote:
> Hello,
>
> Is it fixed?. In which version of James?.. Have you done a new released candidate?
>
> Actually, Stefano Bagnara (James programmer) asked me to try this code:
> ----
> /**
> * @see javax.mail.internet.MimeMessage#getRawInputStream()
> */
> public InputStream getRawInputStream() throws MessagingException {
> if (!messageParsed && !isModified() && source != null) {
> InputStream is;
> try {
> is = source.getInputStream();
> // skip the headers.
> new MailHeaders(is);
> return is;
> } catch (IOException e) {
> throw new MessagingException("Unable to read the stream: " + e.getMessage(), e);
> }
> } else return super.getRawInputStream();
> }
> ------
> In fact, it works to do a POP TOP with this code but I noticed a bad collateral effect. Actually, when I launched now 10 000 messages (10 Kos) with NO DELAY between 2 messages, I've got an error "not possible to listen on port 25" on my program for few of them.
>
> Thank you!
I already asked you why do you think this port 25 error is related with
the previous issue.
Wasn't the previous issue related to POP3 ? Who is sending this "not
possible to listen on port 25" ??
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org