Edward Tan wrote:
> The exception is caught somewhere, so I set at earlier calling function
> stack.
> But
> 
> message is null
> 
> and it goes to finally.

If it execute the finally, the message is null and the 2
System.out.printlm are not called then it could be a throwable (probably
an error, an out of memory error?)

If you can reproduce you could add a
} catch (Throwable t) {
   // some output code
   throw t;
} finally ...

Stefano

> Somewhere the exception is caught and never thrown back.
> 
> ------------------
>     private synchronized void loadMessage() throws MessagingException {
>         if (message != null) {
>             //Another thread has already loaded this message
>             return;
>         }
>         InputStream in = null;
>         try {
>             in = source.getInputStream();
>             headers = new MailHeaders(in);
> 
>             ByteArrayInputStream headersIn
>                     = new ByteArrayInputStream(headers.toByteArray());
>             in = new SequenceInputStream(headersIn, in);
> 
>             message = new MimeMessage(session, in);
>         } catch (IOException ioe) {
>                 System.out.println(ioe);
>             throw new MessagingException("Unable to parse stream: " +
> ioe.getMessage(), ioe);
>         } catch (Exception e) {
>             System.out.println(e);
>             e.printStackTrace();
>         } finally {
>             IOUtil.shutdownStream(in);
>         }
>     }
> ----------------------------


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

Reply via email to