• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

An unusual error

 
S.R.K.Vivek Raju
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I am using hibernate3 as an ORM. I have two forms, one is the register form where the user registers by entering the info, this data is inserted into the database using the session.save(object) and it works great, the data gets properly inserted.

Now i have another form called the loigin form where the registered user types his userid and password for authentication and then logs in.

The problem is when i register one user and then login then it gives access and works fine, but when i register a second user it does not give access even though the data gets persisted into the database.

It gives the fillowing error on the jboss console

19:07:18,375 INFO [STDOUT] Executing HQL from UserDataBO
19:07:18,375 INFO [STDOUT] Hibernate: select userdatabo0_.id as id, userdatabo0_.login
as login48_, userdatabo0_.password as password48_, userdatabo0_.first_name as first_na
me48_, userdatabo0_.last_name as last_name48_, userdatabo0_.middle_initial as middle_i6
_48_, userdatabo0_.password_creation_datetime as password7_48_, userdatabo0_.registrati
on_datetime as registra8_48_, userdatabo0_.login_datetime as login_da9_48_, userdatabo0
_.logout_datetime as logout_10_48_, userdatabo0_.machine_name as machine11_48_, userdat
abo0_.email_address as email_a12_48_, userdatabo0_.timezone as timezone48_, userdatabo0
_.ack_terms as ack_terms48_, userdatabo0_.status as status48_ from user userdatabo0_
<b>19:07:18,375 INFO [STDOUT] Exception String index out of range: 0</b>

****************************************************************************
After the second user is register the userid and password of the first user also does not login.

I am really not understanding the problem.

Please let me know if any one has exprienced such a situation.

Thanks a lot

With Regards
S.R.K.Vivek Raju
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IMO it has to do with the way you validate your users, but without seeing it its dificult to say;

how do interpret this:
INFO [STDOUT] Exception String index out of range: 0
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic