Hi, I'm sorry I have no idea of the cause of your issue. Could you please try with latest JWebUnit code from trunk? Perhaps an updated version of HtmlUnit may fix your problem...
Regards, Julien > >De : Francisca Todikromo <francisca.todikr...@gmail.com> >À : jwebunit-users@lists.sourceforge.net >Envoyé le : Mar 16 Février 2010, 11 h 59 min 40 s >Objet : [JWebUnit-users] IOException Stream closed at beginAt > >Hi, > >I'm trying to execute a test that opens a https page. >I've set the proxy using the following line: > tester.getTestContext().setProxyAuthorization(null, null, > WebTestConstants.PROXY, WebTestConstants.PROXY_PORT); > >But I got a "java.io.IOException: Stream closed" exception. (See stacktrace >below). >I've debugged it and found out that at some point JWebUnit closed the stream, >and when it returned back to the calling method, it throws the exception. >>Any idea what happened and how to fix it? >I'm using JWebUnit 2.2. > >TIA. > >java.lang.RuntimeException: java.io.IOException: Stream closed > at > net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:244) >> at >> net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.beginAt(HtmlUnitTestingEngineImpl.java:193) > at net.sourceforge.jwebunit.junit.WebTester.beginAt(WebTester.java:212) > ..... > >Caused by: java.io.IOException: Stream closed >> at java.io.BufferedInputStream.getBufIfOpen(Unknown Source) > at java.io.BufferedInputStream.read(Unknown Source) > at > org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:170) >> at java.io.FilterInputStream.read(Unknown Source) > at > org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:108) > at java.io.FilterInputStream.read(Unknown Source) > at > org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:127) >> at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025) > at org.apache.commons.io.IOUtils.copy(IOUtils.java:999) > at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:218) > at > com.gargoylesoftware.htmlunit.WebResponseData.getBody(WebResponseData.java:131) >> at >> com.gargoylesoftware.htmlunit.WebResponseData.<init>(WebResponseData.java:84) > at > com.gargoylesoftware.htmlunit.HttpWebConnection.newWebResponseDataInstance(HttpWebConnection.java:449) > at > com.gargoylesoftware.htmlunit.HttpWebConnection.makeWebResponse(HttpWebConnection.java:429) >> at >> com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java:100) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java:1430) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java:1388) >> at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:325) > at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:386) > at > net.sourceforge.jwebunit.htmlunit.HtmlUnitTestingEngineImpl.gotoPage(HtmlUnitTestingEngineImpl.java:234) >> ... 24 more > > > ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ JWebUnit-users mailing list JWebUnit-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-users