<!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;">&#160;</p><p>Thank you for your reply, I changed the&#160; title to be more relevant&#160; <span> :) </span> ,&#160; 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&#160; 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;">&#160;</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;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span>&lt;Envelope&gt;&lt;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>"&gt;&lt;wsa:To&gt;jms:127.0.0.1:1099#queue/ourqueue&lt;/wsa:To&gt;&lt;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>"&gt;org.jnp.interfaces.NamingContextFactory&lt;/jbossesb:java.naming.factory.initial&gt;&lt;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>"&gt;127.0.0.1:1099&lt;/jbossesb:java.naming.provider.url&gt;&lt;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>"&gt;org.jnp.interfaces&lt;/jbossesb:java.naming.factory.url.pkgs&gt;&lt;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>"&gt;queue&lt;/jbossesb:destination-type&gt;&lt;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>"&gt;queue/ourqueue&lt;/jbossesb:destination-name&gt;&lt;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>"&gt;1.1&lt;/jbossesb:specification-version&gt;&lt;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>"&gt;ConnectionFactory&lt;/jbossesb:connection-factory&gt;&lt;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>"&gt;true&lt;/jbossesb:persistent&gt;&lt;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>"&gt;AUTO_ACKNOWLEDGE&lt;/jbossesb:acknowledge-mode&gt;&lt;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>"&gt;false&lt;/jbossesb:transacted&gt;&lt;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>"&gt;urn:jboss/esb/epr/type/jms&lt;/jbossesb:type&gt;&lt;wsa:MessageID&gt;d14e36a2-d5a1-44a8-bc9f-d9fab4c84423&lt;/wsa:MessageID&gt;&lt;/Header&gt;&lt;Context /&gt;&lt;Body&gt;&lt;Content&gt;&lt;Key&gt;b3JnLmpib3NzLnNvYS5lc2IubWVzc2FnZS5kZWZhdWx0RW50cnk=&lt;/Key&gt;&lt;Value&gt;&lt;marshalunmarshal&gt;&lt;plugin-type&gt;urn:xml/marshalunmarshal/plugin/serialization&lt;/plugin-type&gt;rO0ABXQAizxUcmFuc2FjdGlvbj48VHJhbnNhY3Rpb25JZD4zMDg8L1RyYW5zYWN0aW9uSWQ+PFRyYW5zYWN0aW9uTmFtZT5OYW1lPC9UcmFuc2FjdGlvbk5hbWU+PFRyYW5zYWN0aW9uRGF0ZT5udWxsPC9UcmFuc2FjdGlvbkRhdGU+PC9UcmFuc2FjdGlvbj4=&lt;/marshalunmarshal&gt;&lt;/Value&gt;&lt;/Content&gt;&lt;/Body&gt;&lt;Attachment /&gt;&lt;Properties&gt;&lt;Property&gt;&lt;Key&gt;b3JnLmpib3NzLnNvYS5lc2IubWVzc2FnZS50cmFuc3BvcnQudHlwZQ==&lt;/Key&gt;&lt;Value&gt;rO0ABX5yAC9vcmcuamJvc3Muc29hLmVzYi5jb21tb24uRW52aXJvbm1lbnQkVHJhbnNwb3J0cwAAAAAAAAAAEgAAeHIADmphdmEubGFuZy5FbnVtAAAAAAAAAAASAAB4cHQAA0pNUw==&lt;/Value&gt;&lt;/Property&gt;&lt;Property&gt;&lt;Key&gt;amF2YXguam1zLm1lc3NhZ2UucmVkZWxpdmVyZWQ=&lt;/Key&gt;&lt;Value&gt;rO0ABXNyABFqYXZhLmxhbmcuQm9vbGVhbs0gcoDVnPruAgABWgAFdmFsdWV4cAA=&lt;/Value&gt;&lt;/Property&gt;&lt;Property&gt;&lt;Key&gt;b3JnLmpib3NzLnNvYS5lc2IubWVzc2FnZS5zb3VyY2U=&lt;/Key&gt;&lt;Value&gt;rO0ABXQANVBvcnRSZWZlcmVuY2UgPCBqbXM6MTI3LjAuMC4xOjEwOTkjcXVldWUvU1BBUktRdWV1ZSA+&lt;/Value&gt;&lt;/Property&gt;&lt;Property&gt;&lt;Key&gt;b3JnLmpib3NzLnNvYS5lc2IuZ2F0ZXdheS5vcmlnaW5hbC5xdWV1ZS5uYW1l&lt;/Key&gt;&lt;Value&gt;rO0ABXQAEHF1ZXVlL1NQQVJLUXVldWU=&lt;/Value&gt;&lt;/Property&gt;&lt;/Properties&gt;&lt;/Envelope&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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>