-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.reflect.UndeclaredThrowableException with spring-ldap-core 2.3.2.RELEASE and above #660
Comments
Thanks for the report, @aplatt. The only commit I can see between those two releases that may be related is c0def85. I have not been able to reproduce this yet, though I imagine it has something to do with the above arrangement is propagating exceptions. Does the |
Yes, the cause is actually the exception that was thrown prior to spring-ldap-core 2.3.2.RELEASE. It appears that all the LDAP exceptions thrown prior to spring-ldap-core 2.3.2.RELEASE have been translated to java.lang.reflect.UndeclaredThrowableException exceptions with the cause being the original exception. Only when using StartTLS (see original code snippet above).
|
@aplatt Were you able to resolve this? With 3.3.2 the |
I stayed with 2.3.1.RELEASE which didn't have the problem. |
I am using the following version of Java:
When I make the following lookup using StartTLS with spring-ldap-core 2.3.1.RELEASE for a non existent dn:
I receive the following exception as expected:
org.springframework.ldap.NameNotFoundException
However, from spring-ldap-core 2.3.2.RELEASE and above, I received the following exception:
java.lang.reflect.UndeclaredThrowableException
This only happens when I attempt to use StartTLS ie. call setAuthenticationStrategy().
The text was updated successfully, but these errors were encountered: