This discussion is archived
1 Reply Latest reply: Jul 29, 2013 2:53 AM by EJP RSS

OperationNotSupportedException in Naming Listener

ananddrox Newbie
Currently Being Moderated

I tried to connect to active directory and set up a listener.


EventContext src = (EventContext)(new InitialContext(env).lookup("cn=Users,dc=mydomain,dc=com"));

NamingListener listener = new SampleNCListener("nc1");

src.addNamingListener("", EventContext.ONELEVEL_SCOPE,listener);



I obtained the code of SampleNCListener from Event Listeners .

It throws an error saying :


nc1>>> SampleNCListener got an exception

javax.naming.OperationNotSupportedException: [LDAP: error code 12 - 00000057: Ld

apErr: DSID-0C090747, comment: Error processing control, data 0, v1771 ]; remain

ing name ''

        at com.sun.jndi.ldap.LdapCtx.mapErrorCode(

        at com.sun.jndi.ldap.LdapCtx.processReturnCode(

        at com.sun.jndi.ldap.LdapCtx.processReturnCode(

        at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(LdapNamingEnumer

        at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(LdapNamingEnumera

        at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(LdapNamingEnumeration






Please help me on how to solve this issue.


D. Anand Kumar


  • Correct Answers - 10 points
  • Helpful Answers - 5 points