java.lang.IllegalArgumentException: node to traverse cannot be null!
tomcat报上面的错误
下面是我的hql语句,
String hql = "update Teacher t set t.tsex=? and t.ttelephone=? and t.teach_year=? and t.subject_One=? and t.teach_class_One=? where t.tusername=?";
Query sqlquery = ses.createQuery(hql);
sqlquery.setParameter(0, teacher.getTsex());
sqlquery.setParameter(1, teacher.getTtelephone());
sqlquery.setParameter(2, teacher.getTeach_year());
sqlquery.setParameter(3, sOne);
sqlquery.setParameter(4, cOne);
sqlquery.setParameter(5, nowLogin);