[JBoss-user] [Messaging, JMS JBossMQ] - Re: Message size limit with BytesMessage and writeUTF method

2006-01-19 Thread [EMAIL PROTECTED]
For everybody else, here's a link to the bug report:
http://jira.jboss.com/jira/browse/JBAS-2641

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3918417#3918417

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3918417


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: Message size limit with BytesMessage and writeUTF method

2006-01-09 Thread [EMAIL PROTECTED]
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.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3916565#3916565

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3916565


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user