WLST properties (domainName,username,serverName,version) ,loaded using "loadProperties" command,Loses their values After Running NmConnect (Doc ID 1468027.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Symptoms

 

In a WLST Python Script while the Propeties are loaded using loadProperties() command some of the properties e.g "username" and "domainName" does not stay throughout the entire WLST Session whereas other stays intact throughout the WLST Session. Howevere if the Name of the property is changed in the property file e.g.
  
  username       ------    To   -------   Username
  domainName    ------    To   -------    DomainName
  
then they Behave similar to other properties and persists throughout the WLST Session. Persistence had been tested using print command in the WLST/Python Script.  

Below is the simple script which can be used to demonstrate the scenario:-

The Property Values then have to be loaded again if you want to use them in further commands. However if the Property Names are different than username or domainName there are no issues they are never lost throughout the WLST Session.

   

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms