node to traverse cannot be null!
来源:互联网 发布:网络电视剧排名榜 编辑:程序博客网 时间:2024/05/01 08:35
今天跟着视频做项目时发现一个错误“node to traverse cannot be null!”,先贴出部分错误提示:
java.lang.IllegalArgumentException: node to traverse cannot be null! at org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:63) at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:282) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:184) at org.springframework.orm.hibernate3.HibernateTemplate.find(HibernateTemplate.java:904) at com.base.impl.BaseDaoImpl.findAll(BaseDaoImpl.java:57) at com.staff.service.impl.StaffServiceImpl.findALL(StaffServiceImpl.java:25) com.staff.web.action.StaffAction.findAll(StaffAction.java:71) at java.lang.Thread.run(Unknown Source)
错误提示中已经明确给出了错误代码的行号,找到对应代码,乍一看很正确,以为是tomcat神经了,重启了一下,还是相同的错误,于是开始仔细看代码,提示我的DAO层和SERVICE层出错。
果然,仔细一看是自己的hql语句写错了,“from”+bean.getName(),from后面竟然没有空格,加上空格之后程序正常。上网查了相似的错误发现大多数错误都是自己hql语句书写错误导致的,以后发现这种错误应该首先查看自己的sql语句是否正确。特别是空格、英文字母顺序等像我一样初级菜鸟经常出现的错误。
0 0
- node to traverse cannot be null!
- node to traverse cannot be null
- node to traverse cannot be null
- node to traverse cannot be null
- node to traverse cannot be null! -- hibernate
- node to traverse cannot be null
- node to traverse cannot be null!
- node to traverse cannot be null
- hibernate node to traverse cannot be null!
- node to traverse cannot be null!
- node to traverse cannot be null!
- node to traverse cannot be null!
- Messages: node to traverse cannot be null!
- hibernate node to traverse cannot be null!
- node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- java.lang.IllegalArgumentException: node to traverse cannot be null!
- isDebugEnabled 、isInfoEnabled 为啥要使用
- Google Protocol Buffers Java实例
- 数据库索引的作用和优点缺点
- andorid 界面控制的知识
- RecycleView的用法
- node to traverse cannot be null!
- 跟我学Redis 目录
- 剑指offer--面试题64:数据流中的中位数
- 深度学习环境搭建 ubuntu16+GTX1080+CUDA8+Theano+Tensorflow+keras
- Cython(一)
- 百度,高德,天地图Android导航模块对比
- PAT(A) - 1075. PAT Judge (25)
- 【MYSQL】查询不区分大小写
- 微服务之RPC