<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: JBPM process sends corrupted JMS Messages
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/fmagdy">Fady Magdy</a> in <i>jBPM Development</i> - <a href="https://community.jboss.org/message/721329#721329">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Dear Mauricio </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thank you for your reply, I changed the  title to be more relevant  <span> :) </span> ,  after some more digging, the error was just a size issue, the problem now Is that the message comes corrupted without errors, so the message.getbody().body() is not able to get the message body  so it returns the whole JMS message, the strange thing is that this only happens when the workflow is published, any idea what might be the reason, below is a sample of the message </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>the send() method is called from within an action handler of a node in a bpmn process</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span><Envelope><Header xmlns:wsa="</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/ws/2004/08/addressing" target="_blank">http://schemas.xmlsoap.org/ws/2004/08/addressing</a><span>"><wsa:To>jms:127.0.0.1:1099#queue/ourqueue</wsa:To><jbossesb:java.naming.factory.initial xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">org.jnp.interfaces.NamingContextFactory</jbossesb:java.naming.factory.initial><jbossesb:java.naming.provider.url xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">127.0.0.1:1099</jbossesb:java.naming.provider.url><jbossesb:java.naming.factory.url.pkgs xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">org.jnp.interfaces</jbossesb:java.naming.factory.url.pkgs><jbossesb:destination-type xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">queue</jbossesb:destination-type><jbossesb:destination-name xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">queue/ourqueue</jbossesb:destination-name><jbossesb:specification-version xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">1.1</jbossesb:specification-version><jbossesb:connection-factory xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">ConnectionFactory</jbossesb:connection-factory><jbossesb:persistent xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">true</jbossesb:persistent><jbossesb:acknowledge-mode xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">AUTO_ACKNOWLEDGE</jbossesb:acknowledge-mode><jbossesb:transacted xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">false</jbossesb:transacted><jbossesb:type xmlns:jbossesb="</span><a class="jive-link-external-small" href="http://schemas.jboss.com/ws/2007/01/jbossesb" target="_blank">http://schemas.jboss.com/ws/2007/01/jbossesb</a><span>">urn:jboss/esb/epr/type/jms</jbossesb:type><wsa:MessageID>d14e36a2-d5a1-44a8-bc9f-d9fab4c84423</wsa:MessageID></Header><Context /><Body><Content><Key>b3JnLmpib3NzLnNvYS5lc2IubWVzc2FnZS5kZWZhdWx0RW50cnk=</Key><Value><marshalunmarshal><plugin-type>urn:xml/marshalunmarshal/plugin/serialization</plugin-type>rO0ABXQAizxUcmFuc2FjdGlvbj48VHJhbnNhY3Rpb25JZD4zMDg8L1RyYW5zYWN0aW9uSWQ+PFRyYW5zYWN0aW9uTmFtZT5OYW1lPC9UcmFuc2FjdGlvbk5hbWU+PFRyYW5zYWN0aW9uRGF0ZT5udWxsPC9UcmFuc2FjdGlvbkRhdGU+PC9UcmFuc2FjdGlvbj4=</marshalunmarshal></Value></Content></Body><Attachment /><Properties><Property><Key>b3JnLmpib3NzLnNvYS5lc2IubWVzc2FnZS50cmFuc3BvcnQudHlwZQ==</Key><Value>rO0ABX5yAC9vcmcuamJvc3Muc29hLmVzYi5jb21tb24uRW52aXJvbm1lbnQkVHJhbnNwb3J0cwAAAAAAAAAAEgAAeHIADmphdmEubGFuZy5FbnVtAAAAAAAAAAASAAB4cHQAA0pNUw==</Value></Property><Property><Key>amF2YXguam1zLm1lc3NhZ2UucmVkZWxpdmVyZWQ=</Key><Value>rO0ABXNyABFqYXZhLmxhbmcuQm9vbGVhbs0gcoDVnPruAgABWgAFdmFsdWV4cAA=</Value></Property><Property><Key>b3JnLmpib3NzLnNvYS5lc2IubWVzc2FnZS5zb3VyY2U=</Key><Value>rO0ABXQANVBvcnRSZWZlcmVuY2UgPCBqbXM6MTI3LjAuMC4xOjEwOTkjcXVldWUvU1BBUktRdWV1ZSA+</Value></Property><Property><Key>b3JnLmpib3NzLnNvYS5lc2IuZ2F0ZXdheS5vcmlnaW5hbC5xdWV1ZS5uYW1l</Key><Value>rO0ABXQAEHF1ZXVlL1NQQVJLUXVldWU=</Value></Property></Properties></Envelope></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>thanks,</p><p>fmagdy</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/721329#721329">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>