Mohan Muralidhar Nayak
java.lang.IllegalArgumentException: node to traverse cannot be null!
0 Answer(s)      3 years and 8 months ago
Posted in : Hibernate

Hi, I am new to Hibernate. I am facing the problem java.lang.IllegalArgumentException: node to traverse cannot be null!

while updating a row. The code is session session = null; Transaction ts = null; try{ query.append("update PasswordDTO set newPassword = :vnewPassword, confirmPassword = :vconfirmPassword where userName = :v_userName"); session = MyHibernatesessionFactory.getSessionFactory().openSession(); ts = session.beginTransaction(); hbQuery = session.createQuery(query.toString()); .... .... } catch(HIbernateException e){} catch(Exception e){}

The error is generating on hbQuery = session.createQuery(query.toString()); code. My Hbm file also is working for other uses.But This error why its generating i am in a confusion. Please help Thanks Mohan

Advertisement
View Answers









Related Tutorials/Questions & Answers: