Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Canoo web testing

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,

I am experiencing the following error when I am trying to execute lenghty scripts. Could some body please help out .


org.apache.commons.httpclient.NoHttpResponseException

at com.canoo.webtest.steps.StepUtil.handleException(StepUtil.java:111)

at com.canoo.webtest.steps.Step.handleException(Step.java:372)

at com.canoo.webtest.steps.Step.execute(Step.java:103)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)

at com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)

at com.canoo.webtest.steps.Step.execute(Step.java:100)

at org.apache.tools.ant.Task.perform(Task.java:364)

at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:197)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.Main.runBuild(Main.java:668)

at org.apache.tools.ant.Main.startAnt(Main.java:187)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Caused by: org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond

at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1835)

at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)

at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)

at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)

at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)

at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:126)

at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1397)

at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1354)

at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)

at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:412)

at com.canoo.webtest.steps.request.TargetHelper.getResponse(TargetHelper.java:69)

at com.canoo.webtest.steps.request.AbstractTargetAction.getResponse(AbstractTargetAction.java:66)

at com.canoo.webtest.steps.request.InvokePage.findTarget(InvokePage.java:160)

at com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:72)

at com.canoo.webtest.steps.Step.execute(Step.java:100)

... 27 more

--- Nested Exception ---

org.apache.commons.httpclient.NoHttpResponseException: The server localhost failed to respond

at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1835)

at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)

at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)

at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)

at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)

at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)

at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:126)

at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1397)

at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1354)

at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:330)

at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:412)

at com.canoo.webtest.steps.request.TargetHelper.getResponse(TargetHelper.java:69)

at com.canoo.webtest.steps.request.AbstractTargetAction.getResponse(AbstractTargetAction.java:66)

at com.canoo.webtest.steps.request.InvokePage.findTarget(InvokePage.java:160)

at com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:72)

at com.canoo.webtest.steps.Step.execute(Step.java:100)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)

at com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)

at com.canoo.webtest.steps.Step.execute(Step.java:100)

at org.apache.tools.ant.Task.perform(Task.java:364)

at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:197)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

at org.apache.tools.ant.Main.runBuild(Main.java:668)

at org.apache.tools.ant.Main.startAnt(Main.java:187)

at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Think that you did not start your server while executing the webtest app.
 
Whatever you say buddy! And I believe this tiny ad too:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic