| | |
| | | /* Step 2: check that the provided parameters are compatible. |
| | | */ |
| | | MessageBuilder buf = new MessageBuilder(); |
| | | int v = args.validateGlobalOption(buf); |
| | | int v = args.validateGlobalOptions(buf); |
| | | if (v != DsFrameworkCliReturnCode.SUCCESSFUL_NOP.getReturnCode()) |
| | | { |
| | | throw new UserDataException(null, buf.toMessage()); |
| | |
| | | if (!isInteractive) |
| | | { |
| | | throw new UserDataException(null, |
| | | INFO_CLI_UNINSTALL_NOTHING_TO_BE_UNINSTALLED_NON_INTERACTIVE.get()); |
| | | ERR_CLI_UNINSTALL_NOTHING_TO_BE_UNINSTALLED_NON_INTERACTIVE.get()); |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | somethingSelected = false; |
| | | printLineBreak(); |
| | | printErrorMessage(INFO_CLI_UNINSTALL_NOTHING_TO_BE_UNINSTALLED.get()); |
| | | printErrorMessage(ERR_CLI_UNINSTALL_NOTHING_TO_BE_UNINSTALLED.get()); |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | LOG.log(Level.WARNING, |
| | | "Error retrieving a valid LDAP URL in conf file"); |
| | | printErrorMessage(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | printErrorMessage(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | if (usedUrl != null) |
| | | { |
| | |
| | | { |
| | | LOG.log(Level.WARNING, |
| | | "Error retrieving a valid LDAP URL in conf file"); |
| | | printErrorMessage(INFO_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | printErrorMessage(ERR_COULD_NOT_FIND_VALID_LDAPURL.get()); |
| | | } |
| | | ADSContext adsContext = new ADSContext(ctx); |
| | | TopologyCache cache = new TopologyCache(adsContext, |
| | |
| | | if (!stopProcessing && (exceptionMsgs.size() > 0)) |
| | | { |
| | | returnValue = confirm( |
| | | INFO_ERROR_READING_REGISTERED_SERVERS_CONFIRM_UPDATE_REMOTE.get( |
| | | ERR_READING_REGISTERED_SERVERS_CONFIRM_UPDATE_REMOTE.get( |
| | | Utils.getStringFromCollection(exceptionMsgs, |
| | | Constants.LINE_SEPARATOR))); |
| | | } |