| | |
| | | Message failedMsg = getThrowableMsg( |
| | | INFO_ERROR_CREATING_TEMP_FILE.get(), ioe); |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.FILE_SYSTEM_ACCESS_ERROR, |
| | | ReturnCode.FILE_SYSTEM_ACCESS_ERROR, |
| | | failedMsg, ioe); |
| | | } |
| | | } |
| | |
| | | if (result != 0) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | INFO_ERROR_CONFIGURING.get(), null); |
| | | } |
| | | } catch (Throwable t) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | getThrowableMsg(INFO_ERROR_CONFIGURING.get(), t), t); |
| | | } |
| | | |
| | |
| | | catch (Throwable t) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | getThrowableMsg(INFO_ERROR_CONFIGURING_CERTIFICATE.get(), |
| | | t), t); |
| | | } |
| | |
| | | if (result != 0) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | INFO_ERROR_CREATING_BASE_ENTRY.get(), null); |
| | | } |
| | | } catch (Throwable t) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | getThrowableMsg(INFO_ERROR_CREATING_BASE_ENTRY.get(), t), t); |
| | | } |
| | | finally |
| | |
| | | if (result != 0) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | INFO_ERROR_IMPORTING_LDIF.get(), null); |
| | | } |
| | | } catch (Throwable t) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | getThrowableMsg(INFO_ERROR_IMPORTING_LDIF.get(), t), t); |
| | | } |
| | | } |
| | |
| | | if (result != 0) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | INFO_ERROR_IMPORT_LDIF_TOOL_RETURN_CODE.get( |
| | | Integer.toString(result)), null); |
| | | } |
| | | } catch (Throwable t) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | getThrowableMsg(INFO_ERROR_IMPORT_AUTOMATICALLY_GENERATED.get( |
| | | listToString(argList, " "), t.getLocalizedMessage()), t), t); |
| | | } |
| | |
| | | Message failedMsg = getThrowableMsg( |
| | | INFO_ERROR_CONNECTING_TO_LOCAL.get(), ne); |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, failedMsg, ne); |
| | | ReturnCode.CONFIGURATION_ERROR, failedMsg, ne); |
| | | } |
| | | finally |
| | | { |
| | |
| | | setCurrentProgressStep(InstallProgressStep.CANCELING); |
| | | notifyListeners(null); |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CANCELLED, |
| | | ReturnCode.CANCELLED, |
| | | INFO_UPGRADE_CANCELED.get(), null); |
| | | } |
| | | } |
| | |
| | | { |
| | | } |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, failedMsg, t); |
| | | ReturnCode.CONFIGURATION_ERROR, failedMsg, t); |
| | | } |
| | | |
| | | Set<SuffixDescriptor> suffixes = |
| | |
| | | catch (NamingException ne) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | INFO_CANNOT_CONNECT_TO_REMOTE_GENERIC.get( |
| | | server.getHostPort(true), |
| | | ne.getLocalizedMessage()), ne); |
| | |
| | | catch (NamingException ne) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | INFO_CANNOT_CONNECT_TO_REMOTE_GENERIC.get( |
| | | server.getHostPort(true), |
| | | ne.getLocalizedMessage()), ne); |
| | |
| | | if (nTries == 1) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.APPLICATION_ERROR, |
| | | ReturnCode.APPLICATION_ERROR, |
| | | pnfe.getMessageObject(), null); |
| | | } |
| | | try |
| | |
| | | if (remoteServer) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | INFO_CANNOT_CONNECT_TO_REMOTE_PERMISSIONS.get( |
| | | getHostDisplay(auth)), ne); |
| | | } |
| | |
| | | Message failedMsg = getThrowableMsg( |
| | | INFO_ERROR_CONNECTING_TO_LOCAL.get(), ne); |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | failedMsg, ne); |
| | | } |
| | | } |
| | |
| | | if (remoteServer) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | INFO_CANNOT_CONNECT_TO_REMOTE_GENERIC.get( |
| | | getHostDisplay(auth), ne.getLocalizedMessage()), ne); |
| | | } |
| | | else |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | getThrowableMsg(INFO_ERROR_CONNECTING_TO_LOCAL.get(), ne), ne); |
| | | } |
| | | } |
| | | catch (ADSContextException ace) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.CONFIGURATION_ERROR, |
| | | ReturnCode.CONFIGURATION_ERROR, |
| | | ((remoteServer) |
| | | ? INFO_REMOTE_ADS_EXCEPTION.get( |
| | | getHostDisplay(auth), ace.getReason()) |
| | |
| | | { |
| | | LOG.log(Level.SEVERE, "Error creating task "+attrs, ne); |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.APPLICATION_ERROR, |
| | | ReturnCode.APPLICATION_ERROR, |
| | | getThrowableMsg(INFO_ERROR_LAUNCHING_INITIALIZATION.get( |
| | | sourceServerDisplay |
| | | ), ne), ne); |
| | |
| | | helper.isStoppedByError(state)) |
| | | { |
| | | ApplicationException ae = new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.APPLICATION_ERROR, errorMsg, |
| | | ReturnCode.APPLICATION_ERROR, errorMsg, |
| | | null); |
| | | if ((lastLogMsg == null) || |
| | | helper.isPeersNotFoundError(lastLogMsg)) |
| | |
| | | catch (NamingException ne) |
| | | { |
| | | throw new ApplicationException( |
| | | ApplicationReturnCode.ReturnCode.APPLICATION_ERROR, |
| | | ReturnCode.APPLICATION_ERROR, |
| | | getThrowableMsg(INFO_ERROR_POOLING_INITIALIZATION.get( |
| | | sourceServerDisplay), |
| | | ne), ne); |