go to  ForumEasy.com   
LdapPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  javax.naming.OperationNotSupportedException
 
Subject: javax.naming.OperationNotSupportedException
Author: SteveHB
In response to: javax.naming.ContextNotEmptyException
Posted on: 04/04/2007 05:54:38 PM

If the server doesn't support the TreeDeleteControl and you send the control out anyway, you will get somethings like:

SunOne
javax.naming.OperationNotSupportedException: [LDAP: error code 12 - Unavailable Critical Extension]; remaining name 'ou=Sales,cn=Users,DC=mydomain,DC=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3065)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2758)
at com.sun.jndi.ldap.LdapCtx.c_destroySubcontext(LdapCtx.java:830)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_destroySubcontext(ComponentContext.java:653)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.destroySubcontext(PartialCompositeContext.java:336)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.destroySubcontext(PartialCompositeContext.java:326)
at javax.naming.InitialContext.destroySubcontext(InitialContext.java:415)



 

> On 04/04/2007 05:49:50 PM SteveHB wrote:


If you try to delete a subtree without TreeDeleteControl, most likely you will get somethings like:

AD
javax.naming.ContextNotEmptyException: [LDAP: error code 66 - 0000208C: UpdErr: DSID-030A0491, problem 6003 (CANT_ON_NON_LEAF), data 0
]; remaining name 'ou=Sales,cn=Users,DC=mydomain,DC=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3040)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2758)
at com.sun.jndi.ldap.LdapCtx.c_destroySubcontext(LdapCtx.java:830)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_destroySubcontext(ComponentContext.java:653)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.destroySubcontext(PartialCompositeContext.java:336)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.destroySubcontext(PartialCompositeContext.java:326)
at javax.naming.InitialContext.destroySubcontext(InitialContext.java:415)


SunOne
javax.naming.ContextNotEmptyException: [LDAP: error code 66 - Not Allowed On Non-leaf]; remaining name 'ou=Sales,cn=Users,DC=mydomain,DC=com'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3040)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2951)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2758)
at com.sun.jndi.ldap.LdapCtx.c_destroySubcontext(LdapCtx.java:830)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_destroySubcontext(ComponentContext.java:653)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.destroySubcontext(PartialCompositeContext.java:336)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.destroySubcontext(PartialCompositeContext.java:326)
at javax.naming.InitialContext.destroySubcontext(InitialContext.java:415)





References:

 


 
Powered by ForumEasy © 2002-2012, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.