java - DAO returns the NullPointerException -


i have created examineedao examinee using id,hall ticket no etc..

in service autowired examineedao follows

@autowired private examineedao examineedao; 

i try access examineedao within function of service as

examinee examinee = examineedao.findbyid(id);\\line no 85 in generateqmh 

when execute code server shows error as

java.lang.nullpointerexception: null     @ cdac.examination.ccat.service.exam.examquestionslistserviceimpl.generateqmh(examquestionslistserviceimpl.java:85)     @ cdac.examination.ccat.service.exam.examquestionslistserviceimpl.getqaipath(examquestionslistserviceimpl.java:48) 

the above exception due examineedao returns null vlaue.

any 1 advice me possibilities kind of error , need change?

there in error in spring configuration. chance of nullpointerexception being thrown @ line if examineedao null, not injected properly. run debugger , show pretty fast.

it might examineedao not made available autowiring, post spring configuration (and annotated examineedao-class) please.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -