mvn test failure

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

mvn test failure

thinkboy
hi friends,

I am pretty new to jetty.

recently, I used jetty for embedded http server in my standalone SE
app. it is great!  what a wonderful of work from jetty team! thanks.

today, I am trying to find out more about jetty development. when I  
checked out from svn , and did a "mvn compile", it worked fine!

however, when I did "mvn test" , I got  failures messages.

can u advise on the following failures?  do i need to concern? pls help.

the following was running on my new IBM xeon, core2duo , 2GB RAM, FC6 ,
JVM_5.0_11 :-)

$mvn test
..
..
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.mortbay.jetty.WebAppTest
2007-05-07 22:48:36.438::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
2007-05-07 22:48:36.509::INFO:  jetty-6.1.x
2007-05-07 22:48:36.803::INFO:  Started SelectChannelConnector @ 0.0.0.0:42453
2007-05-07 22:48:37.235::INFO:  jetty-6.1.x
2007-05-07 22:48:37.275::INFO:  Started SelectChannelConnector @ 0.0.0.0:49535
2007-05-07 22:48:37.664::INFO:  jetty-6.1.x
2007-05-07 22:48:37.713::INFO:  Started SelectChannelConnector @ 0.0.0.0:52846
2007-05-07 22:48:38.091::INFO:  jetty-6.1.x
2007-05-07 22:48:38.161::INFO:  Started SelectChannelConnector @ 0.0.0.0:55408
Tests run: 4, Failures: 1, Errors: 3, Skipped: 0, Time elapsed: 1.979
sec <<< FAILURE!
Running org.mortbay.jetty.SessionTest
2007-05-07 22:48:38.386::INFO:  jetty-6.1.x
2007-05-07 22:48:38.561::INFO:  Started SocketConnector @ 0.0.0.0:44176
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.225
sec <<< FAILURE!

Results :

Failed tests:
  testWebInfAccess(org.mortbay.jetty.WebAppTest)

Tests in error:
  testDoGet(org.mortbay.jetty.WebAppTest)
  testDoPost(org.mortbay.jetty.WebAppTest)
  testUnavailable(org.mortbay.jetty.WebAppTest)
  testSession(org.mortbay.jetty.SessionTest)

Tests run: 5, Failures: 1, Errors: 4, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 minutes 16 seconds
[INFO] Finished at: Mon May 07 22:48:38 CST 2007
[INFO] Final Memory: 17M/81M
[INFO] ------------------------------------------------------------------------



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: mvn test failure

Martin Gilday
After you run the mvn test if you look in /target/surefire-reports there
should be details of why the tests failed.


----- Original message -----
From: "Thinkboy" <[hidden email]>
To: [hidden email]
Date: Mon, 7 May 2007 22:58:55 +0800
Subject: [Jetty-support] mvn test failure

hi friends,

I am pretty new to jetty.

recently, I used jetty for embedded http server in my standalone SE
app. it is great!  what a wonderful of work from jetty team! thanks.

today, I am trying to find out more about jetty development. when I  
checked out from svn , and did a "mvn compile", it worked fine!

however, when I did "mvn test" , I got  failures messages.

can u advise on the following failures?  do i need to concern? pls help.

the following was running on my new IBM xeon, core2duo , 2GB RAM, FC6 ,
JVM_5.0_11 :-)

$mvn test
..
..
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.mortbay.jetty.WebAppTest
2007-05-07 22:48:36.438::INFO:  Logging to STDERR via
org.mortbay.log.StdErrLog
2007-05-07 22:48:36.509::INFO:  jetty-6.1.x
2007-05-07 22:48:36.803::INFO:  Started SelectChannelConnector @
0.0.0.0:42453
2007-05-07 22:48:37.235::INFO:  jetty-6.1.x
2007-05-07 22:48:37.275::INFO:  Started SelectChannelConnector @
0.0.0.0:49535
2007-05-07 22:48:37.664::INFO:  jetty-6.1.x
2007-05-07 22:48:37.713::INFO:  Started SelectChannelConnector @
0.0.0.0:52846
2007-05-07 22:48:38.091::INFO:  jetty-6.1.x
2007-05-07 22:48:38.161::INFO:  Started SelectChannelConnector @
0.0.0.0:55408
Tests run: 4, Failures: 1, Errors: 3, Skipped: 0, Time elapsed: 1.979
sec <<< FAILURE!
Running org.mortbay.jetty.SessionTest
2007-05-07 22:48:38.386::INFO:  jetty-6.1.x
2007-05-07 22:48:38.561::INFO:  Started SocketConnector @ 0.0.0.0:44176
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.225
sec <<< FAILURE!

