[Webtest] Unexpected exception caught: java.io.IOException: Stream closed

Shafeer Hajamohideen webtest@lists.canoo.com
Mon, 15 May 2006 20:16:10 +0200


Hallo there,

Can anyone explain what this exception suppose to be? I'm getting this 
exception while clicking a button and the response in report shows me an 
error. But actually the action after clicking the button has been 
performed in the application.

Thanks in advance,
Shafeer.

PS : testrunner log :

[clickButton] org.apache.commons.httpclient.ProtocolException: The 
server localhost failed to respond with a valid HTTP response
[clickButton] at 
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1846)
[clickButton] at 
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
[clickButton] at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
[clickButton] at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
[clickButton] at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
[clickButton] at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
[clickButton] at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
[clickButton] at 
com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:125)
[clickButton] at 
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1354)
[clickButton] at 
com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1321)
[clickButton] at 
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:331)
[clickButton] at 
com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:371)
[clickButton] at 
com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.java:217)
[clickButton] at 
com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAction(HtmlSubmitInput.java:78)
[clickButton] at 
com.gargoylesoftware.htmlunit.html.ClickableElement.click(ClickableElement.java:116)
[clickButton] at 
com.canoo.webtest.steps.request.ClickButton.findTarget(ClickButton.java:140)
[clickButton] at 
com.canoo.webtest.steps.request.AbstractTargetAction$1.call(AbstractTargetAction.java:108)
[clickButton] at 
com.canoo.webtest.steps.request.TargetHelper.protectedGoto(TargetHelper.java:88)
[clickButton] at 
com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarget(AbstractTargetAction.java:106)
[clickButton] at 
com.canoo.webtest.steps.request.AbstractTargetAction.doExecute(AbstractTargetAction.java:78)
[clickButton] at com.canoo.webtest.steps.Step.execute(Step.java:145)
[clickButton] at org.apache.tools.ant.Task.perform(Task.java:364)
[clickButton] at 
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:59)
[clickButton] at 
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:39)
[clickButton] at com.canoo.webtest.steps.Step.execute(Step.java:145)
[clickButton] at org.apache.tools.ant.Task.perform(Task.java:364)
[clickButton] at 
com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:126)
[clickButton] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[clickButton] at org.apache.tools.ant.Task.perform(Task.java:364)
[clickButton] at 
org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
[clickButton] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[clickButton] at org.apache.tools.ant.Task.perform(Task.java:364)
[clickButton] at 
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
[clickButton] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[clickButton] at org.apache.tools.ant.Task.perform(Task.java:364)
[clickButton] at org.apache.tools.ant.Target.execute(Target.java:341)
[clickButton] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[clickButton] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[clickButton] at 
org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
[clickButton] at 
org.eclipse.ant.internal.ui.antsupport.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30)
[clickButton] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[clickButton] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[clickButton] at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[clickButton] at org.apache.tools.ant.Task.perform(Task.java:364)
[clickButton] at org.apache.tools.ant.Target.execute(Target.java:341)
[clickButton] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[clickButton] at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[clickButton] at 
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[clickButton] at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[clickButton] at 
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[clickButton] at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[clickButton] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[clickButton] at 
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)

-- 
Shafeer Hajamohideen

mindmatters*

* Neuer Kamp 30
  20357 Hamburg

  Fon       +49 40 31792272
  Fax       +49 40 31792273
  E-Mail    mailto:shafeer.hajamohideen@mindmatters.de
  Website   http://www.mindmatters.de/

-------------------------------------------------------------------------
Es läuft und läuft und läuft: Schon über 20.000 Downloads für JSF-Spring,
unsere JSF-/Spring-Integrationslösung! http://jsf-spring.sourceforge.net/
-------------------------------------------------------------------------