[Webtest] [webtest][JIRA] Created: (WT-194) Exception thrown from this class: java.io.IOException: Message was: Stream closed

Wei Zhao (JIRA) Wei Zhao (JIRA)" <noreply@canoo.com
Wed, 3 May 2006 02:03:22 +0200 (CEST)


 Exception thrown from this class: java.io.IOException:  Message was: Stream closed
-----------------------------------------------------------------------------------

         Key: WT-194
         URL: http://webtest-community.canoo.com/jira/browse/WT-194
     Project: WebTest
        Type: Bug

    Versions: 2.0    
 Environment: Linux with JDK 1.5.0 and ANT 1.6.2
    Reporter: Wei Zhao
 Attachments: msResults.xml

I am testing my company's html server and got the exception with com.canoo.webtest.steps.request.ClickButton. The detailed message is:
[clickButton]  INFO (com.canoo.webtest.steps.Step) - Running with: Canoo Webtest
: R_1217.
[clickButton]  INFO (com.canoo.webtest.steps.Step) - Exception thrown from this 
class: java.io.IOException
[clickButton]  INFO (com.canoo.webtest.steps.Step) - Message was: Stream closed
[clickButton] ERROR (com.canoo.webtest.steps.Step) - Cannot handle unexpected ex
ception in step ClickButton at /home/wzhao/webtest/msTests/Admin_01.xml:190:  wi
th (description="Eexcute it with a space infront", name="Btn_ChangePwd", stepTyp
e="clickButton")
[clickButton] java.io.IOException: Stream closed
[clickButton]   at java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.
java:145)
[clickButton]   at java.io.BufferedInputStream.fill(BufferedInputStream.java:189
)
[clickButton]   at java.io.BufferedInputStream.read(BufferedInputStream.java:235
)
[clickButton]   at org.apache.commons.httpclient.HttpParser.readRawLine(HttpPars
er.java:77)
[clickButton]   at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.
java:105)
[clickButton]   at org.apache.commons.httpclient.HttpParser.parseHeaders(HttpPar
ser.java:165)
[clickButton]   at org.apache.commons.httpclient.HttpMethodBase.readResponseHead
ers(HttpMethodBase.java:1790)
[clickButton]   at org.apache.commons.httpclient.HttpMethodBase.readResponse(Htt
pMethodBase.java:1592)
[clickButton]   at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMeth
odBase.java:995)
[clickButton]   at org.apache.commons.httpclient.HttpMethodDirector.executeWithR
etry(HttpMethodDirector.java:397)
[clickButton]   at org.apache.commons.httpclient.HttpMethodDirector.executeMetho
d(HttpMethodDirector.java:170)
[clickButton]   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpCl
ient.java:396)
[clickButton]   at org.apache.commons.httpclient.HttpClient.executeMethod(HttpCl
ient.java:346)
[clickButton]   at com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(H
ttpWebConnection.java:125)
[clickButton]   at com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWe
bConnection(WebClient.java:1354)
[clickButton]   at com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebCl
ient.java:1321)
[clickButton]   at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.jav
a:331)
[clickButton]   at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.jav
a:371)
[clickButton]   at com.gargoylesoftware.htmlunit.html.HtmlForm.submit(HtmlForm.j
ava:217)
[clickButton]   at com.gargoylesoftware.htmlunit.html.HtmlSubmitInput.doClickAct
ion(HtmlSubmitInput.java:78)
[clickButton]   at com.gargoylesoftware.htmlunit.html.ClickableElement.click(Cli
ckableElement.java:120)
[clickButton]   at com.canoo.webtest.steps.request.ClickButton.findTarget(ClickB
utton.java:139)
[clickButton]   at com.canoo.webtest.steps.request.AbstractTargetAction$1.call(A
bstractTargetAction.java:108)
[clickButton]   at com.canoo.webtest.steps.request.TargetHelper.protectedGoto(Ta
rgetHelper.java:88)
[clickButton]   at com.canoo.webtest.steps.request.AbstractTargetAction.gotoTarg
et(AbstractTargetAction.java:106)
[clickButton]   at com.canoo.webtest.steps.request.AbstractTargetAction.doExecut
e(AbstractTargetAction.java:78)
[clickButton]   at com.canoo.webtest.steps.Step.execute(Step.java:135)
[clickButton]   at org.apache.tools.ant.Task.perform(Task.java:364)
[clickButton]   at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:38)
[clickButton]   at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:10
5)
[clickButton]   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va: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.jav
a:1216)
[clickButton]   at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[clickButton]   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:40)
[clickButton]   at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
[clickButton]   at org.apache.tools.ant.Main.runBuild(Main.java:668)
[clickButton]   at org.apache.tools.ant.Main.startAnt(Main.java:187)
[clickButton]   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[clickButton]   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

What is the root cause of the problem and how can I survive from it?

Thanks for your help!



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira