cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
940
Views
0
Helpful
1
Replies

Ldap Communication Errror at initialdircontext

Hi,

Can anyone help me with this problem? i have been struggling with it for days.

Iam getting this error

javax.naming.CommunicationException: Request: 1 cancelled

at com.sun.jndi.ldap.LdapRequest.getReplyBer(LdapRequest.java:60)

at com.sun.jndi.ldap.Connection.readReply(Connection.java:405)

This error comes up when i query to ldapserver.

Error is at DirContext ctx = new InitialDirContext(env);

Any suggestions wud be appreciated.

Thanks

1 Reply 1

Hi,

I found the solution to this myself after 2 days of googling. All i had to do was

close ctx, ie ctx.close(). Thus each time a lapd request is made connection will opened and closed. Thus freeing the memory.

Thanks