Results :

Failed tests:
  testWebInfAccess(org.mortbay.jetty.WebAppTest)

Tests in error:
  testDoGet(org.mortbay.jetty.WebAppTest)
  testDoPost(org.mortbay.jetty.WebAppTest)
  testUnavailable(org.mortbay.jetty.WebAppTest)
  testSession(org.mortbay.jetty.SessionTest)

Tests run: 5, Failures: 1, Errors: 4, Skipped: 0

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 minutes 16 seconds
[INFO] Finished at: Mon May 07 22:48:38 CST 2007
[INFO] Final Memory: 17M/81M
[INFO]
------------------------------------------------------------------------



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: mvn test failure

thinkboy
hi martin,

thanks for the quick response.
I got the following error message:

$more  
jetty/extras/tests/target/surefire-reports/org.mortbay.jetty.SessionTest.txt
-------------------------------------------------------------------------------
Test

set: org.mortbay.jetty.SessionTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.238
sec <<< FAILURE!
testSession(org.mortbay.jetty.SessionTest)  Time elapsed: 0.225 sec  <<< ERROR!
java.io.FileNotFoundException: http://127.0.0.1:45802/test0/session
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
 

       at java.net.URLConnection.getContent(URLConnection.java:682)
        at java.net.URL.getContent(URL.java:1021)
        at org.mortbay.jetty.SessionTest.testContains(SessionTest.java:169)
        at org.mortbay.jetty.SessionTest.testSession(SessionTest.java:86)
        at org.mortbay.jetty.SessionTest.testSession(SessionTest.java:86)
        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:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:585)
        at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
 

       at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
 

       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

$more

/jetty/extras/tests/target/surefire-reports/org.mortbay.jetty.WebAppTest.txt
-------------------------------------------------------------------------------
Test set: org.mortbay.jetty.WebAppTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 1, Errors: 3, Skipped: 0, Time elapsed: 1.666
sec <<< FAILURE!
testDoGet(org.mortbay.jetty.WebAppTest)  Time elapsed: 0.6 sec  <<< ERROR!
java.io.FileNotFoundException: http://127.0.0.1:52576/test/dump/info?query=foo
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
 

       at java.net.URL.openStream(URL.java:1007)
        at org.mortbay.jetty.WebAppTest.testDoGet(WebAppTest.java:102)
        at org.mortbay.jetty.WebAppTest.testDoGet(WebAppTest.java:102)
        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:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:585)
        at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
 

       at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
 

       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

testDoPost(org.mortbay.jetty.WebAppTest)

 Time elapsed: 0.352 sec  <<< ERROR!
java.io.FileNotFoundException: http://127.0.0.1:53078/test/dump/info?query=foo
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
 

       at org.mortbay.jetty.WebAppTest.testDoPost(WebAppTest.java:161)
        at org.mortbay.jetty.WebAppTest.testDoPost(WebAppTest.java:161)
        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:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:585)
        at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
 

       at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
 

       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

testWebInfAccess(org.mortbay.jetty.WebAppTest)

 Time elapsed: 0.336 sec  <<< FAILURE!
junit.framework.AssertionFailedError: Expected 200 for resource: index.html
        at junit.framework.Assert.fail(Assert.java:47)
        at org.mortbay.jetty.WebAppTest.assertFound(WebAppTest.java:220)
        at org.mortbay.jetty.WebAppTest.testWebInfAccess(WebAppTest.java:180)
        at org.mortbay.jetty.WebAppTest.testWebInfAccess(WebAppTest.java:180)
        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:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:585)
        at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
 

       at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
 

       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

testUnavailable(org.mortbay.jetty.WebAppTest)

 Time elapsed: 0.349 sec  <<< ERROR!
java.io.FileNotFoundException: http://127.0.0.1:46182/test/dump/info?query=foo
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
 

       at java.net.URL.openStream(URL.java:1007)
        at org.mortbay.jetty.WebAppTest.testUnavailable(WebAppTest.java:189)
        at org.mortbay.jetty.WebAppTest.testUnavailable(WebAppTest.java:189)
        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:585)
        at junit.framework.TestCase.runTest(TestCase.java:164)
        at junit.framework.TestCase.runBare(TestCase.java:130)
        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:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        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:585)
        at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
 

       at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
 

       at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
 

       at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)


On

2007-05-07 23:08:22 +0800, "Martin Gilday" <[hidden email]> said:

> After you run the mvn test if you look in /target/surefire-reports there
> should be details of why the tests failed.
>
>
> ----- Original message -----
> From: "Thinkboy" <[hidden email]>
> To: [hidden email]
> Date: Mon, 7 May 2007 22:58:55 +0800
> Subject: [Jetty-support] mvn test failure
>
> hi friends,
>
> I am pretty new to jetty.
>
> recently, I used jetty for embedded http server in my standalone SE
> app. it is great!  what a wonderful of work from jetty team! thanks.
>
> today, I am trying to find out more about jetty development. when I  
> checked out from svn , and did a "mvn compile", it worked fine!
>
> however, when I did "mvn test" , I got  failures messages.
>
> can u advise on the following failures?  do i need to concern? pls help.
>
> the following was running on my new IBM xeon, core2duo , 2GB RAM, FC6 ,
> JVM_5.0_11 :-)
>
> $mvn test
> ..
> ..
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.mortbay.jetty.WebAppTest
> 2007-05-07 22:48:36.438::INFO:  Logging to STDERR via
> org.mortbay.log.StdErrLog
> 2007-05-07 22:48:36.509::INFO:  jetty-6.1.x
> 2007-05-07 22:48:36.803::INFO:  Started SelectChannelConnector @
> 0.0.0.0:42453
> 2007-05-07 22:48:37.235::INFO:  jetty-6.1.x
> 2007-05-07 22:48:37.275::INFO:  Started SelectChannelConnector @
> 0.0.0.0:49535
> 2007-05-07 22:48:37.664::INFO:  jetty-6.1.x
> 2007-05-07 22:48:37.713::INFO:  Started SelectChannelConnector @
> 0.0.0.0:52846
> 2007-05-07 22:48:38.091::INFO:  jetty-6.1.x
> 2007-05-07 22:48:38.161::INFO:  Started SelectChannelConnector @
> 0.0.0.0:55408
> Tests run: 4, Failures: 1, Errors: 3, Skipped: 0, Time elapsed: 1.979
> sec <<< FAILURE!
> Running org.mortbay.jetty.SessionTest
> 2007-05-07 22:48:38.386::INFO:  jetty-6.1.x
> 2007-05-07 22:48:38.561::INFO:  Started SocketConnector @ 0.0.0.0:44176
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.225
> sec <<< FAILURE!
>
> Results :
>
> Failed tests:
>   testWebInfAccess(org.mortbay.jetty.WebAppTest)
>
> Tests in error:
>   testDoGet(org.mortbay.jetty.WebAppTest)
>   testDoPost(org.mortbay.jetty.WebAppTest)
>   testUnavailable(org.mortbay.jetty.WebAppTest)
>   testSession(org.mortbay.jetty.SessionTest)
>
> Tests run: 5, Failures: 1, Errors: 4, Skipped: 0
>
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] There are test failures.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3 minutes 16 seconds
> [INFO] Finished at: Mon May 07 22:48:38 CST 2007
> [INFO] Final Memory: 17M/81M
> [INFO]
> ------------------------------------------------------------------------
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jetty-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jetty-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-support




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: mvn test failure

jan_bartel
Thinkboy,

Try doing "mvn clean install" at the top level, and a "mvn test" at the
extras/tests level. Just to be sure.

regards
Jan

Thinkboy wrote:

