-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: SessionFactory-Config: Connection Timeout
PostPosted: Thu Oct 30, 2003 6:42 am 
Beginner
Beginner

Joined: Thu Oct 30, 2003 6:29 am
Posts: 30
Location: Germany, KA
hi,

i am bulging with a strange problem when trying to set up my SessionFactory:

<code>

logger.info("instanciating SessionController");
commonClasses = new Class[] {
org.xinity.base.XinityBaseObject.class,
org.xinity.base.XinityBaseUser.class,
org.xinity.base.XinityBaseGroup.class

Configuration cfg = new Configuration();
// adding common persistent classes
for (int i = 0; i < commonClasses.length; i++) {
cfg.addClass(commonClasses[i]);
}

...
new SchemaUpdate(cfg).execute(false);
SessionFactory sessions = cfg.buildSessionFactory();
</code>


When I run this code I sometimes! get the error:
<error>
11:15:30,744 INFO Configuration:283 - Mapping resource: org/xinity/base/XinityBaseObject.hbm.xml

11:15:51,814 ERROR Configuration:259 - Could not configure datastore from input stream
org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
at org.dom4j.io.SAXReader.read(SAXReader.java:358)

...
</error>


Do you have an idea what the SAXParsers problem is? What is he trying to connect to? The file? I don't think it has s.th. to do with file-locking by eclipse/ant because I experienced the problem even if i checked file-lock right before starting server.

thanks alot
marie
Code:
Code:


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 30, 2003 7:15 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Something related to DTD retrieving ?
Try to comment them

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 30, 2003 7:30 am 
Beginner
Beginner

Joined: Thu Oct 30, 2003 6:29 am
Posts: 30
Location: Germany, KA
:) thanks alot! that was exactly the problem


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 30, 2003 8:29 am 
Beginner
Beginner

Joined: Wed Oct 15, 2003 3:08 pm
Posts: 32
For more details about the cause of this problem, see http://forum.hibernate.org/viewtopic.php?t=925158.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.