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 » General IBM MQ Support » MQRC_TRUNCATED_MSG_FAILED

Post new topic  Reply to topic
 MQRC_TRUNCATED_MSG_FAILED « View previous topic :: View next topic » 
Author Message
Manikandan
PostPosted: Sun Sep 05, 2004 7:37 pm    Post subject: MQRC_TRUNCATED_MSG_FAILED Reply with quote

Voyager

Joined: 07 Jul 2004
Posts: 78

Can someone explain me about the above error.I have one application send a huge message and when picked up it shoots this error(2080)

I am running 5.3 version of MQseries on Solaris & Windows.
Back to top
View user's profile Send private message
kirani
PostPosted: Sun Sep 05, 2004 9:06 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

This is a warning message. This means your buffer passed in MQGET call is smaller than the message on the queue. You can set appropriate GET MESSAGE OPTIONS to handle this.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Manikandan
PostPosted: Sun Sep 05, 2004 9:48 pm    Post subject: Reply with quote

Voyager

Joined: 07 Jul 2004
Posts: 78

Thanks for the reply.

Actually when I am reading the message from API Exerciser I am having problems but when I am calling from my Java program I can read the message.

Can you brief on the problem
Back to top
View user's profile Send private message
kirani
PostPosted: Sun Sep 05, 2004 10:16 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

It could be that the API Exerciser program is not passing large buffer when doing MQGET. If your Java program is working then do you care about API Exerciser?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Manikandan
PostPosted: Sun Sep 05, 2004 10:34 pm    Post subject: Reply with quote

Voyager

Joined: 07 Jul 2004
Posts: 78

But just wanted to know where the problem is,
I do not have any getmessageoptions for bufferlength,

Thanks,
Back to top
View user's profile Send private message
kirani
PostPosted: Sun Sep 05, 2004 10:58 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Typically, one can specify MQGMO_ACCEPT_TRUNCATED_MSG option in MQGMO structure to complete the MQGET call even if the message on the queue is larger than the passed buffer length.

In your java program try to reduce the buffer size and see if the call fails. You can find more detailed description in Application Programming Guide manual (Chapter 10).
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Mon Sep 06, 2004 4:06 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Please remember as well that the memory model for java is completely different from C/C++. You do not have access to memory in java. Java manages the memory access for you. This is why you have a finalizer and garbage collector....

So in essence your question about the difference whereas memory options are concerned between a C/C++ model and Java is pointless...

Enjoy
Back to top
View user's profile Send private message Send e-mail
PGoodhart
PostPosted: Tue Sep 07, 2004 6:30 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2004
Posts: 278
Location: Harrisburg PA

FYI: Most of the sample programs such as the exerciser and amqsget have this flaw. So if you are writting Java programs one of the things I always recommend is building a sample that works properly as an exercise. You end up needing it to do meaningful testing anyway.
_________________
Patrick Goodhart
MQ Admin/Web Developer/Consultant
WebSphere Application Server Admin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQRC_TRUNCATED_MSG_FAILED
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.