-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: java.lang.IllegalArgumentException: node to traverse cannot
PostPosted: Mon Dec 19, 2011 8:42 am 
Newbie

Joined: Mon Dec 19, 2011 8:37 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.