7
7
8
8
from java .io import PrintStream
9
9
from java .lang import System
10
+ from java .lang import Throwable
10
11
11
12
import com .oracle .cie .domain .script .jython .WLSTException as offlineWLSTException
12
13
import oracle .weblogic .deploy .util .StringUtils as StringUtils
@@ -112,8 +113,9 @@ def is_set(self, attribute):
112
113
if not self .__check_online_connection ():
113
114
return True
114
115
116
+ mbean_path = self .get_pwd ()
117
+
115
118
try :
116
- mbean_path = self .get_pwd ()
117
119
mbean = self .get_mbean_for_wlst_path (mbean_path )
118
120
if 'isSet' not in dir (mbean ):
119
121
return True
@@ -124,6 +126,12 @@ def is_set(self, attribute):
124
126
self .__get_exception_mode (e ), _format_exception (e ), error = e )
125
127
self .__logger .throwing (class_name = self .__class_name , method_name = _method_name , error = pwe )
126
128
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
127
135
128
136
self .__logger .finest ('WLSDPLY-00126' , attribute , class_name = self .__class_name , method_name = _method_name )
129
137
return result
0 commit comments