Bugs item #633800, was opened at 2002-11-05 08:16
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=633800&group_id=22866

Category: JBossMQ
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Sieroka (sieroka)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cannot call setProperty() after clear()

Initial Comment:
The JMS spec says that you can set properties on 
incoming JMS messages:

lObjectMessage.clearBody();
lObjectMessage.setStringProperty( "PROPERTY", 
lProperty );

With JBoss 3.0.3 I get the following error:

javax.jms.MessageNotWriteableException: Properties 
are read-only
at org.jboss.mq.SpyMessage.setStringProperty
(SpyMessage.java:423)
at 
com.platespin.oss.apps.masterwatch.ejb.MhwDetailedSt
atsMessageBean.onMessage
(MhwDetailedStatsMessageBean.java:173)
at java.lang.reflect.Method.invoke(Native Method)
at 
org.jboss.ejb.MessageDrivenContainer$ContainerIntercep
tor.invoke(MessageDrivenContainer.java:391)
at 
org.jboss.resource.connectionmanager.CachedConnectio
nInterceptor.invoke
(CachedConnectionInterceptor.java:186)
at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.i
nvoke(MessageDrivenInstanceInterceptor.java:88)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:107)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:178)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
(TxInterceptorCMT.java:60)
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke
(RunAsSecurityInterceptor.java:100)
at org.jboss.ejb.plugins.LogInterceptor.invoke
(LogInterceptor.java:203)
at org.jboss.ejb.MessageDrivenContainer.invoke
(MessageDrivenContainer.java:302)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke
(JMSContainerInvoker.java:962)
at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$Message
ListenerImpl.onMessage(JMSContainerInvoker.java:1038)
at org.jboss.jms.asf.StdServerSession.onMessage
(StdServerSession.java:238)
at 
org.jboss.mq.SpyMessageConsumer.sessionConsumer
ProcessMessage(SpyMessageConsumer.java:603)
at org.jboss.mq.SpyMessageConsumer.addMessage
(SpyMessageConsumer.java:417)
at org.jboss.mq.SpySession.run(SpySession.java:259)
at org.jboss.jms.asf.StdServerSession.run
(StdServerSession.java:177)
at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Work
er.run(PooledExecutor.java:642)
at java.lang.Thread.run(Thread.java:479)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=633800&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to