UnsupportedDataTypeException when sending new message
March 20th, 2009
Applies to:
NA
Description:
Occurs while sending a message with unsupported content
Cause:
You probably set some content for your message using the setContent(Object o, String type) method.
For this to work, there must be a JAF DataContentHandler registered for the given “type”. If not, you will get the UnsupportedDataTypeException. In most cases the simplest workaround is to use a ByteArrayDataSource.