Problem by [surefire:test]
Hi all, I run mvn install or mvn test. But I got error as follow. Could someone tell me why? Best regards *** [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: C:\Wei\MyProjects\timetracker-completed\core\t arget\surefire-reports WARNING: couldn't find in classpath http://testng.org/testng-1.0.dtd Fetching it from the Web site. org.apache.maven.surefire.booter.SurefireExecutionException: Error reading test suite; nested exception is java.net.ConnectException: Connection timed out: conn ect; nested exception is org.apache.maven.surefire.testset.TestSetFailedExceptio n: Error reading test suite; nested exception is java.net.ConnectException: Conn ection timed out: connect org.apache.maven.surefire.testset.TestSetFailedException: Error reading test sui te; nested exception is java.net.ConnectException: Connection timed out: connect java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:516) at java.net.Socket.connect(Socket.java:466) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.init(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC onnection.java:796) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:748) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:673) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:917) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent Entity(XMLEntityManager.java:973) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity( XMLEntityManager.java:905) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEnti ty(XMLEntityManager.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSou rce(XMLDTDScannerImpl.java:282) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDis patcher.dispatch(XMLDocumentScannerImpl.java:1021) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab stractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at javax.xml.parsers.SAXParser.parse(SAXParser.java:176) at org.testng.xml.Parser.parse(Parser.java:139) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(Te stNGXmlTestSuite.java:129) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire .java:147) at org.apache.maven.surefire.Surefire.run(Surefire.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su refireBooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:747) [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. [INFO] [INFO] Trace org.apache.maven.BuildFailureException: There are test failures. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:560) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
Re: Problem by [surefire:test]
Hi, Do you still have the same code base as yesterday? I've tested it just now and it seems fine. Could it be just an internet connection problem? Or testng.org being down? Hope this helps. :) Teody Wei Chen wrote: Hi all, I run mvn install or mvn test. But I got error as follow. Could someone tell me why? Best regards *** [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: C:\Wei\MyProjects\timetracker-completed\core\t arget\surefire-reports WARNING: couldn't find in classpath http://testng.org/testng-1.0.dtd Fetching it from the Web site. org.apache.maven.surefire.booter.SurefireExecutionException: Error reading test suite; nested exception is java.net.ConnectException: Connection timed out: conn ect; nested exception is org.apache.maven.surefire.testset.TestSetFailedExceptio n: Error reading test suite; nested exception is java.net.ConnectException: Conn ection timed out: connect org.apache.maven.surefire.testset.TestSetFailedException: Error reading test sui te; nested exception is java.net.ConnectException: Connection timed out: connect java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:516) at java.net.Socket.connect(Socket.java:466) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.init(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC onnection.java:796) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:748) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:673) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:917) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent Entity(XMLEntityManager.java:973) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity( XMLEntityManager.java:905) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEnti ty(XMLEntityManager.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSou rce(XMLDTDScannerImpl.java:282) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDis patcher.dispatch(XMLDocumentScannerImpl.java:1021) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab stractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at javax.xml.parsers.SAXParser.parse(SAXParser.java:176) at org.testng.xml.Parser.parse(Parser.java:139) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(Te stNGXmlTestSuite.java:129) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire .java:147) at org.apache.maven.surefire.Surefire.run(Surefire.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su refireBooter.java:225) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j ava:747) [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. [INFO] [INFO] Trace org.apache.maven.BuildFailureException: There are test failures. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:560) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
Re: Problem by [surefire:test]
Yes. I have the same code base as yesterday. If I test my project at home, it is OK. Now I test it in office. I am not sure if it is the internet connection problem since I've set the proxy correctly as you recommended in your email. Otherwise it couldn't go further. :-) I can downlaod the testng-1.0.dtd from http://testng.org/. So it seems the testng.org should be ok. Any idea else ? :-) Best regards Original-Nachricht Datum: Fri, 20 Jul 2007 16:35:20 +0800 Von: Teody Cue Jr. [EMAIL PROTECTED] An: Maven Users List users@maven.apache.org Betreff: Re: Problem by [surefire:test] Hi, Do you still have the same code base as yesterday? I've tested it just now and it seems fine. Could it be just an internet connection problem? Or testng.org being down? Hope this helps. :) Teody Wei Chen wrote: Hi all, I run mvn install or mvn test. But I got error as follow. Could someone tell me why? Best regards *** [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [INFO] Surefire report directory: C:\Wei\MyProjects\timetracker-completed\core\t arget\surefire-reports WARNING: couldn't find in classpath http://testng.org/testng-1.0.dtd Fetching it from the Web site. org.apache.maven.surefire.booter.SurefireExecutionException: Error reading test suite; nested exception is java.net.ConnectException: Connection timed out: conn ect; nested exception is org.apache.maven.surefire.testset.TestSetFailedExceptio n: Error reading test suite; nested exception is java.net.ConnectException: Conn ection timed out: connect org.apache.maven.surefire.testset.TestSetFailedException: Error reading test sui te; nested exception is java.net.ConnectException: Connection timed out: connect java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:516) at java.net.Socket.connect(Socket.java:466) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.init(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC onnection.java:796) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne ction.java:748) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:673) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:917) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent Entity(XMLEntityManager.java:973) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity( XMLEntityManager.java:905) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEnti ty(XMLEntityManager.java:872) at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSou rce(XMLDTDScannerImpl.java:282) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDis patcher.dispatch(XMLDocumentScannerImpl.java:1021) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp l.scanDocument(XMLDocumentFragmentScannerImpl.java:368) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:834) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X ML11Configuration.java:764) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser. java:148) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Ab stractSAXParser.java:1242) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at javax.xml.parsers.SAXParser.parse(SAXParser.java:176) at org.testng.xml.Parser.parse(Parser.java:139) at org.apache.maven.surefire.testng.TestNGXmlTestSuite.locateTestSets(Te stNGXmlTestSuite.java:129) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire .java:147) at org.apache.maven.surefire.Surefire.run(Surefire.java:108) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su