[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1802) Sending MapMessage with large String value is broken
Justin Bertram (JIRA)
jira-events at lists.jboss.org
Wed Apr 21 23:22:10 EDT 2010
[ https://jira.jboss.org/jira/browse/JBMESSAGING-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12526917#action_12526917 ]
Justin Bertram commented on JBMESSAGING-1802:
---------------------------------------------
Here is an example stack-trace:
2010-04-20 16:09:22,860 ERROR [org.jboss.messaging.core.impl.ChannelSupport] (http-0.0.0.0-8080-5) Failed to handle message
java.lang.RuntimeException: encoded string too long: 77513 bytes
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:347)
at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306)
at org.jboss.messaging.util.StreamUtils.writeObject(StreamUtils.java:184)
at org.jboss.messaging.util.StreamUtils.writeMap(StreamUtils.java:300)
at org.jboss.messaging.util.StreamUtils.writeObject(StreamUtils.java:195)
at org.jboss.messaging.core.impl.message.MessageSupport.doWriteObject(MessageSupport.java:422)
at org.jboss.messaging.core.impl.message.MessageSupport.getPayloadAsByteArray(MessageSupport.java:224)
at org.jboss.messaging.core.impl.JDBCPersistenceManager.bindBlobs(JDBCPersistenceManager.java:2403)
at org.jboss.messaging.core.impl.JDBCPersistenceManager.storeMessage(JDBCPersistenceManager.java:2354)
at org.jboss.messaging.core.impl.JDBCPersistenceManager$1AddReferenceRunner.doTransaction(JDBCPersistenceManager.java:1370)
at org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.execute(JDBCSupport.java:474)
at org.jboss.messaging.core.impl.JDBCSupport$JDBCTxRunner2.executeWithRetry(JDBCSupport.java:512)
at org.jboss.messaging.core.impl.JDBCPersistenceManager.addReference(JDBCPersistenceManager.java:1422)
at org.jboss.messaging.core.impl.ChannelSupport.handle(ChannelSupport.java:234)
at ...
The method org.jboss.messaging.util.StreamUtils.writeObject(..) can actually handle writing Strings longer than 65536 characters, but for some reason the necessary parameter to trigger this behavior is false.
> Sending MapMessage with large String value is broken
> ----------------------------------------------------
>
> Key: JBMESSAGING-1802
> URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1802
> Project: JBoss Messaging
> Issue Type: Bug
> Affects Versions: 1.4.0.SP3.CP10
> Reporter: Justin Bertram
> Assignee: Howard Gao
>
> Sending a javax.jms.MapMessage that has a String value >= 65536 characters fails.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list