Posts: 1
posted Today 1:41:12 PM private message
Quote
Hi All,
I facing a problem when calling a parent class method test() from child class. This test() method referring another one bean like "testService" which is injecting only when parent class bean configuring. This test() method working fine when work with parent class. The problem is, when i call this same test() method from child class directly, facing NullPointerException on "testService" reference. How to inject this "testService" from child class to parent class when calling parent class method.Here, My Parent class is a not an abstract class. Please advise if anybody knows solution for it. Thanks in advance.
Note:
====
I tried with Parent attribute and have injected all the beans whatever parent class having. Though not able inject.
Regards,
Ganapathi


Reply With Quote