> hi martin,
>
> thanks for the quick response.
> I got the following error message:
>
> $more  
> jetty/extras/tests/target/surefire-reports/org.mortbay.jetty.SessionTest.txt
> -------------------------------------------------------------------------------
> Test
>
> set: org.mortbay.jetty.SessionTest
> -------------------------------------------------------------------------------
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.238
> sec <<< FAILURE!
> testSession(org.mortbay.jetty.SessionTest)  Time elapsed: 0.225 sec  <<< ERROR!
> java.io.FileNotFoundException: http://127.0.0.1:45802/test0/session
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
>  
>
>        at java.net.URLConnection.getContent(URLConnection.java:682)
>         at java.net.URL.getContent(URL.java:1021)
>         at org.mortbay.jetty.SessionTest.testContains(SessionTest.java:169)
>         at org.mortbay.jetty.SessionTest.testSession(SessionTest.java:86)
>         at org.mortbay.jetty.SessionTest.testSession(SessionTest.java:86)
>         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:585)
>         at junit.framework.TestCase.runTest(TestCase.java:164)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         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:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:230)
>         at junit.framework.TestSuite.run(TestSuite.java:225)
>         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:585)
>         at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>  
>
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         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:585)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>  
>
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>
> $more
>
> /jetty/extras/tests/target/surefire-reports/org.mortbay.jetty.WebAppTest.txt
> -------------------------------------------------------------------------------
> Test set: org.mortbay.jetty.WebAppTest
> -------------------------------------------------------------------------------
> Tests run: 4, Failures: 1, Errors: 3, Skipped: 0, Time elapsed: 1.666
> sec <<< FAILURE!
> testDoGet(org.mortbay.jetty.WebAppTest)  Time elapsed: 0.6 sec  <<< ERROR!
> java.io.FileNotFoundException: http://127.0.0.1:52576/test/dump/info?query=foo
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
>  
>
>        at java.net.URL.openStream(URL.java:1007)
>         at org.mortbay.jetty.WebAppTest.testDoGet(WebAppTest.java:102)
>         at org.mortbay.jetty.WebAppTest.testDoGet(WebAppTest.java:102)
>         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:585)
>         at junit.framework.TestCase.runTest(TestCase.java:164)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         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:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:230)
>         at junit.framework.TestSuite.run(TestSuite.java:225)
>         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:585)
>         at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>  
>
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         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:585)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>  
>
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>
> testDoPost(org.mortbay.jetty.WebAppTest)
>
>  Time elapsed: 0.352 sec  <<< ERROR!
> java.io.FileNotFoundException: http://127.0.0.1:53078/test/dump/info?query=foo
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
>  
>
>        at org.mortbay.jetty.WebAppTest.testDoPost(WebAppTest.java:161)
>         at org.mortbay.jetty.WebAppTest.testDoPost(WebAppTest.java:161)
>         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:585)
>         at junit.framework.TestCase.runTest(TestCase.java:164)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         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:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:230)
>         at junit.framework.TestSuite.run(TestSuite.java:225)
>         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:585)
>         at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>  
>
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         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:585)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>  
>
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>
> testWebInfAccess(org.mortbay.jetty.WebAppTest)
>
>  Time elapsed: 0.336 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: Expected 200 for resource: index.html
>         at junit.framework.Assert.fail(Assert.java:47)
>         at org.mortbay.jetty.WebAppTest.assertFound(WebAppTest.java:220)
>         at org.mortbay.jetty.WebAppTest.testWebInfAccess(WebAppTest.java:180)
>         at org.mortbay.jetty.WebAppTest.testWebInfAccess(WebAppTest.java:180)
>         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:585)
>         at junit.framework.TestCase.runTest(TestCase.java:164)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         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:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:230)
>         at junit.framework.TestSuite.run(TestSuite.java:225)
>         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:585)
>         at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>  
>
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         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:585)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>  
>
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>
> testUnavailable(org.mortbay.jetty.WebAppTest)
>
>  Time elapsed: 0.349 sec  <<< ERROR!
> java.io.FileNotFoundException: http://127.0.0.1:46182/test/dump/info?query=foo
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
>  
>
>        at java.net.URL.openStream(URL.java:1007)
>         at org.mortbay.jetty.WebAppTest.testUnavailable(WebAppTest.java:189)
>         at org.mortbay.jetty.WebAppTest.testUnavailable(WebAppTest.java:189)
>         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:585)
>         at junit.framework.TestCase.runTest(TestCase.java:164)
>         at junit.framework.TestCase.runBare(TestCase.java:130)
>         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:120)
>         at junit.framework.TestSuite.runTest(TestSuite.java:230)
>         at junit.framework.TestSuite.run(TestSuite.java:225)
>         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:585)
>         at
> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>  
>
>        at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>  
>
>        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         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:585)
>         at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
>  
>
>        at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>
>
> On
>
> 2007-05-07 23:08:22 +0800, "Martin Gilday" <[hidden email]> said:
>
>> After you run the mvn test if you look in /target/surefire-reports there
>> should be details of why the tests failed.
>>
>>
>> ----- Original message -----
>> From: "Thinkboy" <[hidden email]>
>> To: [hidden email]
>> Date: Mon, 7 May 2007 22:58:55 +0800
>> Subject: [Jetty-support] mvn test failure
>>
>> hi friends,
>>
>> I am pretty new to jetty.
>>
>> recently, I used jetty for embedded http server in my standalone SE
>> app. it is great!  what a wonderful of work from jetty team! thanks.
>>
>> today, I am trying to find out more about jetty development. when I  
>> checked out from svn , and did a "mvn compile", it worked fine!
>>
>> however, when I did "mvn test" , I got  failures messages.
>>
>> can u advise on the following failures?  do i need to concern? pls help.
>>
>> the following was running on my new IBM xeon, core2duo , 2GB RAM, FC6 ,
>> JVM_5.0_11 :-)
>>
>> $mvn test
>> ..
>> ..
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running org.mortbay.jetty.WebAppTest
>> 2007-05-07 22:48:36.438::INFO:  Logging to STDERR via
>> org.mortbay.log.StdErrLog
>> 2007-05-07 22:48:36.509::INFO:  jetty-6.1.x
>> 2007-05-07 22:48:36.803::INFO:  Started SelectChannelConnector @
>> 0.0.0.0:42453
>> 2007-05-07 22:48:37.235::INFO:  jetty-6.1.x
>> 2007-05-07 22:48:37.275::INFO:  Started SelectChannelConnector @
>> 0.0.0.0:49535
>> 2007-05-07 22:48:37.664::INFO:  jetty-6.1.x
>> 2007-05-07 22:48:37.713::INFO:  Started SelectChannelConnector @
>> 0.0.0.0:52846
>> 2007-05-07 22:48:38.091::INFO:  jetty-6.1.x
>> 2007-05-07 22:48:38.161::INFO:  Started SelectChannelConnector @
>> 0.0.0.0:55408
>> Tests run: 4, Failures: 1, Errors: 3, Skipped: 0, Time elapsed: 1.979
>> sec <<< FAILURE!
>> Running org.mortbay.jetty.SessionTest
>> 2007-05-07 22:48:38.386::INFO:  jetty-6.1.x
>> 2007-05-07 22:48:38.561::INFO:  Started SocketConnector @ 0.0.0.0:44176
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.225
>> sec <<< FAILURE!
>>
>> Results :
>>
>> Failed tests:
>>   testWebInfAccess(org.mortbay.jetty.WebAppTest)
>>
>> Tests in error:
>>   testDoGet(org.mortbay.jetty.WebAppTest)
>>   testDoPost(org.mortbay.jetty.WebAppTest)
>>   testUnavailable(org.mortbay.jetty.WebAppTest)
>>   testSession(org.mortbay.jetty.SessionTest)
>>
>> Tests run: 5, Failures: 1, Errors: 4, Skipped: 0
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] There are test failures.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 3 minutes 16 seconds
>> [INFO] Finished at: Mon May 07 22:48:38 CST 2007
>> [INFO] Final Memory: 17M/81M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Jetty-support mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/jetty-support
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Jetty-support mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/jetty-support
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jetty-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: mvn test failure

thinkboy
"mvn clean install" ->  BUILD SUCCESSFUL

"mvn test" at extras/tests  ->  BUILD SUCCESSFUL

thanks

On 2007-05-08 07:30:07 +0800, Jan Bartel <[hidden email]> said:

> Thinkboy,
>
> Try doing "mvn clean install" at the top level, and a "mvn test" at the
> extras/tests level. Just to be sure.
>
> regards
> Jan
>
> Thinkboy wrote:
>> hi martin,
>>
>> thanks for the quick response.
>> I got the following error message:
>>
>> $more  
>> jetty/extras/tests/target/surefire-reports/org.mortbay.jetty.SessionTest.txt
-------------------------------------------------------------------------------
Test
set:
>>
>> org.mortbay.jetty.SessionTest
>> -------------------------------------------------------------------------------
>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.238
>> sec <<< FAILURE!
>> testSession(org.mortbay.jetty.SessionTest)  Time elapsed: 0.225 sec  <<< ERROR!
>> java.io.FileNotFoundException: http://127.0.0.1:45802/test0/session
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)


at
>>
>> java.net.URLConnection.getContent(URLConnection.java:682)
>> at java.net.URL.getContent(URL.java:1021)
>> at org.mortbay.jetty.SessionTest.testContains(SessionTest.java:169)
>> at org.mortbay.jetty.SessionTest.testSession(SessionTest.java:86)
>> at org.mortbay.jetty.SessionTest.testSession(SessionTest.java:86)
>> 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:585)
>> at junit.framework.TestCase.runTest(TestCase.java:164)
>> at junit.framework.TestCase.runBare(TestCase.java:130)
>> 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:120)
>> at junit.framework.TestSuite.runTest(TestSuite.java:230)
>> at junit.framework.TestSuite.run(TestSuite.java:225)
>> 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:585)
>> at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>>
>>
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)


