Project: mule
Issue MULE-8597: set-payload with invalid MIME type returns an ugly error
When using an invalid MIME type in set-payload the error message is not very clear. Deploy this app: {code:xml} {code} Request: ~ curl http://localhost:8081/ javax.activation.MimeTypeParseException: Unable to find a sub type. (org.mule.api.MuleRuntimeException). Message payload is of type: BufferInputStream% App log: org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor:32 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: javax.activation.MimeTypeParseException: Unable to find a sub type. javax.activation.MimeType.parse(MimeType.java:102) javax.activation.MimeType.(MimeType.java:63) org.mule.transformer.types.SimpleDataType.(SimpleDataType.java:40) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) ********************************************************************************
Story points: 3