users@glassfish.java.net

Re: Failed to parse TIFF message attachment

From: p_repetti <pierangelo.repetti_at_gmail.com>
Date: Wed, 19 May 2010 07:51:23 -0700 (PDT)

Hello

please note a small mistake in my error report: the mimeType is of type
String, but its value is empty.

--
p_repetti wrote:
> 
> Hello
> 
> I am using GF v2.1.1 on Win7 with JDK build 1.6.0_20-b02.
> 
> My application downloads e-mails from an account and analyzes their
> attachments.
> 
> When a message has got a TIFF attachment, I get an
> IllegalArgumentException: failed to parse:
> as soon as I call message.getContent() on it.
> 
> I traced the exception inside GF source code and found that it is raised
> in DataFlavor constructor:
> 
> try {
>             initialize(mimeType, humanPresentableName,
> this.getClass().getClassLoader());
>         } catch (MimeTypeParseException mtpe) {
>             throw new IllegalArgumentException("failed to parse:" +
> mimeType);
>         }
> 
> because the mimeType parameter is set to "java.lang.String".
> 
> If I run the same code outside GF, linking to JavaMail 1.4.2, it works
> fine.
> 
> What is the cause of that ?
> 
> Thanks
> 
-- 
View this message in context: http://old.nabble.com/Failed-to-parse-TIFF-message-attachment-tp28609143p28609360.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.