at
>>
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)


at
>>
>> org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>> 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:585)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)


at

>>
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>>
>> $more
>> /jetty/extras/tests/target/surefire-reports/org.mortbay.jetty.WebAppTest.txt
>> -------------------------------------------------------------------------------
>> Test set: org.mortbay.jetty.WebAppTest
>> -------------------------------------------------------------------------------
>> Tests run: 4, Failures: 1, Errors: 3, Skipped: 0, Time elapsed: 1.666
>> sec <<< FAILURE!
>> testDoGet(org.mortbay.jetty.WebAppTest)  Time elapsed: 0.6 sec  <<< ERROR!
>> java.io.FileNotFoundException: http://127.0.0.1:52576/test/dump/info?query=foo
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)


at
>>
>> java.net.URL.openStream(URL.java:1007)
>> at org.mortbay.jetty.WebAppTest.testDoGet(WebAppTest.java:102)
>> at org.mortbay.jetty.WebAppTest.testDoGet(WebAppTest.java:102)
>> 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:585)
>> at junit.framework.TestCase.runTest(TestCase.java:164)
>> at junit.framework.TestCase.runBare(TestCase.java:130)
>> 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:120)
>> at junit.framework.TestSuite.runTest(TestSuite.java:230)
>> at junit.framework.TestSuite.run(TestSuite.java:225)
>> 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:585)
>> at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>>
>>
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)


at
>>
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)


at
>>
>> org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>> 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:585)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)


at
>>
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>>
>> testDoPost(org.mortbay.jetty.WebAppTest)
>> Time elapsed: 0.352 sec  <<< ERROR!
>> java.io.FileNotFoundException: http://127.0.0.1:53078/test/dump/info?query=foo
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)


at
>>
>> org.mortbay.jetty.WebAppTest.testDoPost(WebAppTest.java:161)
>> at org.mortbay.jetty.WebAppTest.testDoPost(WebAppTest.java:161)
>> 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:585)
>> at junit.framework.TestCase.runTest(TestCase.java:164)
>> at junit.framework.TestCase.runBare(TestCase.java:130)
>> 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:120)
>> at junit.framework.TestSuite.runTest(TestSuite.java:230)
>> at junit.framework.TestSuite.run(TestSuite.java:225)
>> 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:585)
>> at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>>
>>
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)


at
>>
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)


at
>>
>> org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>> 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:585)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)


at

>>
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>>
>> testWebInfAccess(org.mortbay.jetty.WebAppTest)
>> Time elapsed: 0.336 sec  <<< FAILURE!
>> junit.framework.AssertionFailedError: Expected 200 for resource: index.html
>> at junit.framework.Assert.fail(Assert.java:47)
>> at org.mortbay.jetty.WebAppTest.assertFound(WebAppTest.java:220)
>> at org.mortbay.jetty.WebAppTest.testWebInfAccess(WebAppTest.java:180)
>> at org.mortbay.jetty.WebAppTest.testWebInfAccess(WebAppTest.java:180)
>> 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:585)
>> at junit.framework.TestCase.runTest(TestCase.java:164)
>> at junit.framework.TestCase.runBare(TestCase.java:130)
>> 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:120)
>> at junit.framework.TestSuite.runTest(TestSuite.java:230)
>> at junit.framework.TestSuite.run(TestSuite.java:225)
>> 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:585)
>> at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>>
>>
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)


at
>>
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)


at
>>
>> org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>> 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:585)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)


at
>>
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>>
>> testUnavailable(org.mortbay.jetty.WebAppTest)
>> Time elapsed: 0.349 sec  <<< ERROR!
>> java.io.FileNotFoundException: http://127.0.0.1:46182/test/dump/info?query=foo
>> at
>> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)


