On 7/6/11 4:17 AM, ipas wrote:
> Hi, Thanks for reply.
> The thing is i can not find full stack trace. It is not showing me on
> eclipse and i tried to find it on apache tomcat server logs too but without
> luck. 
>
> In Eclipse it is giving only one line of exception which i wrote above.

Your code that does the login must be swallowing the
AuthenticationException.  In your code that does the authentication,
try catching the AuthenticationException and dumping its stack trace
(like the quickstart example):

try {
    currentUser.login( token );
    //if no exception, that's it, we're done!
} catch ( UnknownAccountException uae ) {
    //username wasn't in the system, show them an error message?
} catch ( IncorrectCredentialsException ice ) {
    //password didn't match, try again?
} catch ( LockedAccountException lae ) {
    //account for that username is locked - can't login.  Show them a message?
} 
    ... more types exceptions to check if you want ...
} catch ( AuthenticationException ae ) {
    ae.printStackTrace();
}

Phil


> Thank you.
>
>
> --
> View this message in context: 
> http://shiro-user.582556.n2.nabble.com/Shiro-Jdbc-Realm-Mysql-tp6519616p6553999.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to