-->
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.  [ 5 posts ] 
Author Message
 Post subject: SEVERE: Could not configure datastore from input stream
PostPosted: Fri Sep 30, 2005 7:05 am 
Newbie

Joined: Tue Jun 28, 2005 6:07 am
Posts: 5
Location: Pune
Dear All,

I am getting the follwoing error. COuld you please suggest what must be going wrong?

--------------------------------------------------------------------------
Testsuite: test.CassetteDAOTest
Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 43.296 sec

------------- Standard Output ---------------
%%%% wrapped exception: %%%% wrapped exception: %%%% wrapped exception: %%%% wrapped exception: 2 Exception::::CassetteDAOTest:::: java.lang.NullPointerException
------------- ---------------- ---------------
------------- Standard Error -----------------
Sep 30, 2005 3:12:36 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: Hibernate 2.1.6
Sep 30, 2005 3:12:36 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
Sep 30, 2005 3:12:36 PM net.sf.hibernate.cfg.Environment <clinit>
INFO: using CGLIB reflection optimizer
Sep 30, 2005 3:12:36 PM net.sf.hibernate.cfg.Configuration addClass
INFO: Mapping resource: com/tsystems/ecm/imaes/imadb/hibernate2/archive/Cassette.hbm.xml
Sep 30, 2005 3:12:57 PM net.sf.hibernate.cfg.Configuration addInputStream
SEVERE: 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:342)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:286)
at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:354)
at com.tsystems.ecm.imaes.imadb.hibernate2.util.HibernateSession.loadClasses(HibernateSession.java:95)
at com.tsystems.ecm.imaes.imadb.hibernate2.util.HibernateSession.currentSession(HibernateSession.java:47)
at com.tsystems.ecm.imaes.imadb.hibernate2.archive.CassetteDAO.save(CassetteDAO.java:40)
at test.CassetteDAOTest.testSaveCassette(CassetteDAOTest.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:536)
Nested exception:
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
.................
------------------------------------------------------------------------------------
_________________
Mazhar Shaikh
---------------------------------
Software Consultant
Email:smmazhar@gmail.com


--------------------------------------------------------------------------------

_________________
Mazhar Shaikh
---------------------------------
Software Consultant
Email:smmazhar@gmail.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 30, 2005 9:45 am 
Newbie

Joined: Mon Jan 17, 2005 1:09 pm
Posts: 19
I looks like that you are not connected to the internet.


Hibernate may need the internet to validate the xml in the mappings

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">

<hibernate-mapping
>
<class

..........................
................


Connect to the internet or use hibernate3 and hibernate 3 mappings to solve this problem

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping
>
<class


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 03, 2005 3:06 am 
Newbie

Joined: Tue Jun 28, 2005 6:07 am
Posts: 5
Location: Pune
Dear Heox,

Thanks for your reply. I am well connected to the internet. I don't see any network problems here.

Changing to use hibernate3 or hibernate 3 mappings is the only reason for this problem?

Is there any other alternative to this?

Thanks

_________________
Mazhar Shaikh
---------------------------------
Software Consultant
Email:smmazhar@gmail.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 10:51 am 
Newbie

Joined: Wed Mar 03, 2004 11:22 am
Posts: 12
I am experiencing the same error. The InputStream is an input stream to a local classpath resource.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 04, 2005 11:03 am 
Newbie

Joined: Wed Mar 03, 2004 11:22 am
Posts: 12
By the way, it appears that my problem is caused when Hibernate attempts to load the DTD specified in my hbm.xml file. I am connected to the internet and can pull the DTD up in a browser. My DTD declaration looks like:

<?xml version="1.0" encoding='UTF-8'?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >


I am not sure why I am receiving a connection timed out error.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.