at
>>
>> java.net.URL.openStream(URL.java:1007)
>> at org.mortbay.jetty.WebAppTest.testUnavailable(WebAppTest.java:189)
>> at org.mortbay.jetty.WebAppTest.testUnavailable(WebAppTest.java:189)
>> 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:585)
>> at junit.framework.TestCase.runTest(TestCase.java:164)
>> at junit.framework.TestCase.runBare(TestCase.java:130)
>> 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:120)
>> at junit.framework.TestSuite.runTest(TestSuite.java:230)
>> at junit.framework.TestSuite.run(TestSuite.java:225)
>> 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:585)
>> at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
>>
>>
>> at
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)


at
>>
>> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)


at
>>
>> org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>> 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:585)
>> at
>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)


at

>>
>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
>>
>>
>> On
>> 2007-05-07 23:08:22 +0800, "Martin Gilday" <[hidden email]> said:
>>
>>> After you run the mvn test if you look in /target/surefire-reports there
>>> should be details of why the tests failed.
>>>
>>>
>>> ----- Original message -----
>>> From: "Thinkboy" <[hidden email]>
>>> To: [hidden email]
>>> Date: Mon, 7 May 2007 22:58:55 +0800
>>> Subject: [Jetty-support] mvn test failure
>>>
>>> hi friends,
>>>
>>> I am pretty new to jetty.
>>>
>>> recently, I used jetty for embedded http server in my standalone SE
>>> app. it is great!  what a wonderful of work from jetty team! thanks.
>>>
>>> today, I am trying to find out more about jetty development. when I  
>>> checked out from svn , and did a "mvn compile", it worked fine!
>>>
>>> however, when I did "mvn test" , I got  failures messages.
>>>
>>> can u advise on the following failures?  do i need to concern? pls help.
>>>
>>> the following was running on my new IBM xeon, core2duo , 2GB RAM, FC6 ,
>>> JVM_5.0_11 :-)
>>>
>>> $mvn test
>>> ..
>>> ..
>>> -------------------------------------------------------
>>> T E S T S
>>> -------------------------------------------------------
>>> Running org.mortbay.jetty.WebAppTest
>>> 2007-05-07 22:48:36.438::INFO:  Logging to STDERR via
>>> org.mortbay.log.StdErrLog
>>> 2007-05-07 22:48:36.509::INFO:  jetty-6.1.x
>>> 2007-05-07 22:48:36.803::INFO:  Started SelectChannelConnector @
>>> 0.0.0.0:42453
>>> 2007-05-07 22:48:37.235::INFO:  jetty-6.1.x
>>> 2007-05-07 22:48:37.275::INFO:  Started SelectChannelConnector @
>>> 0.0.0.0:49535
>>> 2007-05-07 22:48:37.664::INFO:  jetty-6.1.x
>>> 2007-05-07 22:48:37.713::INFO:  Started SelectChannelConnector @
>>> 0.0.0.0:52846
>>> 2007-05-07 22:48:38.091::INFO:  jetty-6.1.x
>>> 2007-05-07 22:48:38.161::INFO:  Started SelectChannelConnector @
>>> 0.0.0.0:55408
>>> Tests run: 4, Failures: 1, Errors: 3, Skipped: 0, Time elapsed: 1.979
>>> sec <<< FAILURE!
>>> Running org.mortbay.jetty.SessionTest
>>> 2007-05-07 22:48:38.386::INFO:  jetty-6.1.x
>>> 2007-05-07 22:48:38.561::INFO:  Started SocketConnector @ 0.0.0.0:44176
>>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.225
>>> sec <<< FAILURE!
>>>
>>> Results :
>>>
>>> Failed tests:
>>> testWebInfAccess(org.mortbay.jetty.WebAppTest)
>>>
>>> Tests in error:
>>> testDoGet(org.mortbay.jetty.WebAppTest)
>>> testDoPost(org.mortbay.jetty.WebAppTest)
>>> testUnavailable(org.mortbay.jetty.WebAppTest)
>>> testSession(org.mortbay.jetty.SessionTest)
>>>
>>> Tests run: 5, Failures: 1, Errors: 4, Skipped: 0
>>>
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] There are test failures.
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 3 minutes 16 seconds
>>> [INFO] Finished at: Mon May 07 22:48:38 CST 2007
>>> [INFO] Final Memory: 17M/81M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>>
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Jetty-support mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/jetty-support
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Jetty-support mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/jetty-support
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Jetty-support mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/jetty-support
>>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Jetty-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-support




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support