You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mailet-api@james.apache.org by Anastasios Angelidis <vo...@videotron.ca> on 2008/10/18 01:12:48 UTC
Mailets, exeptions and retries.
Hi I'm experiencing a weird problem with the exception handling in the
mailet api and the retry system of james.
I have simple mailet as is...
class MyMailet extends GenericMailet
{
try
{
Do some IO...
}
catch(IOException ex)
{
throw new MessagingException("Here", ex)
}
}
The exception is caught and re thrown, but the exception is printed in
the JAMES console window not in the mailet log and NO retry or
postmaster failure e-mail. If I surround My exception with one more try
catch block it works fine. Exception is printed to mailet log and
postmaster e-mail is delivered. Further more it it seems as if the
IOException is printed with log message of the second exception. So the
log looks something like.
Date-Time ...... There java.MessgeException: Here java nested exception.
IOException Could no connect.
class MyMailet extends GenericMailet
{
try
{
try
{
Do some IO...
}
catch(IOException ex)
{
throw new MessagingException("Here", ex)
}
}
catch(Exception e)
{
log("There");
}
}