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
|