Jython Error: AttributeError: instance of
WASX7017E: Exception received while running file "/var/apps/scripts/wasAdmin/manageApp/appReady.py"; exception information: com.ibm.bsf.BSFException: exception from Jython: Traceback (innermost last): File "<string>", line 30, in ? File "/var/apps/scripts/wasAdmin/manageApp/./manageApp.py", line 77, in __init__ AttributeError: instance of 'APPLICATION' has no attribute '_APPLICATION__cellName'
Basically I have a Jython class with name called APPLICATION as defined by a few lines in my Jython class:
####################################################################################################### # CLASS: This class provides the ability to Manage Applications. ####################################################################################################### class APPLICATION:
But, I have not declared a private member variable called __cellName
I had:
####################################################################################################### # CLASS: This class provides the ability to Manage Applications. ####################################################################################################### class APPLICATION: cellName = None appName = None serverName = None
I should have had
####################################################################################################### # CLASS: This class provides the ability to Manage Applications. ####################################################################################################### class APPLICATION: __cellName = None __appName = None __serverName = None