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 » How to inhibit System.out logs on get failure

Post new topic  Reply to topic
 How to inhibit System.out logs on get failure « View previous topic :: View next topic » 
Author Message
martin
PostPosted: Fri Aug 10, 2001 6:49 am    Post subject: Reply with quote

Novice

Joined: 09 Aug 2001
Posts: 17
Location: Charlotte, NC

I have a MQSeries 5.2 NT Java application where the user depends on the system out screen for various purposes. The program also contains a loop that is doing a get on a queue. It is required to be a NO_WAIT get
to facilitate thread interrupts and has only a slight pause between gets.

As you can imagine, the System out screen becomes unusable due to the volume of messages like:
MQJE001: Completion Code 2, Reason 2033
Catching MQExceptions has not effect on the logging on this message.

Is there a way to stop, filter, or redirect this unwanted System.out output? Alternatively, is there a way to configure the unsatisfied get to not get a message?

thanks for any ideas,
Back to top
View user's profile Send private message
kolban
PostPosted: Fri Aug 10, 2001 6:59 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

The public static field of MQException called "log" specifies where MQSeries logged messages are delivered. By default, this is System.out.err.

If you set this to null, no logging will occur:

for example:

MQException.log = null;
Back to top
View user's profile Send private message
unichigid
PostPosted: Fri Jul 08, 2005 10:57 am    Post subject: Need to know, where did u set that MQException.log = null. Reply with quote

Novice

Joined: 22 Mar 2005
Posts: 17

[quote="martin"]I have a MQSeries 5.2 NT Java application where the user depends on the system out screen for various purposes. The program also contains a loop that is doing a get on a queue. It is required to be a NO_WAIT get
to facilitate thread interrupts and has only a slight pause between gets.

As you can imagine, the System out screen becomes unusable due to the volume of messages like:
MQJE001: Completion Code 2, Reason 2033
Catching MQExceptions has not effect on the logging on this message.

Is there a way to stop, filter, or redirect this unwanted System.out output? Alternatively, is there a way to configure the unsatisfied get to not get a message?

thanks for any ideas,[/quote]













Can you please let me know where did you set that MQException.log = null.

Thanks,
Ravi
Back to top
View user's profile Send private message
unichigid
PostPosted: Fri Jul 08, 2005 11:01 am    Post subject: Hey ! can you let me know, how did you solve this problem. Reply with quote

Novice

Joined: 22 Mar 2005
Posts: 17

Hi,

Can you kindly let me know, how did you solve this problem, coz even I am getting the same unwanted messages in my eclipse console.

Also, I am guessing it shouldn't cause any problem to my working components of WBI. Is that right ? If not what is the best solution to prevent any further problems.

Ravi
479-685-5983
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Jul 08, 2005 12:23 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
Can you please let me know where did you set that MQException.log = null.

That should be inside the program.
Do you have access to the source code of the application which is spitting out the errors in the STDOUT ?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fergus
PostPosted: Thu Apr 20, 2006 3:28 am    Post subject: Reply with quote

Newbie

Joined: 20 Apr 2006
Posts: 3

You can also disable the " MQJE001: Completion Code 2, Reason 2033" trace by excluding the reason code using the method
Code:
MQException.logExclude()
as follows:

Code:
MQException.logExclude(MQException.MQRC_NO_MSG_AVAILABLE);
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 » How to inhibit System.out logs on get failure
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.