qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: Bug: BytesMessage.reset() throws MessageNotWriteableException
Date Wed, 06 Sep 2006 09:28:36 GMT
Colin,

Thanks for pointing that out. Someone will get around to fixing that soon.

--Gordon.

Colin Crist wrote:
>  
> Hi,
>  
> BytesMessage.reset() can be called on a read only message, its purpose
> is to "reset" the message so it can be read again from the start, it
> does not affect the message content.
>  
> 2006-09-05 17:25:34,436 [AWT-EventQueue-0] ERROR
> hermes.renderers.HexMessageRenderer - exception converting message to
> byte[]: 
> javax.jms.MessageNotWriteableException: You need to call clearBody() to
> make the message writable
>  at
> org.apache.qpid.client.message.JMSBytesMessage.checkWritable(JMSBytesMes
> sage.java:148)
>  at
> org.apache.qpid.client.message.JMSBytesMessage.reset(JMSBytesMessage.jav
> a:342)
>  
> Regards,
>  
> Colin
> http://hermesjms.com
> 
> 
> 


Mime
View raw message