Ldap Ldapexception Error
Contents |
+--java.lang.Exception | +--netscape.ldap.LDAPException Direct Known Subclasses: LDAPInterruptedException, LDAPReferralException public class LDAPExceptionextends java.lang.Exceptionimplements java.io.Serializable Indicates that an error has occurred. An LDAPException can netscape.ldap.ldapexception error result (32) result from physical problems (such as network errors) as well
Ldap Error Codes
as problems with LDAP operations (for example, if the LDAP add operation fails because of
Active Directory Ldap Error Codes
duplicate entry). Most errors that occur throw this type of exception. In order to determine the cause of the error, you can call the getLDAPResultCode()
Netscape.ldap.ldapexception Error Result (32) No Such Object
method to get the specific result code and compare this code against the result codes defined as fields in this class. (For example, if the result code matches the value of the field LDAPException.TIME_LIMIT_EXCEEDED, the time limit passed before the search operation could be completed.) This exception includes methods ldap error code 19 - constraint violation for getting an error message that corresponds to the LDAP result code (for example, "Timelimit exceeded" for LDAPException.TIME_LIMIT_EXCEEDED). These error messages are specified in the following files: netscape/ldap/errors/ErrorCodes_locale_string.props where locale_string is the name of the locale that includes the language and country, but not the variant. For example: netscape/ldap/errors/ErrorCodes_en_US.props The LDAP Java classes get this locale name by calling the java.util.Locale.toString method for the specified locale and ignoring the variant. If no locale is specified, the LDAP Java classes use the java.util.Locale.getDefault method to get the locale of the local host system. In order to get error messages for different locales, you need to provide files containing the error messages for those locales. The files should be located in the netscape/ldap/errors directory and should use the naming convention specified above. The following is a list of LDAP result codes: Result Code Defined Value ====== ============= 0 SUCCESS
java.lang.Throwable java.lang.Exception com.novell.ldap.LDAPException All Implemented Interfaces: java.io.Serializable Direct Known Subclasses: LDAPLocalException, LDAPReferralException public class LDAPExceptionextends java.lang.Exception Thrown to indicate that an LDAP exception has netscape.ldap.ldapexception failed to connect to server (91) occurred. This is a general exception which includes a message ldap error code 32 and an LDAP result code. An LDAPException can result from physical problems (such as network ldap error code 81 errors) as well as problems with LDAP operations detected by the server. For example, if an LDAP add operation fails because of a duplicate entry, the https://docs.oracle.com/cd/E19957-01/816-5618-10/netscape/ldap/LDAPException.html server returns a result code. Five possible sources of information are available from LDAPException: Result Code: The getResultCode method returns a result code, which can be compared against standard LDAP result codes. Message: The getMessage method returns a localized message from the message resource that corresponds to the result code. LDAP server https://www.novell.com/documentation/developer/jldap/jldapenu/api/com/novell/ldap/LDAPException.html Message: The getLDAPErrorMessage method returns any error message received from the LDAP server. Matched DN: The getMatchedDN method retrieves the part of a submitted distinguished name which could be matched by the server Root Cause: The getCause method returns the a nested exception that was the original cause for the error. The toString method returns a string containing all the above sources of information, if they have a value. Exceptions generated by the API, i.e. that are not a result of a server response, can be identified as instanceof LDAPLocalException The following table lists the standard LDAP result codes. See RFC2251 for a discussion of the meanings of the result codes. The corresponding ASN.1 definition from RFC2251 is provided in parentheses. Value Result Code 0SUCCESS (success) 1OPERATIONS_ERROR (operationsError) 2PROTOCOL_ERROR (protocolError) 3TIME_LIMIT_EXCEEDED (timeLimitExceeded) 4SIZE_LIMIT_EXCEEDED (sizeLimitExceeded) 5COMPARE_FALSE (compareFalse) 6COMPARE_TRUE (compareTrue) 7AUTH_METHOD_NOT_SUPPORTED (authMethodNotSupported) 8STRONG_AUTH_REQUIRED (strongAuthRequired) 10REFERRAL (referral) 11ADMIN_LIMIT_EXCEEDED (adminLimitExceeded) 12UNAVAILABLE_CRITICAL_EXTENSION (unavailableCriticalExtension) 13CONFIDENTIALITY_REQUIRED (confidentialityRequired) 14SASL_BIND_IN_PROGRESS (saslBindInProgress) 16NO_SUCH_ATTRIBUTE