Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IllegalArgumentExcepton node to traverse can not be null

 
Suraj Ratnaparkhi
Greenhorn
Posts: 1
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am getting IllegalArgumentExcepton node to traverse can not be null on following code

public void updateCustomer(int id,String customerName)
{
try
{
int row=getHibernateTemplate().bulkUpdate("update Customer set customerName =" +customerName +"where id =" +id);
if (row == 0)
{
System.out.println("Doesn't updated any row!");
}
else{
System.out.println("Updated Row: " + row);
}

}
catch (DataAccessException e) {
System.out.println("Error While updating values!!");
e.printStackTrace();
}
}
 
John Jai
Rancher
Posts: 1776
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Suraj,

Welcome to the Ranch

What's your question? Please take time to read HowToAskQuestionsOnJavaRanch.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!