77
88from java .io import PrintStream
99from java .lang import System
10+ from java .lang import Throwable
1011
1112import com .oracle .cie .domain .script .jython .WLSTException as offlineWLSTException
1213import oracle .weblogic .deploy .util .StringUtils as StringUtils
@@ -112,8 +113,9 @@ def is_set(self, attribute):
112113 if not self .__check_online_connection ():
113114 return True
114115
116+ mbean_path = self .get_pwd ()
117+
115118 try :
116- mbean_path = self .get_pwd ()
117119 mbean = self .get_mbean_for_wlst_path (mbean_path )
118120 if 'isSet' not in dir (mbean ):
119121 return True
@@ -124,6 +126,12 @@ def is_set(self, attribute):
124126 self .__get_exception_mode (e ), _format_exception (e ), error = e )
125127 self .__logger .throwing (class_name = self .__class_name , method_name = _method_name , error = pwe )
126128 raise pwe
129+ except Throwable , e :
130+ # isSet() throws a Java error for /ResourceManagement attribute in 14.1.1.
131+ # in this case, return False to prevent further processing of this attribute.
132+ self .__logger .info ('WLSDPLY-00129' , attribute , mbean_path , e , class_name = self .__class_name ,
133+ method_name = _method_name )
134+ return False
127135
128136 self .__logger .finest ('WLSDPLY-00126' , attribute , class_name = self .__class_name , method_name = _method_name )
129137 return result
0 commit comments