关于hibernate的Could not execute JDBC 错误的处理办法
来源:互联网 发布:电脑超频软件 编辑:程序博客网 时间:2024/05/01 17:16
此前有兄台就这个问题做过一番研究,我也自己做过测试,现在就这个问题说一点自己的看法。
这个问题其实原因很简单,限定数据库的错误会以此种不明确的报告【Could not execute JDBC 】来提示错误,那么什么是数据库的错误呢?
情况很多,例如:
1:主外键冲突;
2:关键字(如id这个名称是数据库中的关键字,但是常作为主键名字去命名,操作这个列偶尔会出错,因为罕见所以问题不好找)
3:其他数据库可能的错误
值得一提的是,这种错误可能会在调试的时候以明确错误报告的形式输出到控制台,要留心看错误报告。
除此之外,还有可能导致这个【Could not execute JDBC 】错误的发生,如:
1:JavaBean配置错误;
2:其他
嘛。不管怎么样这种错误一定是和数据库有关的,先从SQL语句查看是否有问题,再来一步步排除
- 关于hibernate的Could not execute JDBC 错误的处理办法
- hibernate的Could not execute JDBC batch update错误原因及处理
- hibernate的Could not execute JDBC batch update错误原因及处理
- hibernate的Could not execute JDBC batch update错误原因及处理
- hibernate的Could not execute JDBC batch update错误原因及处理
- hibernate的Could not execute JDBC batch update错误原因及处理
- 关于hibernate的could not execute query错误
- could not execute query hibernate 处理办法
- Hibernate数据关联映射出现Could not execute JDBC batch update的异常处理
- hibernate错误:IllegalArgumentException以及Could not execute JDBC batch update
- 用Struts+DAO+Hibernate+MySql写的程序发生:org.hibernate.exception.DataException:Could not execute JDBC batch update的错误原因
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- 小谈Hibernate下SQL Grammer Exception,Could not execute JDBC batch update异常的解决
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- Could not execute JDBC batch update异常的解决办法
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update错误
- gVim的字体和背景颜色设置
- CTime类
- 使用MiniTools更方便的调试TQ210裸机程序
- Tower Defence hdu3958
- 鄙人flex小试身手,做了一个计算器
- 关于hibernate的Could not execute JDBC 错误的处理办法
- 战略、架构、设计、编码
- PDF开发库荟萃
- 丰盛的范德萨
- hdu 2209 BFS + 状态压缩
- 黑马程序员--java基础加强-反射
- 图算法应用
- 自定义 HTTP 模块
- C++11特性--右值引用,移动语义,强制移动move()