Package javax.naming

Examples of javax.naming.NameNotFoundException


            if (attrs != null)
                return attrs;
        }
       
        // Really not found
        throw new NameNotFoundException(
                sm.getString("resources.notFound", name));
    }
View Full Code Here


       
        if ( partition == null )
        {
            String msg = I18n.err( I18n.ERR_34, key );
            LOG.error( msg );
            throw new NameNotFoundException( msg );
        }
       
        String partitionSuffix = partition.getSuffixDn().getName();

        // Retrieve the namingContexts from the RootDSE : the partition
        // suffix must be present in those namingContexts
        EntryAttribute namingContexts = rootDSE.get( SchemaConstants.NAMING_CONTEXTS_AT );
       
        if ( namingContexts != null )
        {
            if ( namingContexts.contains( partitionSuffix ) )
            {
                namingContexts.remove( partitionSuffix );
            }
            else
            {
                String msg = I18n.err( I18n.ERR_35, key );
                LOG.error( msg );
                throw new NameNotFoundException( msg );
            }
        }

        // Update the partition tree
        partitionLookupTree.remove( partition );
View Full Code Here

        throws NamingException {

        File file = file(name);

        if (file == null)
            throw new NameNotFoundException(
                    sm.getString("resources.notFound", name));

        if (!file.delete())
            throw new NamingException
                (sm.getString("resources.unbindFailed", name));
View Full Code Here

        throws NamingException {

        File file = file(oldName);

        if (file == null)
            throw new NameNotFoundException
                (sm.getString("resources.notFound", oldName));

        File newFile = new File(base, newName);

        if (!file.renameTo(newFile)) {
View Full Code Here

        throws NamingException {

        File file = file(name);

        if (file == null)
            throw new NameNotFoundException
                (sm.getString("resources.notFound", name));

        return new NamingContextEnumeration(list(file).iterator());

    }
View Full Code Here

        {
            ne = new NoSuchAttributeException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapNoSuchObjectException )
        {
            ne = new NameNotFoundException( t.getLocalizedMessage() );
        }
        else if ( t instanceof LdapOperationErrorException )
        {
            ne = new NamingException( t.getLocalizedMessage() );
        }
View Full Code Here

                (sm.getString("namingContext.invalidName"));
       
        NamingEntry entry = (NamingEntry) bindings.get(name.get(0));
       
        if (entry == null) {
            throw new NameNotFoundException
                (sm.getString("namingContext.nameNotBound", name.get(0)));
        }
       
        if (name.size() > 1) {
            if (entry.type == NamingEntry.CONTEXT) {
View Full Code Here

        }
       
        NamingEntry entry = (NamingEntry) bindings.get(name.get(0));
       
        if (entry == null) {
            throw new NameNotFoundException
                (sm.getString("namingContext.nameNotBound", name.get(0)));
        }
       
        if (entry.type != NamingEntry.CONTEXT) {
            throw new NamingException
View Full Code Here

        }
       
        NamingEntry entry = (NamingEntry) bindings.get(name.get(0));
       
        if (entry == null) {
            throw new NameNotFoundException
                (sm.getString("namingContext.nameNotBound", name.get(0)));
        }
       
        if (entry.type != NamingEntry.CONTEXT) {
            throw new NamingException
View Full Code Here

                (sm.getString("namingContext.invalidName"));
       
        NamingEntry entry = (NamingEntry) bindings.get(name.get(0));
       
        if (entry == null) {
            throw new NameNotFoundException
                (sm.getString("namingContext.nameNotBound", name.get(0)));
        }
       
        if (name.size() > 1) {
            if (entry.type == NamingEntry.CONTEXT) {
View Full Code Here

TOP

Related Classes of javax.naming.NameNotFoundException

Copyright © 2018 www.massapicom. 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.