Open chrko opened 3 years ago
Thanks for reporting this. I agree that it's likely a race condition that may occur if a connection has become invalidated. I have just committed a change that will hopefully address this by avoiding the NPE and hopefully at least providing a better error message.
Hi,
while using a single LDAPConnection a NullPointerException occurred inside the framework. Unfortunately we currently don't print the full stack trace:
As we tried to tackle down this exception, it seems to occur inside the
LDAPConnectionInternals
as race condition between closing the connection and settingoutputStream = null
and still trying to send messages. We are currently using the asynchronous operation mode as default. Closing the connection must have happened due to external circumstances, probably network errors which occurred this day.We haven't observed this twice and couldn't reproduce it.