• 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

nullpointer with @Autowired AuthenticationManager

Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is making me crazy - am trying to integrate a custom Auth bean and i am getting this a null pointer error when i reference my autowired auth manager.

the null pointer is thrown at:
Authentication result = authenticationManager.authenticate(request);

my bean

my app context:

The bean must see AM in my context because if i change the alias of the AuthenticationManager in my context the app wont compile. please advise....
Posts: 1682
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see the problem either. I know this sounds strange but did you c+p any of the stuff in the code below? If you did delete those pieces and re-type it out. I have had weird stuff like this happen to me when I have copied stuff into eclipse from a different place. It looks exactly the same but re-typing it makes it work
This guy is skipping without a rope. At least, that's what this tiny ad said:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic