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(LdapCtx.java:3147)

        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3033)

        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2840)

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

ation.java:147)

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

tion.java:216)

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

.java:189)

        at com.sun.jndi.ldap.NamingEventNotifier.run(NamingEventNotifier.java:13

4)

        at java.lang.Thread.run(Thread.java:722)

 

Please help me on how to solve this issue.

 

D. Anand Kumar

Legend

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