java.lang.IllegalArgumentException: node to traverse cannot be null!

java.lang.IllegalArgumentException: node to traverse cannot be null!

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

View Answers









Related Tutorials/Questions & Answers:

Ads