Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Can't proceed with j_spring_security_check

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With spring security, I am having problem with the login process.
Technologies: spring security with j_spring_security_check, spring mvc 3+, jboss 7.2.Final.

When click on the login button, it seems that the process stop at the first line of the function loadUserByUserName() funciton. Please refer to the attached code before.
Here is the debugging line jboss printed after clicking the login button:

"=======loadUserByUserName====="



Your help is very much appreciated.


jboss server log:


CustomUserDetailsService.java:



security.xml:



application log:


2015-08-29 13:55:35,421 [DEBUG] [http-/192.168.5.20:80-1] CustomUserDetailsService.class - =======loadUserByUserName=====
2015-08-29 13:55:35,740 [DEBUG] [http-/192.168.5.20:80-1] morfeusflex_client.controller.MainController - Received request to show login page



 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the issue is I donlt know why the execution never execute at the following line:



 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you show us your complete log file and CustomerService class.

May be customerService.findByEmailAddress(s); throws an exception or userFromDb is null, and trying to print toString on an null object, throwing NullPointerException.
 
Time flies like an arrow. Fruit flies like a banana. Steve flies like a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic