• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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.
 
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic