Page 1 of 2

Can not login to Admin page

Posted: Mon Sep 03, 2012 10:16 am
by nicelion
I'm very sorry to bother you but i have tried everything . I have successfully setup the admin site but i'm stuck at login page , it's always return Invalid username / password combination for all the admin account in BLC_ADMIN_USER . I turned on hibernate sql log to see if something wrong with the querry , here is the log:

Code: Select all

Hibernate: select adminuseri0_.ADMIN_USER_ID as ADMIN1_101_, adminuseri0_.ACTIVE_STATUS_FLAG as ACTIVE2_101_, adminuseri0_.EMAIL as EMAIL101_, adminuseri0_.LOGIN as LOGIN101_, adminuseri0_.NAME as NAME101_, adminuseri0_.PASSWORD as PASSWORD101_, adminuseri0_.PHONE_NUMBER as PHONE7_101_, adminuseri0_1_.SANDBOX_ID as SANDBOX1_102_ from BLC_ADMIN_USER adminuseri0_ left outer join BLC_ADMIN_USER_SANDBOX adminuseri0_1_ on adminuseri0_.ADMIN_USER_ID=adminuseri0_1_.ADMIN_USER_ID where adminuseri0_.LOGIN=?
[TRACE] 21:41:03 BasicBinder - binding parameter [1] as [VARCHAR] - admin
[TRACE] 21:41:03 BasicExtractor - found [1] as column [ADMIN1_101_]
[TRACE] 21:41:03 BasicExtractor - found [false] as column [ACTIVE2_101_]
[TRACE] 21:41:03 BasicExtractor - found [admin@yourdomain.com] as column [EMAIL101_]
[TRACE] 21:41:03 BasicExtractor - found [admin] as column [LOGIN101_]
[TRACE] 21:41:03 BasicExtractor - found [Administrator] as column [NAME101_]
[TRACE] 21:41:03 BasicExtractor - found [admin] as column [PASSWORD101_]
[TRACE] 21:41:03 BasicExtractor - found [null] as column [PHONE7_101_]
[TRACE] 21:41:03 BasicExtractor - found [null] as column [SANDBOX1_102_]


it's return false for ACTIVE2_101_ always , but i have tried to run the querry in mysql client , this is the querry i run :
select adminuseri0_.ADMIN_USER_ID as ADMIN1_101_, adminuseri0_.ACTIVE_STATUS_FLAG as ACTIVE2_101_, adminuseri0_.EMAIL as EMAIL101_, adminuseri0_.LOGIN as LOGIN101_, adminuseri0_.NAME as NAME101_, adminuseri0_.PASSWORD as PASSWORD101_, adminuseri0_.PHONE_NUMBER as PHONE7_101_, adminuseri0_1_.SANDBOX_ID as SANDBOX1_102_ from BLC_ADMIN_USER adminuseri0_ left outer join BLC_ADMIN_USER_SANDBOX adminuseri0_1_ on adminuseri0_.ADMIN_USER_ID=adminuseri0_1_.ADMIN_USER_ID where adminuseri0_.LOGIN='admin' and adminuseri0_.ACTIVE_STATUS_FLAG=true;
and it return 1 record .
I hope that you guys can help me . :oops:

Re: Can not login to Admin page

Posted: Mon Sep 03, 2012 9:55 pm
by nicelion
Can some one help me please, i'm desperate here

Re: Can not login to Admin page

Posted: Tue Sep 04, 2012 5:03 am
by luckyluck
Hi, I have the same problem. When I try to run demo admin site from jetty-demo ant I can't log in. I'm using admin/admin to log in. I would appreciate help.

Re: Can not login to Admin page

Posted: Tue Sep 04, 2012 5:35 am
by nicelion
Did you try to turn on hibernate log ? have you check the admin table ?

Re: Can not login to Admin page

Posted: Tue Sep 04, 2012 9:28 am
by aazzolini
You have to start up site before admin as site will create data for you.

Re: Can not login to Admin page

Posted: Tue Sep 04, 2012 11:19 am
by nicelion
but i did a sql querry against the admin table , the admin user is there :(

Re: Can not login to Admin page

Posted: Tue Sep 04, 2012 11:25 am
by aazzolini
Are you using M1-6?

Can you set a breakpoint on AdminUserDetailsServiceImpl.java line 45 and inspect the adminUser object? Specifically the activeStatusFlag?

How did you get the data into MySQL? Did you go through a process where you had to replace the "true" and "false" with "1" and "0" in the load sql files?

It seems like something strange is going on with the status.

Re: Can not login to Admin page

Posted: Tue Sep 04, 2012 12:01 pm
by nicelion
i just simply did a query with this where condition : where ACTIVE_STATUS_FLAG=true . and it's return the admin row , with ACTIVE_STATUS_FLAG=false it's return empty set . I'm using the M1-5 version

Re: Can not login to Admin page

Posted: Fri Sep 07, 2012 1:22 pm
by nicelion
I've tried update to RC version but still no chance , still can't login to admin

Re: Can not login to Admin page

Posted: Fri Sep 07, 2012 1:23 pm
by aazzolini
Can you follow the debug step I mentioned and report back?