node to traverse cannot be null

(1)首先是发现自己的界面返回一个空白的页面,首先怀疑是不是界面的ognl表达式写的不正确,然后查询了ognl表达式

    

刚开始用的是没有加#引用的方式,也没用var,现在改写加上了,就报了上边的错误,然后把数据库处理部分的hql语句修正,去掉#也依然好使。

    

(2)这个错误实说节点到遍历不能为空,就是说后台数据库没有传值到显示界面上,也就是你的dao层出了错误,所以要到写查询语句的位置找寻错误。

发现自己的from后边没有写空格,就是这个错误的原因。

时间: 2024-08-27 16:02:44

node to traverse cannot be null的相关文章

A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a deep copy of the list.

图解: 此题过程分为三个阶段,分别是 1.负责后面一个节点,并且将这个节点插入到原来链表中  2.复制后面一个节点的random指针. 3 拆分组合链表为两部分. 第一部分代码: while(currentnode!=null){//复制节点,并且将节点插入到该节点的后面 RandomListNode clonenode=new RandomListNode(currentnode.label); clonenode.next=currentnode.next; currentnode.next

工作流性能优化(敢问activiti有扩展性?)(3)

2015/4/20 周末回去想了下,hibernate.mybatis.jdbc,都行,最终定了用mybatis,谁叫它这么优雅,acvtiviti是依赖了mybatis的,就不用再引入包了: 看了配置文件,之前配置的是jpa,再配置mybatis,配置文件就显得臃肿,很乱了:用jpa吧,貌似也不赖: 再写一个Repository: 写SQL的时候用到了,知识点: instr:instr(t.DESCRIPTION_, 'conditionCountersign') > 0 mysql查询最后一

hibernate空格导致的错误!

数据库中已经有两条记录,这是为了测试数据用的. 下面是我对hibernate中查询进行的测试.... package cn.lwk.dao; import java.util.List; import org.hibernate.classic.Session; import cn.itcast.utils.HibernateUtils; public class EntityDao extends HibernateUtils{ public <T> List<T> find(C

今日搭建hibernate,Springmvc两大框架遇到的小问题笔记!!!!

执行hibernate报错"node to traverse cannot be null"问题的解决 答应: 一般来说,这是由于使用hibernate 中的HQL做查询时出现了空返回值的错误,很有可能HQL语句本身就写错了. Hibernate 中出现 users is not mapped 问题: 解答:HQL语句中表名应该是ORM映射的类名,所以应该改成:  (如果是用注解生成实体类,那就是注解的那个类)String sql = "select u.password f

第一次使用框架Hibernate和Struts框架遇到的坑

一:有时候修改完代码,重新启动服务器,代码并没有生效 解决办法:Project=>勾选Build Automaticlly 二:调试快捷键: F8:执行下一个断点,F5进入当前方法 三:提示node to traverse cannot be null错误 这个时候一般是hql语句的问题,注意from不是form 后面跟着User 对象 而不是表名 四:提示No CurrentSessionContext configured!错误 检查Hibernate.cfg.xml配置文件中是否有 <!

Hibernate 中出现 users is not mapped 问题

Hibernate 中出现 users is not mapped 问题: 解答:HQL语句中表名应该是ORM映射的类名,所以应该改成:  (如果是用注解生成实体类,那就是注解的那个类)String sql = "select u.password from User u where u.username='" +user.getUsername()+ "'"; User.hbm.xml:<class name="com.lian.bean.User

LeetCode OJ:Populating Next Right Pointers in Each Node II(指出每一个节点的下一个右侧节点II)

Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant extra space. For example,Given the following binary tr

leetcode--Populating Next Right Pointers in Each Node II

Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant extra space. For example,Given the following binary tr

leetcode 117 Populating Next Right Pointers in Each Node II ----- java

Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution still work? Note: You may only use constant extra space. For example,Given the following binary tr