hibernate 的 org.dom4j.DocumentException: Connection timed out 问题
来源:互联网 发布:matlab生成随机矩阵 编辑:程序博客网 时间:2024/05/14 08:15
hibbernate的异常的一种情况
一开始以为是数据库连接问题。。。。错了
Communication failure during handshake. Is there a server running on localhost:3306?这个才是数据库连接问题
---特别要注意版本对应,这种问就出现在下面了
问题定位:
org.dom4j.DocumentException: Connection timed out
Connection timed out: connect Nested exception: Connection timed out: connect
出现这个异常的原因之一是读取配置文件超时。
通常是在读取hibernate配置文件验证dtd时版本不对造成的。所以在生成hibernate配置文件的时候要注意配置文件的dtd版本。根据相应的hibernate.jar版本,生成对应的hbm.cfg.xml
如果出现以上异常 可以试下
<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
转换试下
<!DOCTYPE hibernate-mapping SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
又或者是反过来!
0 0
- hibernate 的 org.dom4j.DocumentException: Connection timed out 问题
- hibernate的org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection
- org.dom4j.DocumentException: Connection timed out
- org.dom4j.DocumentException: Connection timed out
- org.dom4j.DocumentException: Connection timed out 完美决解
- org.dom4j.DocumentException: Connection timed out: connect Nested exception
- org.dom4j.DocumentException: Connection timed out: connect Nested exception:
- org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: c
- Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection t
- hibernate3.0 org.dom4j.DocumentException: Connection timed out: connect Nested exception:
- hibernate3.0 org.dom4j.DocumentException: Connection timed out: connect Nested exception:
- dom4j 读取文件异常 org.dom4j.DocumentException: Read timed out Nested exception: Read timed out
- org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hiberna
- org/dom4j/DocumentException
- org.dom4j.DocumentException
- 关于ConnectException: Connection timed out: connect的问题
- SecureCRT 连接Ubuntu 16.04出现Connection timed out 的问题
- Dom4J读取XML文件时出现的connection timed out:connect Nested exception异常解决方法
- 蚊子132 如何结合 CMenFile 与 CArchive 进行高效的序列 ...
- MongoDB基本命令用
- windows cmd命令行设置utf8编码
- ubuntu下用iNode连网只能访问google的解决办法
- 6.25
- hibernate 的 org.dom4j.DocumentException: Connection timed out 问题
- 《剑指offer》二叉树的遍历
- 基础总结篇之一:Activity生命周期
- android自定义布局——城市选择界面
- java 回调与委派/委托机制
- 常用的Java代码汇总
- cmd-changeFTPpassword
- 在linux系统上如何创建samba账号?
- Android支付接入(一):支付宝