`

Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exc

阅读更多

 

01 org.hibernate.InvalidMappingException: Could not parse mapping document from resourcecn/edu/hbmy/model/Document.hbm.xml
02     at org.hibernate.cfg.Configuration.addResource(Configuration.java:569)
03     at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1584)
04     at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1552)
05     at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1531)
06     at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1505)
07     at org.hibernate.cfg.Configuration.configure(Configuration.java:1425)
08     at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
09     at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
10     at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
11     at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94)
12     at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98)
13     at org.jbpm.JbpmContext.getSession(JbpmContext.java:506)
14     at cn.edu.hbmy.action.CreateProcessInstance.testCreateDocumet(CreateProcessInstance.java:26)
15     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
17     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18     at java.lang.reflect.Method.invoke(Method.java:597)
19     at junit.framework.TestCase.runTest(TestCase.java:154)
20     at junit.framework.TestCase.runBare(TestCase.java:127)
21     at junit.framework.TestResult$1.protect(TestResult.java:106)
22     at junit.framework.TestResult.runProtected(TestResult.java:124)
23     at junit.framework.TestResult.run(TestResult.java:109)
24     at junit.framework.TestCase.run(TestCase.java:118)
25     at junit.framework.TestSuite.runTest(TestSuite.java:208)
26     at junit.framework.TestSuite.run(TestSuite.java:203)
27     at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
28     at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
29     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
30     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
31     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
32     at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
33 Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
34     at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:508)
35     at org.hibernate.cfg.Configuration.addResource(Configuration.java:566)
36     ... 30 more
37 Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out:connect
38     at org.dom4j.io.SAXReader.read(SAXReader.java:484)
39     at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:499)
40     ... 31 more
 

错误原因:

把<!DOCTYPE hibernate-mapping PUBLIC

        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"

        "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

修改为:

 

<!DOCTYPE hibernate-mapping PUBLIC 

    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"

    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics