Author |
Message
|
Manikandan |
Posted: Sun Sep 05, 2004 7:37 pm Post subject: MQRC_TRUNCATED_MSG_FAILED |
|
|
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 |
|
 |
kirani |
Posted: Sun Sep 05, 2004 9:06 pm Post subject: |
|
|
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 |
|
 |
Manikandan |
Posted: Sun Sep 05, 2004 9:48 pm Post subject: |
|
|
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 |
|
 |
kirani |
Posted: Sun Sep 05, 2004 10:16 pm Post subject: |
|
|
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 |
|
 |
Manikandan |
Posted: Sun Sep 05, 2004 10:34 pm Post subject: |
|
|
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 |
|
 |
kirani |
Posted: Sun Sep 05, 2004 10:58 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Mon Sep 06, 2004 4:06 pm Post subject: |
|
|
 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 |
|
 |
PGoodhart |
Posted: Tue Sep 07, 2004 6:30 am Post subject: |
|
|
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 |
|
 |
|