J. Wolfgang Kaltz schrieb:
[EMAIL PROTECTED] schrieb:



..........

Caused by: java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:393)
        at org.apache.lenya.ac.ldap.LDAPUser.bind(LDAPUser.java:346)
at org.apache.lenya.ac.ldap.LDAPUser.getDirectoryEntry(LDAPUser.java:426) at org.apache.lenya.ac.ldap.LDAPUser.existsUser(LDAPUser.java:137)
        ... 61 more



Well, we can certainly improve the error handling here !
LDAPUser.java:346 is the reading of the provider-url property, which is then put in the environment Hashtable. java.util.Hashtable throws a NullPointerException if you pass a null value.

So it looks like the property "provider-url" is null. In your previous mail you said

 > My LDAP.properties for my application ...

Is your file actually named like this ? It should be ldap.properties

If this is the cause of your problem, we check for file existence in the code prior to this.

I meant to say: "we should check for file existence", but we already do.
So it looks like you don't have a "provider-url" in your properties file.

I will add some sanity checks to the code for prettier error handling.

--
Wolfgang

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to