Announcement Announcement Module
No announcement yet.
Dependency Injection results in Null pointer Exception Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dependency Injection results in Null pointer Exception

    My JSF Backing Bean calls two Spring Beans
    The call to first Spring Bean is successfull
    The call to second Spring Bean results in Null Pointer Exception

    Both the Spring Beans are in Transaction as defined in applicationContext.xml

    I have meticulosly checked the Dependency Injection of second Spring Bean in JSFs faces-config.xml file and also the setter/getter methods in JSF Backing Bean

    I also verified that second spring bean exsist in applicationContext.xml & ofcourse as said earlier is defined in transaction

    Any pointers/suggestions on what i am missing will be highly appreciated

  • #2
    Further to my posting , i removed the Transaction from all Spring beans in applicationContext.xml and still having the issue of Null Pointer Exception accessing second Spring bean from JSF backing bean


    • #3
      I don't see why the second wouldn't work unless there is something wrong in the configuration. I would guess taking a look at this might show up some problem. If you've been looking at this for hours now you might want to take a break .
      Last edited by karldmoore; Aug 29th, 2007, 11:07 AM.