
Hi, did you test if setCustomerDAO() actually sets your customerDao first before trying to get it? On Mon, May 25, 2009 at 1:52 AM, Ashok Hariharan <ashok@parliaments.info>wrote:
On Sun, May 24, 2009 at 3:17 PM, Duggan Kim <mdkimani@gmail.com> wrote:
Every other dependency is taken care of in Spring's applicationContext.xml config file in a similar manner.
When tested using JUnit or on the browser, a NullPointerException is thrown at (2). The DAO defined in the superclass is null in the subclass. This raises the question whether Spring's DI supports normal Java class inheritance and if it does, is there any special config required for this?
I am not so familiar with spring as such... but dependency injection frameworks require interfaces for both implementing classes *and* properties .... is the customerDAO object based on an interface ?
ashok _______________________________________________ Skunkworks mailing list Skunkworks@lists.my.co.ke http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks Other services @ http://my.co.ke Other lists ------------- Skunkworks announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce Science - http://lists.my.co.ke/cgi-bin/mailman/listinfo/science kazi - http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general