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

MuleSoft error
Error type: JMS:ILLEGAL_BODY

02Likely causes

  • The message body is invalid or cannot be converted to a supported type.

03How to fix it

  1. Check the type of the value passed as the message body.
  2. Transform the body into a supported type before publishing.
  3. Turn on verbose logging: in log4j2.xml add <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.
  4. Handle the failure with an error handler of type JMS:ILLEGAL_BODY.

04Official documentation

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

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.