/usr/lib/jvm/java-6-openjdk/bin/java -Djava.awt.headless=true
-Dbuild.sysclasspath=only
-Xbootclasspath/p:/srv/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar:/srv/gump/public/workspace/xml-xerces2/build/xercesImpl.jar
org.apache.tools.ant.Main -Dgump.merge=/srv/gump/public/gump/work/merge.xml
-Djunit.jar.location=/srv/gump/packages/junit3.8.1/junit.jar -Dversion=16052012
-Dtestutil.jar.location=/srv/gump/public/workspace/ant/build/lib/ant-testutil.jar
test
Output
Buildfile: /srv/gump/public/workspace/htmlparser/build.xml
compilelexer:
jarlexer:
compileparser:
jarparser:
jar:
test:
[javac] Compiling 76 source files to /srv/gump/public/workspace/htmlparser/src
[java] ...E........F..............................
[java] .........E.E.E..............................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................................
[java] .........................
[java] Time: 38.383
[java] There were 4 errors:
[java] 1) testPOST(org.htmlparser.tests.ParserTest)org.htmlparser.util.ParserException: You must be offline! This test needs you to be connected to the internet.;
[java] org.htmlparser.util.ParserException: Exception getting input stream from http://www.canadapost.ca/tools/pcl/bin/cp_search_response-e.asp (http://www.canadapost.ca/tools/pcl/bin/cp_search_response-e.asp).;
[java] java.io.FileNotFoundException: http://www.canadapost.ca/tools/pcl/bin/cp_search_response-e.asp
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
[java] at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1458)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1452)
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1106)
[java] at org.htmlparser.lexer.Page.setConnection(Page.java:571)
[java] at org.htmlparser.lexer.Page.<init>(Page.java:134)
[java] at org.htmlparser.lexer.Lexer.<init>(Lexer.java:186)
[java] at org.htmlparser.Parser.<init>(Parser.java:293)
[java] at org.htmlparser.Parser.<init>(Parser.java:360)
[java] at org.htmlparser.tests.ParserTest.testPOST(ParserTest.java:300)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at org.htmlparser.tests.ParserTestCase.main(ParserTestCase.java:560)
[java] Caused by: java.io.FileNotFoundException: http://www.canadapost.ca/tools/pcl/bin/cp_search_response-e.asp
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
[java] at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2214)
[java] at org.htmlparser.lexer.Page.getContentType(Page.java:670)
[java] at org.htmlparser.lexer.Page.setConnection(Page.java:552)
[java] ... 29 more
[java] 2) testThreaded(org.htmlparser.tests.lexerTests.StreamTests)java.io.FileNotFoundException: http://htmlparser.sourceforge.net/javadoc_1_3/index-all.html
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
[java] at org.htmlparser.tests.lexerTests.StreamTests.testThreaded(StreamTests.java:182)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at org.htmlparser.tests.ParserTestCase.main(ParserTestCase.java:560)
[java] 3) testMarkReset(org.htmlparser.tests.lexerTests.StreamTests)java.io.FileNotFoundException: http://htmlparser.sourceforge.net/javadoc_1_3/overview-summary.html
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
[java] at org.htmlparser.tests.lexerTests.StreamTests.testMarkReset(StreamTests.java:289)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at org.htmlparser.tests.ParserTestCase.main(ParserTestCase.java:560)
[java] 4) testMarkResetThreaded(org.htmlparser.tests.lexerTests.StreamTests)java.io.FileNotFoundException: http://htmlparser.sourceforge.net/javadoc_1_3/overview-summary.html
[java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
[java] at org.htmlparser.tests.lexerTests.StreamTests.testMarkResetThreaded(StreamTests.java:364)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at org.htmlparser.tests.ParserTestCase.main(ParserTestCase.java:560)
[java] There was 1 failure:
[java] 1) testNullUrl(org.htmlparser.tests.ParserTest)junit.framework.AssertionFailedError: Should have thrown an exception!
[java] at org.htmlparser.tests.ParserTest.testNullUrl(ParserTest.java:577)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[java] at org.htmlparser.tests.ParserTestCase.main(ParserTestCase.java:560)
[java]
[java] FAILURES!!!
[java] Tests run: 681, Failures: 1, Errors: 4
[java]
BUILD FAILED
/srv/gump/public/workspace/htmlparser/build.xml:425: Java returned: 1
Total time: 47 seconds
Apache Gump, Gump, Apache, the Apache feather logo, and the Apache Gump project logos are trademarks of The Apache Software Foundation.