出處: http://spaces.msn.com/members/kliweik/
No row with the given identifier exists
表示你現在查詢的對象所關聯的對象有問題,一般是因為數據的問題(該對象所關聯的對象找不到)
Caused by: org.dom4j.DocumentException: Invalid byte 2 of 2-byte UTF-8 sequence. Nested exception: Invalid byte 2 of 2-byte UTF-8 sequence.
如果出現這行錯誤說明你的xml配置文件有不規范的字符,檢查下。
net.sf.hibernate.MappingException: Error reading resource: hibernate/Hello_Bean.hbm.xml
如果出現這行錯誤說明你的hibernate的XML配置文件有錯
net.sf.hibernate.MappingException: Resource: hibernate/Hello_Bean.hbm.xml not found
如果出現這行錯誤說明hibernate的XML配置文件沒有找到,你應該把XML文件放在與你的類文件同個目錄下,本文中是放在hibernate\classes\hibernate\目錄下,也就是跟Hello_Bean.class類文件一起。
net.sf.hibernate.PropertyNotFoundException: Could not find a setter for property name in class hibernate.Hello_Bean
如果出現這行錯誤說明你的xml文件里設置的字段名name的值與Hello_Bean.java類里的getXXX或setXXX方法不一致。
net.sf.hibernate.HibernateException: JDBC Driver class not found: org.gjt.mm.mysql.Driver
如果出現這行錯誤說明你的MYSQL驅動沒有加進JB庫里或者不在CLASSPATH里。