org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query
来源:互联网 发布:c语言编写函数绝对值 编辑:程序博客网 时间:2024/06/05 16:22
at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:629)
... (省略一大堆异常信息)
Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
-- 错误原因:
1. 原代码: String sql = "from Notices n where n.sendunit = " + sendunit + "order by n.noticedate desc";
2. 现代码: String sql = "from Notices n where n.sendunit ='" + sendunit + "' order by n.noticedate desc";
3. 这个字段是String(varchar2)类型, 没有加上单引号。
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query;
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exc
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query;
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query;
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exc
- ssh org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; neste
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exc
- [hibernate]:org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exception is org.hi
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exception is org.hibernate.exce
- org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not insert:
- org.springframework.dao.DataAccessResourceFailureException: could not execute query; nested exceptio
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not get next sequence value
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not get next sequence value
- org.springframework.dao.InvalidDataAccessResourceUsageException
- org.springframework.dao.DataIntegrityViolationException Could not execute JDBC batch update
- VSTO简介
- 共享一款基于 jQuery 的多功能对话框插件 jBox,强不强大,用了才知道
- qt学习笔记(六)之简析对象树
- ActionScript 3 抽象类和抽象方法实现所需的工具类——Mims Wright
- ~悟~
- org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query
- PHP句法规则详解
- android开发环境安装说明
- shell 之 Linux的用户和用户组管理
- MVC和struts1和struts2的理解
- Matrix类
- 一棵草
- Hashtable和SortedList的简单理解
- Oracle raise