HttpAntRunner in Hudson giving me [HttpStatus] 500 due to timeout?

44 views
Skip to first unread message

Bim Paras

unread,
Nov 24, 2009, 5:32:50 PM11/24/09
to mxunit
Anybody have any advice on how to get around a timeout Hudson error
when running an MXUnit test via the HttpAntRunner? Hudson is giving me
the following error:

[mxunittask] [HttpHelper] Running URL :
http://test.website:80/test/mxUnitExtensions/HttpAntRunner.cfc?method=run&type=dir&value=/test/coldspring&recurse=true&excludes=null&packageName=test.coldspring&componentPath=test.coldspring
[mxunittask] [HttpStatus] 500

The same MXUnit test passes in the Eclipse MXUnit plugin, running the
Ant build locally, and when directly calling the *.cfc test file in
the browser. Hudson is the only place it's failing.

Thanks!

-Bim

Marc Esher

unread,
Nov 24, 2009, 5:36:28 PM11/24/09
to mxu...@googlegroups.com
Bim, are you 100% sure you can access this URL from the same server on
which Hudson is running? I had a similar situation where running the
HTTPAntRunner.cfc URL from my machine worked fine, but running it from
the CI server was failing due to dns issues.

One other thing to try would be to run the HttpAntRunner.cfc with
value=/mxunit/plugindemotests&packagename=mxunit.plugindemotests&componentpath=mxunit.plugindemotests

this would exercise mxunit's suite of simple, fast tests and would
rule out your code if it, too, failed

marc
> --
>
> You received this message because you are subscribed to the Google Groups "mxunit" group.
> To post to this group, send email to mxu...@googlegroups.com.
> To unsubscribe from this group, send email to mxunit+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mxunit?hl=en.
>
>
>

Bim Paras

unread,
Nov 25, 2009, 1:56:45 PM11/25/09
to mxunit
Yeah I tried that too and didn't get any error thrown - I get no
output in the browser so I am assuming that it ran successfully. I
actually ran that with my long running MXunit test directly in the
browser and no error thrown as well. Was trying to find someway of
increasing the timeout in either Hudson or the HttpAntRunner but
didn't find anything to clue me in.

-Bim

Marc Esher

unread,
Nov 25, 2009, 9:52:57 PM11/25/09
to mxu...@googlegroups.com, mxunit
Hey Bim. Try sticking a cfthrow in the test you are trying to run. Or
in httpantrunner itself. Of it returns with a 503 error then at least
you know it's making it to mxunit. From there we can try some more
tricks

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages