aspose file tools*
The moose likes Jython/Python and the fly likes Need to get rid of display of warning messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Jython/Python
Bookmark "Need to get rid of display of warning messages" Watch "Need to get rid of display of warning messages" New topic
Author

Need to get rid of display of warning messages

sharad jain
Greenhorn

Joined: May 04, 2013
Posts: 14
HI All

I am getting a warning message in my script which i do not want to be printed on the screen when my script is running.. please help.. Below is the snapshot


wsadmin>req_ser1=AdminControl.completeObjectName("name="+req_server1+",*")[0]
WASX7026W: String "name=dev_afx_01,*" corresponds to 3 different MBeans; returning first one.
wsadmin>
sharad jain
Greenhorn

Joined: May 04, 2013
Posts: 14
Guys, can anyone please hep me in this. How can we stop display of these warnings while script is running.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

Is this WLST? Perhaps you can figure out what logging API it is using and configure it to ignore the warning or divert the warning to a file.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
sharad jain
Greenhorn

Joined: May 04, 2013
Posts: 14
this is websphere wsadmin tool. Can you please let me know how to change that logging properties..
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

I haven't done it myself. A quick googling lead me to this promising article.
sharad jain
Greenhorn

Joined: May 04, 2013
Posts: 14
That seems to be WLST tool for weblogic here I am working on WebSphere and using wsadmin.. Need a help

--Sharad
ibrahim yener
Ranch Hand

Joined: Jul 22, 2013
Posts: 134

How about using try and except

try:

////////////////////

except (ValueError, SyntaxError):
pass


WinSystems my Google play account.
Ping Kong
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to get rid of display of warning messages