incubator-esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ethan Jewett <esjew...@gmail.com>
Subject Re: Not a lot of ESME output from me today
Date Fri, 13 Nov 2009 18:03:20 GMT
When I do "mvn test" on my system, it bails out. The error message is
below. It looks to me like it is not working on Hudson either, if you
look at the test results trend on the following page:
http://hudson.zones.apache.org/hudson/job/ESME/

With regard to running tests on Hudson, I think failing tests are
perfect, but the tests need to run through without exceptions (they
can fail, but they can't have uncaught exceptions ... I think) or they
will severely reduce the usability of the test suite and of the Hudson
integration. Is that right?

Thanks,
Ethan

Error from my system:

2009-11-13 13:00:38.505::WARN:  failed SocketConnector@0.0.0.0:8989:
java.net.BindException: Address already in use
2009-11-13 13:00:38.505::WARN:  failed Server@65861e41:
java.net.BindException: Address already in use
org.apache.maven.surefire.booter.SurefireExecutionException: null;
nested exception is java.lang.ExceptionInInitializerError: null
java.lang.ExceptionInInitializerError
	at org.apache.esme.api.ApiSpecsAsTest.<init>(ApiTest.scala:43)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at java.lang.Class.newInstance0(Class.java:355)
	at java.lang.Class.newInstance(Class.java:308)
	at org.specs.runner.JUnitSuiteRunner.testSuite(JUnitSuiteRunner.scala:37)
	at org.specs.runner.JUnitSuiteRunner.run(JUnitSuiteRunner.scala:45)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	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:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: java.net.BindException: Address already in use
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
	at java.net.ServerSocket.bind(ServerSocket.java:319)
	at java.net.ServerSocket.<init>(ServerSocket.java:185)
	at java.net.ServerSocket.<init>(ServerSocket.java:141)
	at org.mortbay.jetty.bio.SocketConnector.newServerSocket(SocketConnector.java:80)
	at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
	at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:283)
	at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:147)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.mortbay.jetty.Server.doStart(Server.java:235)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
	at org.apache.esme.JettyTestServer$.start(JettySetup.scala:64)
	at org.apache.esme.api.ApiSpecs$.<init>(ApiTest.scala:47)
	at org.apache.esme.api.ApiSpecs$.<clinit>(ApiTest.scala)
	... 19 more
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to
/Users/esjewett/svn_repos/esme/trunk/server/target/surefire-reports
for the individual test results.


On Fri, Nov 13, 2009 at 11:32 AM, David Pollak
<feeder.of.the.bears@gmail.com> wrote:
> On Fri, Nov 13, 2009 at 6:50 AM, Ethan Jewett <esjewett@gmail.com> wrote:
>
>> Hi,
>>
>> It looks like these tests got checked in even though they don't run as
>> yet. Can they be commented out until they are operational? Currently
>> they are causing the full test run to fail, which is not the end of
>> the world but is something we should probably avoid.
>>
>
> The code I checked into the ESME SVN repo does run.
>
> If there is a problem running these tests, please let me know what the
> output is.
>
>
>>
>> Ethan
>>
>> On Tue, Nov 10, 2009 at 7:04 PM, David Pollak
>> <feeder.of.the.bears@gmail.com> wrote:
>> > Folks,
>> >
>> > I started writing some ESME tests and got very cranky with Lift's TestKit
>> > (what kind of fool wrote those APIs anyway... oh, look, here's a mirror
>> and
>> > I'm looking at the fool).
>> >
>> > I spent a couple of hours cleaning up the Lift TestKit APIs so that tests
>> > will look like:
>> >
>> >    "Login" in {
>> >      for{
>> >        login <- post("/api/login", "token" -> token) !@ "Failed to
log
>> in"
>> > if (testSuccess(login))
>> >        status <- login.get("/api/status") !@ "Failed to get status" if
>> > (testSuccess(status))
>> >      } {
>> >        (status.xml \ "user" \ "@id").text must_== theUser.id.toString
>> >      }
>> >    }
>> >
>> > Once the Lift changes get approved and propagated, I'll post up the new
>> API
>> > test code.
>> >
>> > I plan to spend more time in ESME-land on Thursday and will get some of
>> the
>> > user edit and OpenID stuff finished.
>> >
>> > Thanks,
>> >
>> > David
>> >
>> > PS -- What's the ETA for the new templates?
>> >
>> >
>> > --
>> > Lift, the simply functional web framework http://liftweb.net
>> > Beginning Scala http://www.apress.com/book/view/1430219890
>> > Follow me: http://twitter.com/dpp
>> > Surf the harmonics
>> >
>>
>
>
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Surf the harmonics
>

Mime
View raw message