Hi,

When image files (Content-Type: image/gif, image/jpeg, image/jpg) are
attached to emails and Apache James 3.0 Beta4 serves as an MTA
I am getting these exceptions on MimeBodyPart.getContent() calls below :

...
[Unknown image type image/gif; name="clientRegistration.gif"]
javax.activation.UnsupportedDataTypeException: Unknown image type image/gif;
 name="clientRegistration.gif" at
org.apache.geronimo.javamail.handlers.AbstractImageHandler.getContent(AbstractImageHandler.java:57)
        at 
javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:790)
        at javax.activation.DataHandler.getContent(DataHandler.java:537)
        at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637)
        at ...
...

[Unknown image type image/jpeg; name="clientRegistration.jpeg"]
javax.activation.UnsupportedDataTypeException: Unknown image type image/jpeg;
 name="clientRegistration.jpeg" at
org.apache.geronimo.javamail.handlers.AbstractImageHandler.getContent(AbstractImageHandler.java:57)
        at 
javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:790)
        at javax.activation.DataHandler.getContent(DataHandler.java:537)
        at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637)
        at ...

...

[Unknown image type image/jpg; name="clientRegistration.jpg"]
javax.activation.UnsupportedDataTypeException: Unknown image type image/jpg;
 name="clientRegistration.jpg" at
org.apache.geronimo.javamail.handlers.AbstractImageHandler.getContent(AbstractImageHandler.java:57)
        at 
javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:790)
        at javax.activation.DataHandler.getContent(DataHandler.java:537)
        at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:637)
        at ...


This used to work just fine with Apache James 3.0 Beta3 (there was
only Sun's Java Mail JAMES/lib/mail-1.4.4.jar), but started breaking
in
Apache James 3.0 Beta4 due to (the addition of)
JAMES/lib/geronimo-javamail_1.4_mail-1.6.jar which is buggy (and hides
Sun's JavaMail
even though it appears after it on the classpath (in
JAMES/conf/wrapper.conf JAMES/lib/mail-1.4.4.jar is argument 10 vs.
geronimo-javamail_1.4_mail-1.6.jar which is argument 88)).

Commenting out geronimo-javamail_1.4_mail-1.6.jar in the
JAMES/conf/wrapper.conf fixes the problem (and from the tests that
I've done
nothing else breaks yet), how I'd like to know whether it's absolutely
needed or could be removed ?

Regards,
IH

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to