You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by jason sackett <ja...@home.com> on 2001/11/08 02:44:00 UTC

Duplicate emails from temporary FileNotFound Exceptions

Hello All,

Long time JAMES user :)
I appreciate any help with this.

This is JAMES 1.2.1.
JAMES is sending duplicate mails sometimes due to what appear to be (from
the netfile.log) failed attempts to access a mail file.
My config file specifies using only one thread.
It happens on all of my JAMES installations (three different networks and
JAMES servers).
It happens intermittently and in spurts.
Usually a bounce fixes it for a while.
It seems to fail deleting a few times then succeed on its own, successfully
delivering and deleting the file from the store.
Each time it fails is seems to deliver the message again.
It seems that some part of JAMES is locking a mail file in a persistent
store while another thread is trying to read or delete that mail maybe.

Netfile.log snippet:

2001.11.03 09:46:23 569 (ERROR) from POP3: Connection timeout on socket
2001.11.05 12:28:46 025 (ERROR) from POP3: Exception during connection from
AS2 (10.0.2.7) : Exception caught while retrieving an object:
java.io.FileNotFoundException:
../var/mail/localinbox/delivered\4D61696C313030343938313332353937352D343138.
private.PersistentStore (The system cannot find the file specified)
2001.11.05 12:32:46 010 (ERROR) from POP3: Connection timeout on socket
2001.11.05 03:27:37 271 (ERROR) from SMTP: Error parsing sender address: :
String index out of range: 0
2001.11.06 01:42:46 128 (ERROR) from POP3: Exception during connection from
AS2 (10.0.2.7) : Exception caught while retrieving an object:
java.io.FileNotFoundException:
../var/mail/localinbox/delivered\4D61696C313030353037323136363039382D353130.
private.PersistentStore (The system cannot find the file specified)
2001.11.06 01:44:46 130 (ERROR) from POP3: Connection timeout on socket
2001.11.06 06:24:57 259 (ERROR) from SMTP: Error parsing recipient address:
robert.lincoln: String index out of range: 14
2001.11.07 10:22:17 945 (ERROR) from POP3: Exception during connection from
AS2 (10.0.2.7) : Connection reset by peer: JVM_recv in socket input stream
read

Thank you for any insight into this issue,
Jason



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Duplicate emails from temporary FileNotFound Exceptions

Posted by jason sackett <ja...@home.com>.
I wrote an automatic singleton mail agent/client/parser.
It seems that someone was running it as a service AND started it in a
console.
Running two of them pointing to the same instance of JAMES is what caused my
problems below.
I guess that is why no one could explain it.

Thanks anyhow,
Jason


----- Original Message -----
From: "jason sackett" <ja...@home.com>
To: <ja...@jakarta.apache.org>
Sent: Wednesday, November 07, 2001 8:44 PM
Subject: Duplicate emails from temporary FileNotFound Exceptions


> Hello All,
>
> Long time JAMES user :)
> I appreciate any help with this.
>
> This is JAMES 1.2.1.
> JAMES is sending duplicate mails sometimes due to what appear to be (from
> the netfile.log) failed attempts to access a mail file.
> My config file specifies using only one thread.
> It happens on all of my JAMES installations (three different networks and
> JAMES servers).
> It happens intermittently and in spurts.
> Usually a bounce fixes it for a while.
> It seems to fail deleting a few times then succeed on its own,
successfully
> delivering and deleting the file from the store.
> Each time it fails is seems to deliver the message again.
> It seems that some part of JAMES is locking a mail file in a persistent
> store while another thread is trying to read or delete that mail maybe.
>
> Netfile.log snippet:
>
> 2001.11.03 09:46:23 569 (ERROR) from POP3: Connection timeout on socket
> 2001.11.05 12:28:46 025 (ERROR) from POP3: Exception during connection
from
> AS2 (10.0.2.7) : Exception caught while retrieving an object:
> java.io.FileNotFoundException:
>
../var/mail/localinbox/delivered\4D61696C313030343938313332353937352D343138.
> private.PersistentStore (The system cannot find the file specified)
> 2001.11.05 12:32:46 010 (ERROR) from POP3: Connection timeout on socket
> 2001.11.05 03:27:37 271 (ERROR) from SMTP: Error parsing sender address: :
> String index out of range: 0
> 2001.11.06 01:42:46 128 (ERROR) from POP3: Exception during connection
from
> AS2 (10.0.2.7) : Exception caught while retrieving an object:
> java.io.FileNotFoundException:
>
../var/mail/localinbox/delivered\4D61696C313030353037323136363039382D353130.
> private.PersistentStore (The system cannot find the file specified)
> 2001.11.06 01:44:46 130 (ERROR) from POP3: Connection timeout on socket
> 2001.11.06 06:24:57 259 (ERROR) from SMTP: Error parsing recipient
address:
> robert.lincoln: String index out of range: 14
> 2001.11.07 10:22:17 945 (ERROR) from POP3: Exception during connection
from
> AS2 (10.0.2.7) : Connection reset by peer: JVM_recv in socket input stream
> read
>
> Thank you for any insight into this issue,
> Jason
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>