例子无法运行,得买别的书才行了

部署好那个前面说的书上的书店的例子后,能看到登陆的页面,然后根本无法进去,出现下面的错误。这本书基本上是不行了,还得另外去买别的书。

2007-06-06 17:30:13,288 [com.ascent.dao.hibernate.CustomerHibernateDAO]-[ERROR]
根据用户姓名获取用户信息失败!
org.springframework.jdbc.UncategorizedSQLException: (Hibernate operation): encou
ntered SQLException [Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
(gb2312_chinese_ci,COERCIBLE) for operation '=']; nested exception is java.sql.S
QLException: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (gb2312_
chinese_ci,COERCIBLE) for operation '='
java.sql.SQLException: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) an
d (gb2312_chinese_ci,COERCIBLE) for operation '='
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2926)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:2978)
        at com.mysql.jdbc.Connection.execSQL(Connection.java:2902)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.ja
va:933)
        at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:
1027)
        at net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImpl.java:88)
        at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:875)
        at net.sf.hibernate.loader.Loader.doQuery(Loader.java:269)
774017.html

分享 2007-06-06 17:42 发表评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值