This content has been marked as final.
Show 2 replies
-
1. Re: Message size limit with BytesMessage and writeUTF method
starksm64 Jan 9, 2006 9:23 PM (in response to jlvila)Its an implementation detail limitation of the underlying DataOutputStream:
http://java.sun.com/products/jdk/serialization/faq/
# Why is UTFDataFormatException thrown by DataOutputStream.writeUTF() when serializing a String?
DataOutputStream.writeUTF() does not support writing out strings larger than 64K. The first two bytes of a UTF string in the stream are the length of the string. If a java.lang.String can be larger than 64K, it needs to be stored in the stream by an alternative method rather than depending on the default method of storing a String in the stream, writeUTF.
Try a javax.jms.TextMessage which works around this issue. -
2. Re: Message size limit with BytesMessage and writeUTF method
adrian.brock Jan 19, 2006 9:58 AM (in response to jlvila)For everybody else, here's a link to the bug report:
http://jira.jboss.com/jira/browse/JBAS-2641