classpathx-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-discuss] Re: Exception in IMAPBodyPart


From: Cedric Hyppolite
Subject: Re: [Classpathx-discuss] Re: Exception in IMAPBodyPart
Date: Wed, 3 May 2006 20:21:00 +0200

Hi Chris,

No more occurrence of the exception with CVS HEAD after several tries.

Thanks,
Cedric

Le 3 mai 06 à 11:25, Chris Burdess a écrit :

address@hidden wrote:
Quoting Chris Burdess <address@hidden>:
Cedric Hyppolite wrote:
java.lang.ClassCastException
at gnu.mail.providers.imap.IMAPBodyPart.update (IMAPBodyPart.java:189) at gnu.mail.providers.imap.IMAPBodyPart.fetch(IMAPBodyPart.java: 129)
        at gnu.mail.providers.imap.IMAPBodyPart.fetchContent
(IMAPBodyPart.java:107)
        at gnu.mail.providers.imap.IMAPBodyPart.getDataHandler
(IMAPBodyPart.java:247)
at javax.mail.internet.MimeBodyPart.getContent (MimeBodyPart.java:683)
        at gnu.mail.providers.imap.IMAPBodyPart.getContent
(IMAPBodyPart.java:261)

Thanks for your help in tracking down the problem. This bug should be
fixed now in CVS HEAD.

Thanks for the quick fix. I will try that tonight.
I am curious: What was the problem ? Why did it happen only every now and then?

Under some circumstances the IMAP server will respond with a string value to the FETCH BODY command, instead of a sized octet-array value. I think this only occurs when

1. the body part is very small
2. the body part has a text content-type with a charset parameter
--
犬 Chris Burdess
  "They that can give up essential liberty to obtain a little safety
  deserve neither liberty nor safety." - Benjamin Franklin









reply via email to

[Prev in Thread] Current Thread [Next in Thread]