Posted: Mon Jul 21, 2008 1:36 am Post subject: MQRC_FORMAT_ERROR
Centurion
Joined: 06 Jul 2007 Posts: 116
I am trying to clear a queue (100K+ messages) to disk.
1. Messages written by IBM WebSphere Message Broker.
2. First few (10 messages) MQ_GET fine.
3. Then I hit the MQRC_FORMAT_ERROR.
(How, if the messages are written by the same flow?)
4. If I use browse I get 33724 into a file and then:
Code:
java.io.EOFException
at com.ibm.mq.MQMessage.readConvertedString(MQMessage.java:2073)
at com.ibm.mq.MQMessage.readStringOfCharLength(MQMessage.java:632)
at com.ibm.mq.MQMessage.readString(MQMessage.java:1053)
at mqUtils.mqBrowse(mqUtils.java:253)
at mqUtils.main(mqUtils.java:97)
Help a victim out here! _________________ Here's an idea - don't destroy semaphores unless you're certain of what you're doing! -- Vitor
Posted: Wed Jul 23, 2008 2:14 am Post subject: Re: MQRC_FORMAT_ERROR
Jedi
Joined: 09 Mar 2004 Posts: 2080
Is the program trying to convert the message on MQGET? (ie. by using MQGMO_CONVERT)
How often do you need to delete all messages on a queue? Assuming the messages represent something important, it might be a rare thing - in that case perhaps the CLEAR QLOCAL command is better?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum