My Oracle Support Banner

How to Disable the Exception Stack Trace in a WebLogic Scripting Tool (WLST) Python Script (Doc ID 1316108.1)

Last updated on FEBRUARY 07, 2019

Applies to:

Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.


This document describes how to disable an exception stack trace from writing out to the screen from a WebLogic Scripting Tool (WLST) Python script file. A small demonstration is provided to show how the parameter works.

A Python script file, with try/catch code implemented, will display a stack trace to the screen when the script is executed with WLST.

Here is an example. The script file is using an invalid password:

   print "Successfully connected"
  print "Error while trying to connect!!!"

Execute the script file as follows, and observe the output shown:

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Connecting to t3://<IP>:<PORT> with userid <USERID> ...
This Exception occurred at Fri Apr 22 05:34:13 IST 2011.
javax.naming.AuthenticationException [Root exception is java.lang.SecurityException: User: <USERID>, failed to be authenticated.]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(
at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(
at Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(
Error while trying to connect!!!

Exiting WebLogic Scripting Tool.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.