[cas-dev] Spring LDAP devel note

Velpi velpi at industria.be
Fri Dec 15 11:35:38 EST 2006


Hi,

if you ever run into the error below, then check whether your 
"searchbase" is getting to the "search" function right. I lost quite 
some time on that so hopefully someone stumbles onto this message the 
next time...


ERROR java.lang.NullPointerException - _some_class_
java.lang.NullPointerException
	at javax.naming.InitialContext.getURLScheme(InitialContext.java:228)
	at 
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:277)
	at 
javax.naming.directory.InitialDirContext.getURLOrDefaultInitDirCtx(InitialDirContext.java:87)
	at 
javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
	at 
org.springframework.ldap.LdapTemplate$2.executeSearch(LdapTemplate.java:184)
	at org.springframework.ldap.LdapTemplate.search(LdapTemplate.java:215)
	at org.springframework.ldap.LdapTemplate.search(LdapTemplate.java:188)
	at org.springframework.ldap.LdapTemplate.search(LdapTemplate.java:454)
...


-- Velpi


More information about the cas-dev mailing list