ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » undelivered message, buffer problem?

Post new topic  Reply to topic
 undelivered message, buffer problem? « View previous topic :: View next topic » 
Author Message
kodiak
PostPosted: Thu Mar 21, 2002 8:01 am    Post subject: Reply with quote

Newbie

Joined: 20 Mar 2002
Posts: 4

I am having an issue where a message 'put' is simply failing to put anything on the queue. (I am using the single argument put call. ) There are no exceptions thrown, nothing put on the dead letter queue, and to make things worse it happens randomly. Also this seems to be happening only on the first message that my application attempts to place on the queue, which leads me to believe that it may be a buffering issue of some sort?! Additionally the message is always delivered when I have another application doing a 'get' on the queue.

Any Ideas??

Thanks in advance
Back to top
View user's profile Send private message
abmanesh
PostPosted: Thu Mar 21, 2002 8:10 am    Post subject: Reply with quote

Apprentice

Joined: 06 Nov 2001
Posts: 39

If you could post the code , that would help.
Back to top
View user's profile Send private message Send e-mail
kodiak
PostPosted: Thu Mar 21, 2002 8:28 am    Post subject: Reply with quote

Newbie

Joined: 20 Mar 2002
Posts: 4

The code is as simple as is possible...

try {
Back to top
View user's profile Send private message
kodiak
PostPosted: Thu Mar 21, 2002 8:32 am    Post subject: Reply with quote

Newbie

Joined: 20 Mar 2002
Posts: 4

... sorry

MQMessage msg = new MQMessage();

try {
msg.writeInt( MY_VERSION );
q.put( msg );
}catch( IOException ioe ) {
System.out.println("IOE : " + ioe);
}catch( MQException mqe ) {
System.out.println("MQE : " + mqe.reasonCode + " : " + mqe );
}

Back to top
View user's profile Send private message
mqonnet
PostPosted: Thu Mar 21, 2002 8:33 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Firstly what is the Reason code you are getting out of the mqput call. What do you mean by "happens randomly". does that mean, even the first put passes through sometimes. considering the case where the app is successful in putting the first message, do rest of the puts go through fine. All this without the getting app running alongside on the same queue.

More info would be better.
Cheers.
Kumar

_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kodiak
PostPosted: Thu Mar 21, 2002 9:15 am    Post subject: Reply with quote

Newbie

Joined: 20 Mar 2002
Posts: 4

Firstly what is the Reason code you are getting out of the mqput call.
>>>how do i get this value if there is no MQException thrown?

What do you mean by "happens randomly". does that mean, even the first put passes through sometimes.
>>>exactly!

considering the case where the app is successful in putting the first message, do rest of the puts go through fine.
>>>in all scenarios, when the put fails AND when it succeeds with the listening app on AND off, the rest of the mqputs succeed.

Back to top
View user's profile Send private message
mqonnet
PostPosted: Thu Mar 21, 2002 11:32 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

I am not quite sure what's wrong here, until i see the whole program code. The code which you have pasted looks fine.
To track it down further, you should probably clear all the queues and check to see where the message goes when the first PUT "fails". Fails, here i assume that it does not land up in the destined queue. Modify your QM attributes to point to the default/any other DLQ, if already not done so. I also assume that this queue is a Local queue.
I dont see any reason why you should think this to be a buffer error. Rather, what made you think that this could be a buffer problem.
Make it slow. Run this app in debug and go through the loop to monitor the values of MD, pmo and also the messages on queue. This way you could get closer to the problem.

Did you try out the Samples provided by IBM or which are on this site. Do they work, or they too show up the same behaviour.
Hope this helps.

Cheers.
Kumar

_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mrlinux
PostPosted: Thu Mar 21, 2002 2:03 pm    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Check to see if you have the SYNC-POINT Option set, The failure your describing
sounds like the message is sometimes not being commited to the queue.

_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » undelivered message, buffer problem?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.