2007-06-06
例子无法运行,得买别的书才行了
部署好那个前面说的书上的书店的例子后,能看到登陆的页面,然后根本无法进去,出现下面的错误。这本书基本上是不行了,还得另外去买别的书。
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)

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)
发表评论
- 浏览: 7894 次
- 性别:

- 来自: 上海

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
spring的价值的质疑
这个还用讨论,楼主觉得怎么用方便就怎么用啊,大家用得着如此苦心婆口吗。又:楼主实 ...
-- by fch0402 -
spring的价值的质疑
如果没有更清楚的例子说明的话,那只能说明依赖注入是不必要的。 spring的价 ...
-- by chenge -
spring的价值的质疑
spring 是粘合剂,strategy模式也可以被粘进去。
-- by dwangel -
spring的价值的质疑
skydream: 我看了你的例子,我明白你的意思了。你的例子我觉得可以用St ...
-- by chenge -
spring的价值的质疑
chenge 写道 Publisher publisher = n ...
-- by daquan198163






评论排行榜