History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: HJMS-165
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Colin Crist
Reporter: Sergey Zhemzhitsky
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

DefaultMessageRenderer does not render byte message correctly when bytesIsString property set.

Created: 14/Sep/11 09:18 AM   Updated: 15/Sep/11 04:26 AM
Component/s: GUI
Affects Version/s: 1.14
Fix Version/s: 1.15

 Description  « Hide
The problem is in the following code:

DefaultMessageRenderer: 350. final StringBuffer sb = new StringBuffer();

DefaultMessageRenderer: 352. sb.append(MessageUtils.asBytes(bytesMessage));

Bytes appended to the StringBuffer as object and not as a string.
We should use

sb.append(new String(MessageUtils.asBytes(bytesMessage)));


 All   Comments   Change History      Sort Order:
Colin Crist [15/Sep/11 04:26 AM]

Ok, although can you think of a more useful way to render the byte[]? There is already a HEX tab.