If a jq script is used in a SetBody and the transport type is Queues, the script crashes. In case the transport type Synchronous is used, the script works fine.
Error
Failed delivery for (MessageId: ID:assimbly-test-42051-1785925756490-1:5:25:1:3 on ExchangeId: 084B8E262FAC379-000000000000286D). Exhausted after delivery attempt: 1 caught: org.apache.camel.StreamCacheException: Error during type conversion from type: null to the required type: org.apache.camel.StreamCache with value null due to org.apache.camel.RuntimeCamelException: Failed to extract body due to: jakarta.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: Forbidden class com.fasterxml.jackson.databind.node.NodeSerialization! This class is not trusted to be serialized as ObjectMessage payload. Please take a look at http://activemq.apache.org/objectmessage.html for more information on how to configure trusted classes.
Test case
Instance: development
Tenant: Regression Tests
Flow: Multi_jq_queues
Version: 1 synchronous, works as expected
Version : 2 queues, gives the error
Jira: https://dovetailworld.atlassian.net/browse/FG-2624
If a jq script is used in a SetBody and the transport type is Queues, the script crashes. In case the transport type Synchronous is used, the script works fine.
Error
Failed delivery for (MessageId: ID:assimbly-test-42051-1785925756490-1:5:25:1:3 on ExchangeId: 084B8E262FAC379-000000000000286D). Exhausted after delivery attempt: 1 caught: org.apache.camel.StreamCacheException: Error during type conversion from type: null to the required type: org.apache.camel.StreamCache with value null due to org.apache.camel.RuntimeCamelException: Failed to extract body due to: jakarta.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: Forbidden class com.fasterxml.jackson.databind.node.NodeSerialization! This class is not trusted to be serialized as ObjectMessage payload. Please take a look at http://activemq.apache.org/objectmessage.html for more information on how to configure trusted classes.Test case
Instance: development
Tenant: Regression Tests
Flow: Multi_jq_queues
Version: 1 synchronous, works as expected
Version : 2 queues, gives the error
Jira: https://dovetailworld.atlassian.net/browse/FG-2624