users@glassfish.java.net

RE: Failed to parse TIFF message attachment

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Wed, 19 May 2010 13:28:39 -0400

> Date: Wed, 19 May 2010 07:51:23 -0700
> From: pierangelo.repetti_at_gmail.com
> To: users_at_glassfish.dev.java.net
> Subject: Re: Failed to parse TIFF message attachment
>
>
> 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.

 

mg>careful ..you could be labelled as "Drahthaifisch kriminell" and get noticed by authorities who are watching you


> >
> > 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.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

                                               
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3