Spring Injected Bean property is null?

I'm expanding my comment from the OP's question since it appears to have helped.

I'm assuming you're not doing new LinkCheck(), but since you're new to Spring, it's a sensible starting question. Spring can only inject the beans if it controls the creation of the beans: if you do new MyClass() then the Spring container doesn't know about the object and can't do the injection.

1 +1 Now Wade's turn. ;) – Adeel Ansari Jan 15 '10 at 10:58.

There is a potential problem in that the type of 'jdbcLinkDao' is 'jdbcLinkDao' but the argument type of the setter is LinkDAO. (If 'jdbcLinkDao' is a subtype of 'LinkDAO' that is probably OK ... but FIX THE CLASS NAME! ) If that's not the problem I suggest that you: set the log level to DEBUG, if that doesn't show anything, add a trace print to LinkCheck.setLinkDAO() to see what value is being set ... and when it is being set.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions