MuleSoft · JMS Connector
JMS:ILLEGAL_BODY
Short answer
JMS:ILLEGAL_BODY means the message body is invalid or cannot be converted to a supported type. Transform the payload into a type the connector can publish before the Publish operation.
VerifiedLast verified
01Error text
Error type: JMS:ILLEGAL_BODY02Likely causes
- The message body is invalid or cannot be converted to a supported type.
03How to fix it
- Check the type of the value passed as the message body.
- Transform the body into a supported type before publishing.
- Turn on verbose logging: in
log4j2.xmladd<AsyncLogger name="org.mule.extensions.jms" level="DEBUG"/>and<AsyncLogger name="org.mule.jms.commons" level="DEBUG"/>. Increase the logging level on the broker side as well. - Handle the failure with an error handler of type
JMS:ILLEGAL_BODY.
04Official documentation
→Related errors
- JMS:PUBLISHINGJMS:PUBLISHING means there was an error while publishing to the target queue or topic. Check the destination and the broker, then read the underlying cause with verbose logging on.
- MULE:EXPRESSIONMULE:EXPRESSION means an error occurred while Mule evaluated a DataWeave expression. Find the expression named in the log, check the values it reads for nulls or wrong types, and add a default or a handler.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer