• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue in running standalone Junit Class

 
Vikram Gosain
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my standalone Junit class the code that I have written is


And I am getting the exception..



Could anyone please help me fixing this?
 
Tomek Kaczanowski
author
Ranch Hand
Posts: 40
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

the bug does not seem to be related to JUnit. When googling for the error you got, I find a lot of resources all pointing out to the fact that the LDAP server does not approve anonymous connections. This is most probably the source of your problems. I can't help you with LDAP, but google has answers.

To make it a little bit easier, I would suggest to create a simple "main" method and put the LDAP connection code there, and work on it as long as I do not get the connectivity right. After this I would move the working code to setUp method.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34973
378
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anand Bhatt,
Your post was moved to a new topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic