Examples of LDAPException


Examples of org.apache.directory.shared.ldap.model.exception.LdapException

                updateSchemas( objectClass );
            }
            catch ( ParseException pe )
            {
                throw new LdapException( pe );
            }
        }
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.exception.LdapException

                updateSchemas( syntaxChecker );
            }
            catch ( ParseException pe )
            {
                throw new LdapException( pe );
            }
        }
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.exception.LdapException

            response = future.get( timeout, timeUnit );
        }
        catch ( Exception e )
        {
            LdapException ldapException = new LdapException( LdapNetworkConnection.NO_RESPONSE_ERROR, e );

            // Send an abandon request
            if ( !future.isCancelled() )
            {
                future.cancel( true );
            }

            // close the cursor
            close( ldapException );

            throw ldapException;
        }

        if ( response == null )
        {
            future.cancel( true );

            throw new LdapException( LdapNetworkConnection.TIME_OUT_ERROR );
        }

        done = ( response instanceof SearchResultDone );

        if ( done )
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.exception.LdapException

        if ( isReferral() )
        {
            return ( ( SearchResultReference ) response ).getReferral();
        }

        throw new LdapException();
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.exception.LdapException

        if ( isEntry() )
        {
            return ( ( SearchResultEntry ) response ).getEntry();
        }

        throw new LdapException();
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.exception.LdapException

        if ( isEntry() )
        {
            return ( IntermediateResponse ) response;
        }

        throw new LdapException();
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.model.exception.LdapException

            {
                response = searchCursor.get();

                if ( response == null )
                {
                    throw new LdapException( LdapNetworkConnection.TIME_OUT_ERROR );
                }

                messageId = response.getMessageId();

                if ( response instanceof SearchResultEntry )
                {
                    return true;
                }
            }
            while ( !( response instanceof SearchResultDone ) );

            return false;
        }
        catch ( Exception e )
        {
            LdapException ldapException = new LdapException( LdapNetworkConnection.NO_RESPONSE_ERROR );
            ldapException.initCause( e );

            // close the cursor
            close( ldapException );

            throw ldapException;
View Full Code Here

Examples of org.jitterbit.integration.server.ldap.LdapException

            for (NumericOid oid : classOids) {
                structs.add(factory.getStructure(oid));
            }
            return structs.toArray(new ObjectClassStructure[structs.size()]);
        } catch (NamingException ex) {
            LdapException ldapEx = new LdapException("Failed to lookup class definitions.", ex);
            ldapEx.setConnectionInfo(connInfo);
            ServerDebugLog.LOG.throwing(getClass().getName(), "lookupStructures", ex);
            throw ldapEx;
        } finally {
            JndiUtils.close(ctx);
        }
View Full Code Here

Examples of org.nasutekds.server.types.LDAPException

    try
    {
      abandonId = Integer.parseInt(abandonIdStr);
    } catch (NumberFormatException nfe)
    {
      throw new LDAPException(LDAPResultCode.UNWILLING_TO_PERFORM,
                              Message.raw(nfe.getMessage()));
    }

    // Create and send an LDAP request to the server.
    ProtocolOp op = new AbandonRequestProtocolOp(abandonId);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.