| | |
| | | try { |
| | | new InstallerHelper().disableWindowsService(); |
| | | } catch (ApplicationException ae) { |
| | | logger.debug(LocalizableMessage.raw("Error disabling Windows service", ae)); |
| | | logger.info(LocalizableMessage.raw("Error disabling Windows service", ae)); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | nextPassword = "-w".equals(s); |
| | | } |
| | | logger.debug(LocalizableMessage.raw("configure DS cmd: "+cmd)); |
| | | logger.info(LocalizableMessage.raw("configure DS cmd: "+cmd)); |
| | | final InstallerHelper helper = new InstallerHelper(); |
| | | setNotifyListeners(false); |
| | | InvokeThread thread = new InvokeThread() |
| | |
| | | { |
| | | try |
| | | { |
| | | logger.debug(LocalizableMessage.raw("Calling initializeSuffix with base DN: "+dn)); |
| | | logger.debug(LocalizableMessage.raw("Try number: "+(6 - nTries))); |
| | | logger.debug(LocalizableMessage.raw("replicationId of source replica: "+ |
| | | logger.info(LocalizableMessage.raw("Calling initializeSuffix with base DN: "+dn)); |
| | | logger.info(LocalizableMessage.raw("Try number: "+(6 - nTries))); |
| | | logger.info(LocalizableMessage.raw("replicationId of source replica: "+ |
| | | replicationId)); |
| | | initializeSuffix(ctx, replicationId, dn, !isADS && !isSchema, |
| | | hostPort); |
| | |
| | | } |
| | | catch (PeerNotFoundException pnfe) |
| | | { |
| | | logger.debug(LocalizableMessage.raw("Peer could not be found")); |
| | | logger.info(LocalizableMessage.raw("Peer could not be found")); |
| | | if (nTries == 1) |
| | | { |
| | | throw new ApplicationException( |
| | |
| | | { |
| | | cause = e.getTrustManager().getLastRefusedCause(); |
| | | } |
| | | logger.debug(LocalizableMessage.raw("Certificate exception cause: "+cause)); |
| | | logger.info(LocalizableMessage.raw("Certificate exception cause: "+cause)); |
| | | if (cause == ApplicationTrustManager.Cause.NOT_TRUSTED) |
| | | { |
| | | excType = UserDataCertificateException.Type.NOT_TRUSTED; |
| | |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | logger.debug(LocalizableMessage.raw("Error connecting to remote server.", t)); |
| | | logger.info(LocalizableMessage.raw("Error connecting to remote server.", t)); |
| | | if (isCertificateException(t)) |
| | | { |
| | | UserDataCertificateException.Type excType; |
| | | ApplicationTrustManager.Cause cause = |
| | | trustManager.getLastRefusedCause(); |
| | | logger.debug(LocalizableMessage.raw("Certificate exception cause: "+cause)); |
| | | logger.info(LocalizableMessage.raw("Certificate exception cause: "+cause)); |
| | | if (cause == ApplicationTrustManager.Cause.NOT_TRUSTED) |
| | | { |
| | | excType = UserDataCertificateException.Type.NOT_TRUSTED; |
| | |
| | | { |
| | | DirContext dirCtx = ctx.createSubcontext(dn, attrs); |
| | | taskCreated = true; |
| | | logger.debug(LocalizableMessage.raw("created task entry: "+attrs)); |
| | | logger.info(LocalizableMessage.raw("created task entry: "+attrs)); |
| | | dirCtx.close(); |
| | | } |
| | | catch (NameAlreadyBoundException x) |
| | |
| | | if (((currentTime - minRefreshPeriod) > lastTimeMsgLogged)) |
| | | { |
| | | lastTimeMsgLogged = currentTime; |
| | | logger.debug(LocalizableMessage.raw("Progress msg: "+msg)); |
| | | logger.info(LocalizableMessage.raw("Progress msg: "+msg)); |
| | | } |
| | | if (displayProgress) |
| | | { |
| | |
| | | { |
| | | if (!logMsg.equals(lastLogMsg)) |
| | | { |
| | | logger.debug(LocalizableMessage.raw(logMsg)); |
| | | logger.info(LocalizableMessage.raw(logMsg)); |
| | | lastLogMsg = logMsg; |
| | | } |
| | | } |
| | |
| | | { |
| | | isOver = true; |
| | | LocalizableMessage errorMsg; |
| | | logger.debug(LocalizableMessage.raw("Last task entry: "+sr)); |
| | | logger.info(LocalizableMessage.raw("Last task entry: "+sr)); |
| | | if (displayProgress && (msg != null) && !msg.equals(lastDisplayedMsg)) |
| | | { |
| | | notifyListeners(getFormattedProgress(msg)); |
| | |
| | | } |
| | | else if (displayProgress) |
| | | { |
| | | logger.debug(LocalizableMessage.raw("Initialization completed successfully.")); |
| | | logger.info(LocalizableMessage.raw("Initialization completed successfully.")); |
| | | notifyListeners(getFormattedProgress( |
| | | INFO_SUFFIX_INITIALIZED_SUCCESSFULLY.get())); |
| | | notifyListeners(getLineBreak()); |
| | |
| | | catch (NameNotFoundException x) |
| | | { |
| | | isOver = true; |
| | | logger.debug(LocalizableMessage.raw("Initialization entry not found.")); |
| | | logger.info(LocalizableMessage.raw("Initialization entry not found.")); |
| | | if (displayProgress) |
| | | { |
| | | notifyListeners(getFormattedProgress( |
| | |
| | | { |
| | | DirContext dirCtx = ctx.createSubcontext(dn, attrs); |
| | | taskCreated = true; |
| | | logger.debug(LocalizableMessage.raw("created task entry: "+attrs)); |
| | | logger.info(LocalizableMessage.raw("created task entry: "+attrs)); |
| | | dirCtx.close(); |
| | | } |
| | | catch (NameAlreadyBoundException x) |
| | |
| | | { |
| | | if (!logMsg.equals(lastLogMsg)) |
| | | { |
| | | logger.debug(LocalizableMessage.raw(logMsg)); |
| | | logger.info(LocalizableMessage.raw(logMsg)); |
| | | lastLogMsg = logMsg; |
| | | } |
| | | } |