• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Can't proceed with j_spring_security_check

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I am going to test your electrical conductivity with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic