This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 8834
    
    7

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: 8834
    
    7

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: 125

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
 
Similar Threads
Issue in deploying WAR file on websphere using ant
Problem in migration from WAS4 to WAS5.1
WsAnt task -- Please specify a different location with -tracefile option.
AppDeploymentException: []
WAS 7 Please specify a different location with -tracefile option.