I have the following code
@Configurable(dependencyCheck = true)
public class KnowledgeRequestServlet extends HttpServlet {
@Autowired
@Qualifier("logsDbDao")
private LogsDao dao; ....
LogsDao is an interface which has only one method saveRequest() and when I call the same method I get a Null Pointer Exception.
The reference gets initialized when the same code is run on the server.
I see this problem only when I try to run the code locally on my machine.I think it has definitely something to do with the Spring Framework I am using. Not only this,none of my references to the Interfaces are getting initialized locally.All of them work fine on the server side.Can some tell me what is messed up.
Thanks.
Sounds rather like Spring isn’t getting initialised when you run it on your machine. Are you starting it up in the same way it runs on the server?