Hai All,

 I am getting an "NullPointerException" from JLoginUser action class.
Actually what I am doing is : first the system looking for the user in the OracleDB if
the user not found LoginUser action again make a call to LDAP in the catch block of 
"TurbineSecurityException "from LoginUser action and I am executing the statements 
from LoginUser action like :

user = new LDAPUserManager().retrieve(username,password) ;

            data.setUser(user);

            // Mark the user as being logged in.
            user.setHasLoggedIn(new Boolean(true));

            // Set the last_login date in the database.
            user.updateLastLogin();

            // This only happens if the user is valid; otherwise, we
            // will get a valueBound in the User object when we don't
            // want to because the username is not set yet.  Save the
            // User object into the session.
            data.save();

and after action return to the "JLoginUser" action class and from there  system 
entering to  :

if ( data.getUser().hasLoggedIn())
        {
            data.getUser() .setConfirmed("CONFIRMED");
            String confirmed = data.getUser().getConfirmed();
            Log.info(" ------- confirmed = "+confirmed);

HERE I AM GETTING THE VALUE NULL :

Do I forget somethink ? or even I am doing like this for security in "LDAPUserManager" 
class in the "User retrieve(String username) method ":

                                                ldapUser.setUserName(f);
                                    ldapUser.setConfirmed(User.CONFIRM_DATA );
                                    ldapUser.setHasLoggedIn(new Boolean(true));
                                    Log.info(" ------- LDAPUser  = "+ldapUser);
                                    ldapUser.setTemp("turbine.user", ldapUser);

still its same behaviour .
Please give some hints to over come this issue.

Note : my LDAP authentication and searching and all the operations are okai.

Greetings
Nishar.

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

Reply via email to