History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: HJMS-53
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Colin Crist
Reporter: benety goh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
HermesJMS

No Delivery Mode exception when sending a text message with OpenJMS

Created: 19/Oct/07 09:26 PM   Updated: 23/Oct/07 06:11 AM
Component/s: GUI
Affects Version/s: 1.12
Fix Version/s: 1.13

Environment:
OpenJMS 0.7.7 beta
Windows 2000
Java 1.5


 Description  « Hide
I'm using OpenJMS 0.7.7 beta with Hermes 1.12.

I tried to send a text message using the default topic "topic1" that came with the OpenJMS installation and got the following message:
javax.jms.JMSException: No Delivery Mode set

I've attached the exception trace from the log file:

2007-09-22 16:49:11,562 [Hermes ThreadPool-2] ERROR hermes.browser.tasks.HermesB
rowserTaskListener - No Delivery Mode set
javax.jms.JMSException: No Delivery Mode set
at org.exolab.jms.message.MessageHeader.getJMSDeliveryMode(MessageHeader.java:281)
at org.exolab.jms.message.MessageImpl.getJMSDeliveryMode(MessageImpl.java:305)
at hermes.impl.DefaultHermesImpl.send(DefaultHermesImpl.java:597)
at hermes.browser.tasks.SendMessageTask.doUpload(SendMessageTask.java:109)
at hermes.browser.tasks.SendMessageTask.invoke(SendMessageTask.java:156)
at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175)
at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170)
at java.lang.Thread.run(Thread.java:619)
2007-09-22 16:49:11,593 [Hermes ThreadPool-2] DEBUG hermes.browser.tasks.ThreadPool - task hermes.browser.tasks.SendMessageTask@22811e stopped

It seems that createTextMessage() in OpenJMS returns a TextMessage without a null DeliveryMode and the getter method is throwing the exception.

Is there a way to set the delivery mode in Hermes when sending a text message?

 All   Comments   Change History      Sort Order:
Colin Crist [23/Oct/07 06:11 AM]
This has been fixed as part of http://hermesjms.org/jira/browse/HJMS-50