The example cannot run. You have to buy other books.

Source: Internet
Author: User
After deploying the bookstore example in the previous book, you can see the login page and cannot enter it at all. The following error occurs. This book is basically useless. You have to buy another book.

17:30:13, 288 [COM. ascent. Dao. hibernate. mermerhibernatedao]-[Error]
Failed to get user information based on user name!
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)
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.exe csql (connection. Java: 2978)
At com.mysql.jdbc.connection.exe csql (connection. Java: 2902)
At com.mysql.jdbc.preparedstatement.exe cuteinternal (preparedstatement. Ja
VA: 933)
At com.mysql.jdbc.preparedstatement.exe cutequery (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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.