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 » Handling of MQ-Exceptions in MQ-Java 7

Post new topic  Reply to topic
 Handling of MQ-Exceptions in MQ-Java 7 « View previous topic :: View next topic » 
Author Message
schmun
PostPosted: Tue Feb 28, 2012 5:59 am    Post subject: Handling of MQ-Exceptions in MQ-Java 7 Reply with quote

Novice

Joined: 03 Jul 2009
Posts: 24

Hi

I m using the MQ Java 7 libs for a shell program (AIX/Win) and have a problem with the exception handling.
In my understanding a MQ-Class should throw a exception down to my class so that i can handle/catch it in my code.

In some cases 2033/2195/... (atm only reproducible for 2033) the MQClass drops the MQException down _but_ there is also a print* of the exception on the error stream of the OS, which i cant catch within my code. The echo of the exception screwed up my prompt.

Can someone reproduce this behaviour and tell me what i am doing wrong? Otherwise i will open a ticket at IBM.

*Exception echo: MQJE001: Completion Code '2', Reason '2033'.

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Feb 28, 2012 6:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Hi -
There's some old discussion on this. It's something like setting the log on MQException to null.
Back to top
View user's profile Send private message
schmun
PostPosted: Tue Feb 28, 2012 6:22 am    Post subject: Reply with quote

Novice

Joined: 03 Jul 2009
Posts: 24

Hi jeff

Thank you (again) and google.

MQException.log = null;
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 » IBM MQ Java / JMS » Handling of MQ-Exceptions in MQ-Java 7
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.