执行hibernate报错“node to traverse cannot be null”问题的解决
来源:互联网 发布:移动感知测试软件 编辑:程序博客网 时间:2024/06/10 21:03
转载请注明出处:http://blog.csdn.net/dongdong9223/article/details/50517478
本文出自【我是干勾鱼的博客】
使用hibernate执行HQL,有时候会报错:
java.lang.IllegalArgumentException: node to traverse cannot be null!
一般来说,这是由于使用hibernate 中的HQL做查询时出现了空返回值的错误,很有可能HQL语句本身就写错了,比如:
String Finder = new String("update set bean.test=bean.test+:value");Query query = getSession().createQuery(Finder);
此处会报错,是因为HQL中没有说明数据表的名称,把名称加上:
String Finder = new String("update TestTable bean set bean.test=bean.test+:value");Query query = getSession().createQuery(Finder);
就正确了。
0 0
- 执行hibernate报错“node to traverse cannot be null”问题的解决
- 执行hibernate报错“node to traverse cannot be null”问题的解决
- node to traverse cannot be null! -- hibernate
- hibernate node to traverse cannot be null!
- hibernate node to traverse cannot be null!
- 2014.03.03 hibernate使用报错 node to traverse cannot be null!
- 异常信息篇-hibernate报错:node to traverse cannot be null
- SSH框架问题——node to traverse cannot be null!报错问题
- Hibernate中报错——node to traverse cannot be null
- 使用hibernate出现node to traverse cannot be null错误
- hibernate错误之node to traverse cannot be null
- hibernate出现node to traverse cannot be null!
- 使用hibernate出现node to traverse cannot be null!
- 使用hibernate出现node to traverse cannot be null!
- java hibernate 中"node to traverse cannot be null"错误解决
- java hibernate 中"node to traverse cannot be null"错误解决
- java hibernate 中"node to traverse cannot be null"错误解决
- node to traverse cannot be null!
- Javascript闭包
- 【总结】Http和服务服务器负载均衡
- 常用SQL语句:
- Runtime系列Blog
- 【总结】搜索服务Solr
- 执行hibernate报错“node to traverse cannot be null”问题的解决
- Redis学习记录之命令Pub/Sub(十六)
- android开机动画启动流程
- Android DrawingCache超詳細解析,解決getDrawingCache方法回傳null
- 【总结】Hadoop剖析
- getWindow().setFlags()方法
- iframe自适应父容器宽高
- javascript 中 apply 方法的使用
- 在Eclipse中编写log4j的时候,无法输入中文的解决办法