Check injecting to static fields. Spring does not allow injecting to static fields('null' value is injected).