This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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.
 
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!