[
http://jira.jboss.com/jira/browse/JBESB-1357?page=comments#action_12388843 ]
jarkko Lietolahti commented on JBESB-1357:
------------------------------------------
In 4.2.1GA
byte [] bodypart = (byte[])message.getBody().get(BytesBody.BYTES_LOCATION);
sets bodypart to be null
While
Object body = message.getBody().get();
Now body has a String containing "Hello World!!!!!"
Deprecated hint in javadoc for
org.jboss.soa.esb.message.Body.getByteArray doesn't work
---------------------------------------------------------------------------------------
Key: JBESB-1357
URL:
http://jira.jboss.com/jira/browse/JBESB-1357
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Documentation
Affects Versions: 4.2.1
Reporter: jarkko Lietolahti
Assigned To: Mark Little
Priority: Minor
Fix For: 4.2.1 CP1
Javadoc for Body.getByteArray says:" Deprecated. As of 4.2 this has been replaced
by get(BytesBody.BYTES_LOCATION) "
But this doesn't work. BytesBody.BYTES_LOCATION is also deprecated without a proper
hint where to go next!
Following the javadoc and calling System.out.println("Body: " +
message.getBody().get(BytesBody.BYTES_LOCATION)); in HelloWorld ( from Eclipse ESB create
project )
shows "[STDOUT] Body: null
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira