A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 史晓霞 黑马帝   /  2011-11-12 11:04  /  1765 人查看  /  0 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
java.lang.ClassCastException: com.hibernate.bean.Student
    at org.hibernate.type.EntityType.toLoggableString(EntityType.java:496)
    at org.hibernate.pretty.Printer.toString(Printer.java:76)
    at org.hibernate.pretty.Printer.toString(Printer.java:113)
    at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:120)
    at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:49)
    at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)
    at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:366)
    at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
    at com.hibernate.bean.BaseDao.saveObj(BaseDao.java:21)
    at com.hibernate.bean.Test.main(Test.java:21)

0 个回复

您需要登录后才可以回帖 登录 | 加入黑马