• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

MQ Exception --- 2033 error

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using MQseries for massageing.i am getting a xml message from backend.
when the number of rows in xml are less then i am not getting any error but if the xml data is more(more than 100 rows) getting MQ Exception --- 2033 error.
I am getting the long message from MQ in bits and pieces. i had given the wait interval of 30 seconds.
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the IBM/Websphere forum...
 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
MQ 2033 is technically not related to the message size.
This is what you can do:
Increase the wait time to 60 sec or more and see at which level you don't get the 2033 (timeout) exception.
Just to try it out you can let your server program send you the big xml message and do a get inhibit on your mq queue to see if it at all the xml message lands in the queue by checking the queue depth in mq explorer.
One other thing that comes to my mind is regarding the pattern you are using i.e. it is request/reply or publish/subscribe. I believe you are using request/reply so if you are making a call on your backend and waiting for the xml response to come then I think the back end is taking a lot of time to build the xml message and ultimately sending it back to the queue so increasing the wait time will surely solve the problem (you may also want to check the backend system performance and get the optimum wait time value).
Regards,
Ashish
 
rohit nabh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI Ashish,
I had allready inc. the wait time then also i am getting the same problem.
I am not getting why program is working for small data and not for big.
As u said we r using response/reply format.
this is code where i am reteriving the message and getting error : ----
try {
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.options = MQC.MQGMO_WAIT;
gmo.waitInterval = Integer.parseInt("30000");
int counter = 0;
MQMessage loobRtrvdMsg = null;
while (true) {
loobRtrvdMsg = new MQMessage();
loobRtrvdMsg.correlationId = correlationID;
puobQueue.get(loobRtrvdMsg,gmo);
String losgStrMsg = loobRtrvdMsg.readLine();
sbf.append(losgStrMsg);
counter++;
}
}
catch (MQException mqee) {
out.println("
Mq exception"+mqee.reasonCode);
}
the same code i am writting in the the JSP and getting no error for big XML also but the same when i am writting in side a class i am getting error for
big data
regards,
Rohit
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic