Package javax.naming

Examples of javax.naming.NotContextException


        } else if (null == ctx) {
            // jndi.1A=Cannot create initial context.
            throw new NoInitialContextException(Messages.getString("jndi.1A"))//$NON-NLS-1$
        } else {
            // jndi.1B=DirContext object is required.
            throw new NotContextException(Messages.getString("jndi.1B"))//$NON-NLS-1$
        }
    }
View Full Code Here


     * LdapContext.
     */
    private LdapContext getDefaultInitLdapContext() throws NamingException {
        if (!(super.defaultInitCtx instanceof LdapContext)) {
            // jndi.1D=Expected an LdapContext object.
            throw new NotContextException(Messages.getString("jndi.1D"))//$NON-NLS-1$
        }
        return (LdapContext) super.defaultInitCtx;
    }
View Full Code Here

            } finally {
                ((Context) obj).close();
            }
        }
        // jndi.80=Name specifies an object that is not a context: {0}
        throw new NotContextException(
                Messages.getString("jndi.80", name)); //$NON-NLS-1$
    }
View Full Code Here

            } finally {
                ((Context) obj).close();
            }
        }
        // jndi.80=Name specifies an object that is not a context: {0}
        throw new NotContextException(
                Messages.getString("jndi.80", name)); //$NON-NLS-1$
    }
View Full Code Here

        }
        if (pair.context instanceof Context) {
            ((Context) pair.context).destroySubcontext(pair.name);
        } else {
            // jndi.4E=found object is not a Context
            throw new NotContextException(Messages.getString("jndi.4E"))//$NON-NLS-1$
        }
    }
View Full Code Here

        }
        if (pair.context instanceof Context) {
            ((Context) pair.context).unbind(pair.name);
        } else {
            // jndi.4E=found object is not a Context
            throw new NotContextException(Messages.getString("jndi.4E"))//$NON-NLS-1$
        }
    }
View Full Code Here

        }
        if (pair.context instanceof Context) {
            ((Context) pair.context).bind(pair.name, arg1);
        } else {
            // jndi.4E=found object is not a Context
            throw new NotContextException(Messages.getString("jndi.4E"))//$NON-NLS-1$
        }
    }
View Full Code Here

        }
        if (pair.context instanceof Context) {
            ((Context) pair.context).rebind(pair.name, arg1);
        } else {
            // jndi.4E=found object is not a Context
            throw new NotContextException(Messages.getString("jndi.4E"))//$NON-NLS-1$
        }
    }
View Full Code Here

        }
        if (pair.context instanceof Context) {
            return ((Context) pair.context).createSubcontext(pair.name);
        }
        // jndi.4E=found object is not a Context
        throw new NotContextException(Messages.getString("jndi.4E")); //$NON-NLS-1$
    }
View Full Code Here

                    ((Context) pair2.context).getNameInNamespace()))
        {
            ((Context) pair1.context).rename(pair1.name, pair2.name);
        } else {
            // jndi.4F=found object is not a Context or target contexts are not equal
            throw new NotContextException(Messages.getString("jndi.4F")); //$NON-NLS-1$
        }
    }
View Full Code Here

TOP

Related Classes of javax.naming.NotContextException

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.