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 = :v_newPassword, confirmPassword = :v_confirmPassword 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
|