cometd build test failure: Org.commetd.javascript.jquery.CommetConnectionFailureTest

4 views
Skip to first unread message

steve xian

unread,
Nov 5, 2009, 3:59:22 PM11/5/09
to cometd-dev
I am running on a Windows XP machine

I have installed on this computer:
svn server 1.6.6
Tortoise svn client 1.6.6
JDK 6 EE
maven 2.1.1

Here are the commands i typed into command line:
(currently in C:\)
1) svn co http://svn.cometd.com/trunk cometd/trunk
2) cd cometd/trunk
3) mvn clean install

the last step gives me the failure :
cometd build test failure:
Org.commetd.javascript.jquery.CommetConnectionFailureTest

All other tests were fine, and the above resulted in build failure

Any comments on how to fix this problem? Do i need to install jquery
into a specific directory to make this work?

Simone Bordet

unread,
Nov 6, 2009, 7:23:50 AM11/6/09
to comet...@googlegroups.com
Hi,

You don't need to install jquery.

I just performed the same steps above on Windows XP and Java 1.6.0_16,
and builds fine for me.
The test name is not the one you reported though (Comet has only one "m").

I would retry to build, and if you get problems, please report here
the stack trace and what you see in the surefire report.

Thanks,

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

steve xian

unread,
Nov 6, 2009, 10:38:42 AM11/6/09
to comet...@googlegroups.com
Attached Are the Surefire-reports From: mvn -e clean install

For every run i delete the cometd folder and start from scratch

I ran the mvn clean install again but the error is now different:

run 1) TestAck(org.cometd.client.AckExtensionTest)
run 2) testMaxNetworkDelay(org.cometd.javascript.jquery.CometdMaxNetworkDelayTest)
run 3) TestAck(org.cometd.client.AckExtensionTest)
run 4 with -e) surefire-reports attached again

thx
surefire-reports.rar
surefire-reports.rar

Simone Bordet

unread,
Nov 6, 2009, 11:41:46 AM11/6/09
to comet...@googlegroups.com
Hi,

On Fri, Nov 6, 2009 at 16:38, steve xian <mon...@gmail.com> wrote:
> Attached Are the Surefire-reports From: mvn -e clean install
>
> For every run i delete the cometd folder and start from scratch
>
> I ran the mvn clean install again but the error is now different:
>
> run 1) TestAck(org.cometd.client.AckExtensionTest)
> run 2)
> testMaxNetworkDelay(org.cometd.javascript.jquery.CometdMaxNetworkDelayTest)
> run 3) TestAck(org.cometd.client.AckExtensionTest)
> run 4 with -e) surefire-reports attached again

I cannot reproduce.
Are you running the build on a very busy machine ?

Add this snippet to the cometd-javascript/jquery/pom.xml file, in the
<plugins> section:

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>org.eclipse.jetty.util.log.DEBUG</name>
<value>true</value>
</property>
</systemProperties>
</configuration>
</plugin>

This will enable Jetty server logging.

Filter the build running only the test case that fails, using:

mvn test -Dtest=CometdMaxNetworkDelayTest

and report what it's logged in the console.

steve xian

unread,
Nov 6, 2009, 12:06:20 PM11/6/09
to comet...@googlegroups.com
Here are the steps i took for the following build
1) Delete cometd directory
2) svn co http://svn.cometd.com/trunk cometd/trunk
3) Add plugin to cometd/trunk/cometd-javascript/jquery/pom.xml file
4) mvn test -Dtest=CometdMaxNetworkDelayTest
5) results:

Tests:
There are no tests to run

BUILD FAILURE
No tests were executed (Set -DFailIfNoTests to ingnore this error)

That error may have been caused by a internet connection hiccup

Any help with the TestAck failure or the jquery.CommetConnectionFailureTest

It may be some software i'm missing or a misinstalled program?

thx for all the help

Simone Bordet

unread,
Nov 6, 2009, 12:44:52 PM11/6/09
to comet...@googlegroups.com
Hi,

On Fri, Nov 6, 2009 at 18:06, steve xian <mon...@gmail.com> wrote:
> Here are the steps i took for the following build
> 1) Delete cometd directory
> 2) svn co http://svn.cometd.com/trunk cometd/trunk
> 3) Add plugin to cometd/trunk/cometd-javascript/jquery/pom.xml file
> 4) mvn test -Dtest=CometdMaxNetworkDelayTest
> 5) results:
>
> Tests:
> There are no tests to run
>
> BUILD FAILURE
> No tests were executed (Set -DFailIfNoTests to ingnore this error)

Did you run the command from the cometd-javascript/jquery directory ?

> That error may have been caused by a internet connection hiccup

No.

> Any help with the TestAck failure or the jquery.CommetConnectionFailureTest

Use -Dtest=<here your test class name without package> to run different tests.

> It may be some software i'm missing or a misinstalled program?

No.

Let's see a full log output of a failing test first.

steve xian

unread,
Nov 6, 2009, 12:48:12 PM11/6/09
to comet...@googlegroups.com
i'm working with Command prompt, is there a way to output the log output to a text file?

steve xian

unread,
Nov 6, 2009, 1:26:51 PM11/6/09
to comet...@googlegroups.com
Attached is the log file from mvn test -Dtest=CometMaxNetworkDelayTest > CMNDTLog.txt in cometd/trunk/cometd-javascript/jquery/

i tried -Dtest=CometConnectionFailureTest but returned no tests in cometd/trunk/cometd-javascript/jquery/

i'm not sure which directory to be in for -Dtest=AckExtensionTest, i tried cometd/trunk but no tests were found


On Fri, Nov 6, 2009 at 12:44 PM, Simone Bordet <simone...@gmail.com> wrote:
CMNDTLog.txt

Simone Bordet

unread,
Nov 20, 2009, 5:01:09 AM11/20/09
to comet...@googlegroups.com
Hi,

On Fri, Nov 6, 2009 at 19:26, steve xian <mon...@gmail.com> wrote:
> Attached is the log file from mvn test -Dtest=CometMaxNetworkDelayTest >
> CMNDTLog.txt in cometd/trunk/cometd-javascript/jquery/

Ok, I could reproduce and I fixed the problem; it was a race between
the long poll and the publish in the test.
Thanks for reporting.

> i tried -Dtest=CometConnectionFailureTest but returned no tests in
> cometd/trunk/cometd-javascript/jquery/

The test name is wrong; its Comet*d*...

> i'm not sure which directory to be in for -Dtest=AckExtensionTest, i tried
> cometd/trunk but no tests were found

You should be in the directory where the test belong; in this case in
cometd/trunk/cometd-java/client

Can you please perform an SVN update and see if you still get failures ?

Thanks,
Reply all
Reply to author
Forward
0 new messages