2009-07-02 12:08:51.826::WARN: EXCEPTION on HttpExchange@8374432=POST//localhost:58234/cometd/cometd#4
org.eclipse.jetty.io.EofException
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:310)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203)
at org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:271)
at org.eclipse.jetty.client.SocketConnector$1.run(SocketConnector.java:71)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:435)
at java.lang.Thread.run(Thread.java:595)
2009-07-02 12:08:51.827::WARN: IOE on HttpExchange@8374432=POST//localhost:58234/cometd/cometd#9
failed CometTimeSyncExtensionTest.testTimeSync
java.lang.AssertionError
at org.cometd.javascript.jquery.extension.CometTimeSyncExtensionTest.testTimeSync(CometTimeSyncExtensionTest.java:58)
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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:478)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:617)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:885)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:110)
at org.testng.TestRunner.runWorkers(TestRunner.java:712)
at org.testng.TestRunner.privateRun(TestRunner.java:582)
at org.testng.TestRunner.run(TestRunner.java:477)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:324)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:319)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:292)
at org.testng.SuiteRunner.run(SuiteRunner.java:198)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:821)
at org.testng.TestNG.runSuitesLocally(TestNG.java:788)
at org.testng.TestNG.run(TestNG.java:708)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)
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:585)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Tests run: 20, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 77.809 sec <<< FAILURE!
Results :
Failed tests:
testTimeSync(org.cometd.javascript.jquery.extension.CometTimeSyncExtensionTest)
Jan
On Thu, Jul 2, 2009 at 06:00, Jan Bartel<ja...@mortbay.com> wrote:
>
> Svn rev 675, CometTimSyncExtensionTest fails intermittently:
>
> 2009-07-02 12:08:51.826::WARN: EXCEPTION on HttpExchange@8374432=POST//localhost:58234/cometd/cometd#4
> org.eclipse.jetty.io.EofException
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:310)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:203)
> at org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:271)
> at org.eclipse.jetty.client.SocketConnector$1.run(SocketConnector.java:71)
> at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:435)
> at java.lang.Thread.run(Thread.java:595)
> 2009-07-02 12:08:51.827::WARN: IOE on HttpExchange@8374432=POST//localhost:58234/cometd/cometd#9
> failed CometTimeSyncExtensionTest.testTimeSync
>
> java.lang.AssertionError
> at org.cometd.javascript.jquery.extension.CometTimeSyncExtensionTest.testTimeSync(CometTimeSyncExtensionTest.java:58)
This happens when the handshake does not return within 500 ms.
The test is not foolproof in case you have a very busy machine.
I guess I need to update them to make them fool proof, but it's kind
of expensive.
Cheers,
Simon
--
http://bordet.blogspot.com
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless. Victoria Livschitz