Spring MVC
I dont know why but my Hibernate Template is Giving Null Pointer Exception .. Can Anyone Help here is the Code https://sourceb.in/Bj2c0HLp45
15 Replies
⌛
This post has been reserved for your question.
Hey @Danix! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Please show the stacktrace.
here it is @Peter Rader
This does not look like a NullPointerException
ohh sorry i changed something and then i got this
Hm, I think I see whats the problem....
Do you ever heard of dependency-injection?
yeh
Well
DaoEntityImp
is a spring bean. And only spring should create an instance of the type. But in the class login
you create your own instance.hm
Try
1min
i got an another error @Peter Rader
https://sourceb.in/DBPVbBZftM
Ok, but this problem seems to be solved. Do you like to create a new question?
here is the error
yeh sure
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.