Bonjour,
lorsque j'authentifie par mon login et password sur mon app web ...le serveur tomcat me retourne une erreur java.lang.NullPointerException pour cette classe ..j'attends votre aidepublic class AuthentificationDaoImpl extends HibernateDaoSupport implements AuthentificationDAO,Serializable {
public Utilisateur findByLoginAndPassword(String login,String pass){
try{
Utilisateur user= (Utilisateur)getHibernateTemplate().find("from Utilisateur user where user.login='"+login+"'and user.pwd='"+pass+"'").get(0);
return user;
}catch(Exception e){
e.printStackTrace();
return null;
}
Partager