18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
issue with latest version (IOException: Resetting to invalid mark)
I am not able to execute some of my application web page[html] when sahi proxy is switched on. What sahi does is, when the page is loaded, it skips from tag <html[starting tag of html page] and directly jumps to some javascript of my html page.
This results in, some javascript is directly printed on my html page i.e, browser. which means those javascript cannot be executed and hence i cannot go further.
To explain this further:
I am not able to click a button on that page where i get this javascript printed on browser. when i click on that button, Onclick event should get triggered. This is not happening and thats why i am not able to move further in that screen.
Here's the out put of sahi console.
>>>> Sahi started. Listening on port:9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Controller
java.io.IOException: Resetting to invalid mark
at java.io.BufferedInputStream.reset(Unknown Source)
at net.sf.sahi.response.HttpModifiedResponse.sampleBytes(HttpModifiedResponse.java
:130)
at net.sf.sahi.response.HttpModifiedResponse.getSampleContent(HttpModifiedResponse
.java:141)
at net.sf.sahi.response.HttpModifiedResponse.getSampleContent(HttpModifiedResponse
.java:120)
at net.sf.sahi.response.HttpModifiedResponse.isXHTML(HttpModifiedResponse.java:72)
at net.sf.sahi.response.HttpModifiedResponse.<init>(HttpModifiedResponse.java:51)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:107)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:70)
at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:129)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
at java.lang.Thread.run(Unknown Source)
This results in, some javascript is directly printed on my html page i.e, browser. which means those javascript cannot be executed and hence i cannot go further.
To explain this further:
I am not able to click a button on that page where i get this javascript printed on browser. when i click on that button, Onclick event should get triggered. This is not happening and thats why i am not able to move further in that screen.
Here's the out put of sahi console.
>>>> Sahi started. Listening on port:9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Controller
java.io.IOException: Resetting to invalid mark
at java.io.BufferedInputStream.reset(Unknown Source)
at net.sf.sahi.response.HttpModifiedResponse.sampleBytes(HttpModifiedResponse.java
:130)
at net.sf.sahi.response.HttpModifiedResponse.getSampleContent(HttpModifiedResponse
.java:141)
at net.sf.sahi.response.HttpModifiedResponse.getSampleContent(HttpModifiedResponse
.java:120)
at net.sf.sahi.response.HttpModifiedResponse.isXHTML(HttpModifiedResponse.java:72)
at net.sf.sahi.response.HttpModifiedResponse.<init>(HttpModifiedResponse.java:51)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:107)
at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:70)
at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:129)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
at java.lang.Thread.run(Unknown Source)
This discussion has been closed.
Comments
Sorry i had not seen the comment in properties file earlier.
Regards,
Narayan