![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常锦囊
huarhuar
这个作者很懒,什么都没留下…
展开
-
Hibernate主键映射问题
错误信息09:09:46,828 WARN JDBCExceptionReporter:77 - SQL Error: 544, SQLState: S000109:09:46,828 ERROR JDBCExceptionReporter:78 - 当 IDENTITY_INSERT 设置为 OFF 时,不能为表 't_user' 中的标识列插入显式值。org.hibernate.excep...原创 2012-05-08 16:02:32 · 153 阅读 · 0 评论 -
org.objectweb.asm.ClassVisitor.visit
环境:Spring2.5+ Hibernate3.3 +在使用Spring的AOP编程时,会用到这几个lib:asm-2.2.2.jarasm-commons-2.2.2.jarasm-util-2.2.2.jarHibernate使用如果lib:asm.jarasm-attrs.jar其中asm-2.2.2.jar与asm.jar存在类上的冲突!使用其中之一或两者都使用,可能会出现如下错误:...原创 2012-05-08 16:13:49 · 109 阅读 · 0 评论 -
unexpected token: * near line 1, column 8 [select * from t_user where 1=1]
unexpected token: * near line 1, column 8 [select * from t_user where 1=1] 和users is not mapped 这个错误可能是因为以下原因导致:1.在hibernate里面写sql执行时候要用了session.createQuery(sql); 需要用session.createSQLQuerys...原创 2012-08-01 11:31:05 · 1042 阅读 · 0 评论 -
WARN No appenders could be found for logger (org.hibernate.cfg.Environment)
在配置完Hibernate,运行时出现错误:log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).log4j:WARN Please initialize the log4j system properly.解决办法如下:在src下面新建file名为log4j.proper...原创 2012-08-28 16:02:50 · 340 阅读 · 0 评论