当前位置:编程学习 > JAVA >>

j2ee Hibernate 访问 空间mysql数据库报错,高手帮看看

org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute query; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query

org.hibernate.exception.SQLGrammarException: could not execute query
java.sql.SQLException: Table 's223495.NewsTable' doesn't exist

org.springframework.dao.DataAccessResourceFailureException: could not execute query; nested exception is org.hibernate.exception.JDBCConnectionException: could not execute query
org.hibernate.exception.JDBCConnectionException: could not execute query


com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: 

** BEGIN NESTED EXCEPTION ** 

java.net.SocketException
MESSAGE: Software caused connection abort: socket write error

STACKTRACE:

java.net.SocketException: Software caused connection abort: socket write error



** END NESTED EXCEPTION **



Last packet sent to the server was 16 ms ago.
--------------------编程问答-------------------- java.sql.SQLException: Table 's223495.NewsTable' doesn't exist
这个表不存在,你自己查一查,Mapping配置有没有搞对

--------------------编程问答-------------------- org.hibernate.exception.SQLGrammarException: could not execute query
java.sql.SQLException: Table 's223495.NewsTable' doesn't exist
这个信息提示都这么清楚了哦,表不存在。 --------------------编程问答-------------------- 检查下你的query --------------------编程问答-------------------- java.sql.SQLException: Table 's223495.NewsTable' doesn't exist
检查一下你的映射文件 写错没有 表和类名不 要写错
还有就是你的数据库服务开启没有 --------------------编程问答-------------------- java.sql.SQLException: Table 's223495.NewsTable' doesn't exist
--------------------编程问答-------------------- 为啥这么多人都喜欢用美女做头像哟。。自己又不是女的。。

java.sql.SQLException: Table 's223495.NewsTable' doesn't exist
表不存在,或者是配置写错了。。检查NewsTable.hbm.xml... --------------------编程问答-------------------- 表都不存在啊  query对象都没有啊!  肯定不行啊!  配置文件有问题 --------------------编程问答--------------------
引用 6 楼 bill0605030109 的回复:
为啥这么多人都喜欢用美女做头像哟。。自己又不是女的。。

java.sql.SQLException: Table 's223495.NewsTable' doesn't exist
表不存在,或者是配置写错了。。检查NewsTable.hbm.xml...


猪猪美女养眼啊 --------------------编程问答-------------------- Table 's223495.NewsTable' doesn't exist

表不存在吧!
补充:Java ,  Java EE
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,