This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullPointerException in LdapClient.usingSaslStreams()

 
Alexander Sinyushkin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I've been facing one strange problem with JNDI recently. We have some software written for communicating with a central LDAP server (Sun Directory Server). The soft was tested and then put into production.

But in the production environment the client started getting this error:


From the stack trace above you can see that it fails inside the JNDI:



So, there's only one possibility where this code can failed - conn is null here. Have anyone met something like that? How can that be worked around? So far we just catch the NPE, close the entire context and create a new one. Any ideas will be appreciated.

Alex.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic