activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Challenger <wman...@gmail.com>
Subject Cannot read XML message from AMQ
Date Mon, 30 Apr 2007 14:06:34 GMT

A vb client sends the following XML message to AMQ but I am unable to read
the XML message from AMQ.
Hermes cannot display the message and gives an 'javax.jms.JMSException:
java.io.UTFDataFormatException'. See Hermes error below and tostring display
of the message. Any ideas and or suggestions will be appreciated.


<?xml version="1.0" encoding="ISO-8859-1"?>
<IFX>
<PersonName>
  <LastName>Leão</LastName>
  <FirstName>Doe</FirstName>
</PersonName>
</IFX>


Hermes: Error 
----------------------------------------------------------------------

Unable to display message:
javax.jms.JMSException: java.io.UTFDataFormatException
	at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:58)
	at
org.apache.activemq.command.ActiveMQTextMessage.getText(ActiveMQTextMessage.java:87)
	at
hermes.renderers.DefaultMessageRenderer.handleTextMessage(DefaultMessageRenderer.java:252)
	at
hermes.renderers.DefaultMessageRenderer.render(DefaultMessageRenderer.java:499)
	at
hermes.browser.components.MessagePayloadPanel.setMessage(MessagePayloadPanel.java:90)
	at
hermes.browser.actions.BrowserAction.valueChanged(BrowserAction.java:873)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
	at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:408)
	at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:417)
	at
javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:441)
	at javax.swing.JTable.changeSelectionModel(JTable.java:1634)
	at javax.swing.JTable.changeSelection(JTable.java:1680)
	at com.jidesoft.grid.JideTable.changeSelection(Unknown Source)
	at
javax.swing.plaf.basic.BasicTableUI$Handler.makeSelectionChange(BasicTableUI.java:1012)
	at
javax.swing.plaf.basic.BasicTableUI$Handler.adjustFocusAndSelection(BasicTableUI.java:968)
	at
javax.swing.plaf.basic.BasicTableUI$Handler.mousePressed(BasicTableUI.java:922)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222)
	at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
	at java.awt.Component.processMouseEvent(Component.java:5485)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3889)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1778)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.io.UTFDataFormatException
	at
org.apache.activemq.util.MarshallingSupport.readUTF8(MarshallingSupport.java:356)
	at
org.apache.activemq.command.ActiveMQTextMessage.getText(ActiveMQTextMessage.java:82)
	... 37 more


Hermes: tostring display 
----------------------------------------------------------------------

ActiveMQTextMessage {commandId = 4, responseRequired = true, messageId =
6332cef9-a40a-4399-aac5-1956469d5c1c:1:1:1, originalDestination = null,
originalTransactionId = null, producerId =
6332cef9-a40a-4399-aac5-1956469d5c1c:1:1, destination =
queue://dctdcr.admin.request, transactionId = null, expiration = 0,
timestamp = 0, arrival = 0, correlationId = null, replyTo = null, persistent
= false, type = null, priority = 5, groupID = null, groupSequence = 0,
targetConsumerId = null, compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@18bc0fb, marshalledProperties =
org.apache.activemq.util.ByteSequence@2ac57c, dataStructure = null,
redeliveryCounter = 5428, size = 0, properties = {FA_ID=34760},
readOnlyProperties = true, readOnlyBody = true, droppable = false, text =
null}
-- 
View this message in context: http://www.nabble.com/Cannot-read-XML-message-from--AMQ-tf3669801s2354.html#a10253996
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message