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-tp28609143p28609143.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.