L
laredotornado
I'm using Java 1.5 on a Mac OS 10.5.6, using a Resin 3.0.19
container. I'm trying to run a JUnit test to test my web service
client against the web service, which runs locally. A strange thing
happens. The 1016th test always fails with the below exception.
However, if I switch the order of the tests (in other words, make the
1016th the 1st so that some other test becomes the 1016th), the new
test in the 1016th position also fails with the same exception . This
happens repeatedly no matter what test is in the 1016th slot.
What advice do you have for troubleshooting this problem? My
suspicion is that this may be deeper than a coding issue, but I wanted
to get your advice.
Thanks, - Dave
=======================Maven 1.1 output
======================================
[junit] dir attribute ignored if running in the same VM
[junit] Running
myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest
[junit] Tests run: 1016, Failures: 1, Errors: 0, Time elapsed:
790.74 sec
-------------------------------------------------------------------------------
BUILD FAILED
-------------------------------------------------------------------------------
Total time : 13 minutes 14 seconds
Finished at : Tuesday, October 27, 2009 10:24:21 AM MDT
Final Memory : 183M/254M
-------------------------------------------------------------------------------
============================Stack trace
================================
Testcase: test440MatchInvalid_GenderNull
(myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest):
FAILED
Got Axis Fault. Test failed:Invalid argument
junit.framework.AssertionFailedError: Got Axis Fault. Test
failed:Invalid argument
at
myco.dor.dmv.driver.matching.test.MatchingServiceTestBase._testMatch
(MatchingServiceTestBase.java:91)
at
myco.dor.dmv.driver.matching.test.MatchingServiceTestBase._testMatch
(MatchingServiceTestBase.java:58)
at
myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest._testMatchInvalidCaseType
(MatchingServiceInvalidTest.java:13525)
at
myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest._testInvalidMatchGenderNull
(MatchingServiceInvalidTest.java:13241)
at
myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest.test440MatchInvalid_GenderNull
(MatchingServiceInvalidTest.java:4106)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:
195)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:
250)
at org.apache.commons.jelly.impl.ScriptBlock.run
(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody
(TagSupport.java:186)
at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag
(OtherwiseTag.java:41)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:
250)
at org.apache.commons.jelly.impl.ScriptBlock.run
(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody
(TagSupport.java:186)
at org.apache.commons.jelly.tags.core.ChooseTag.doTag
(ChooseTag.java:38)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:
250)
at org.apache.commons.jelly.impl.ScriptBlock.run
(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody
(TagSupport.java:186)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:
42)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:
250)
at org.apache.commons.jelly.impl.ScriptBlock.run
(ScriptBlock.java:95)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag
(MavenGoalTag.java:83)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag
$MavenGoalAction.performAction(MavenGoalTag.java:116)
at org.apache.maven.werkz.Goal.fire(Goal.java:691)
at org.apache.maven.werkz.Goal.attain(Goal.java:623)
at org.apache.maven.plugin.PluginManager.attainGoals
(PluginManager.java:712)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:
265)
at org.apache.maven.cli.App.doMain(App.java:307)
at org.apache.maven.cli.App.main(App.java:217)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
container. I'm trying to run a JUnit test to test my web service
client against the web service, which runs locally. A strange thing
happens. The 1016th test always fails with the below exception.
However, if I switch the order of the tests (in other words, make the
1016th the 1st so that some other test becomes the 1016th), the new
test in the 1016th position also fails with the same exception . This
happens repeatedly no matter what test is in the 1016th slot.
What advice do you have for troubleshooting this problem? My
suspicion is that this may be deeper than a coding issue, but I wanted
to get your advice.
Thanks, - Dave
=======================Maven 1.1 output
======================================
[junit] dir attribute ignored if running in the same VM
[junit] Running
myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest
[junit] Tests run: 1016, Failures: 1, Errors: 0, Time elapsed:
790.74 sec
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------Unable to obtain goal [test:single]
Test myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest failed
BUILD FAILED
-------------------------------------------------------------------------------
Total time : 13 minutes 14 seconds
Finished at : Tuesday, October 27, 2009 10:24:21 AM MDT
Final Memory : 183M/254M
-------------------------------------------------------------------------------
============================Stack trace
================================
Testcase: test440MatchInvalid_GenderNull
(myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest):
FAILED
Got Axis Fault. Test failed:Invalid argument
junit.framework.AssertionFailedError: Got Axis Fault. Test
failed:Invalid argument
at
myco.dor.dmv.driver.matching.test.MatchingServiceTestBase._testMatch
(MatchingServiceTestBase.java:91)
at
myco.dor.dmv.driver.matching.test.MatchingServiceTestBase._testMatch
(MatchingServiceTestBase.java:58)
at
myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest._testMatchInvalidCaseType
(MatchingServiceInvalidTest.java:13525)
at
myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest._testInvalidMatchGenderNull
(MatchingServiceInvalidTest.java:13241)
at
myco.dor.dmv.driver.matching.test.MatchingServiceInvalidTest.test440MatchInvalid_GenderNull
(MatchingServiceInvalidTest.java:4106)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:
195)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:
250)
at org.apache.commons.jelly.impl.ScriptBlock.run
(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody
(TagSupport.java:186)
at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag
(OtherwiseTag.java:41)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:
250)
at org.apache.commons.jelly.impl.ScriptBlock.run
(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody
(TagSupport.java:186)
at org.apache.commons.jelly.tags.core.ChooseTag.doTag
(ChooseTag.java:38)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:
250)
at org.apache.commons.jelly.impl.ScriptBlock.run
(ScriptBlock.java:95)
at org.apache.commons.jelly.TagSupport.invokeBody
(TagSupport.java:186)
at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:
42)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:
250)
at org.apache.commons.jelly.impl.ScriptBlock.run
(ScriptBlock.java:95)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag
(MavenGoalTag.java:83)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag
$MavenGoalAction.performAction(MavenGoalTag.java:116)
at org.apache.maven.werkz.Goal.fire(Goal.java:691)
at org.apache.maven.werkz.Goal.attain(Goal.java:623)
at org.apache.maven.plugin.PluginManager.attainGoals
(PluginManager.java:712)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:
265)
at org.apache.maven.cli.App.doMain(App.java:307)
at org.apache.maven.cli.App.main(App.java:217)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)