Skip to content

Commit d883fa3

Browse files
Merge pull request #270 from oracle/jira-wdt-3-version-mismatch-error
Jira WDT-3 - Improve error messaging when domain read fails due to…
2 parents 6720c59 + 21eaa16 commit d883fa3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/src/main/python/discover.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,9 @@ def __connect_to_domain(model_context):
289289
try:
290290
wlst_helper.read_domain(model_context.get_domain_home())
291291
except PyWLSTException, wlst_ex:
292+
wls_version = WebLogicHelper(__logger).get_actual_weblogic_version()
292293
ex = exception_helper.create_discover_exception('WLSDPLY-06002', model_context.get_domain_home(),
293-
wlst_ex.getLocalizedMessage(), error=wlst_ex)
294+
wls_version, wlst_ex.getLocalizedMessage(), error=wlst_ex)
294295
__logger.throwing(ex, class_name=_class_name, method_name=_method_name)
295296
raise ex
296297

core/src/main/resources/oracle/weblogic/deploy/messages/wlsdeploy_rb.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ WLSDPLY-05404={0} encountered an error while printing model usage information: {
407407
WLSDPLY-06000=Internal error while discovering domain {0} from directory {1} for WebLogic version {2} in \
408408
WLST mode {3}: {4}
409409
WLSDPLY-06001=Connecting to the administration server at {0} as user {1} failed: {2}
410-
WLSDPLY-06002=Reading the domain at {0} failed: {1}
410+
WLSDPLY-06002=Reading the domain at {0} using Oracle home version {1} failed: {2}
411411
WLSDPLY-06004=Unexpected exception return from opening archive file at location {0}. Check the contents \
412412
of the log for more information
413413
WLSDPLY-06005=Unable to clear the existing archive file. Correct the problem before re-attempting discover : {0}

0 commit comments

Comments
 (0)