18 January 2026:


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)

keatskeats Members
edited November -1 in Sahi - Open Source
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)

Comments

  • narayannarayan Administrators
    Keats, I have encountered this problem too, which seems to a jvm related thing. To fix it, open sahi.properties, and change response.sample_length = 400 to say 350 or 450, restart Sahi and check again.
  • keatskeats Members
    Thanks. Should be fine now. Not seen the issue yet after i changed the response length in properties file.
    Sorry i had not seen the comment in properties file earlier.
  • narayannarayan Administrators
    Looking for a comment in sahi.properties is not intuitive anyway :) I am changing the tag and topic name so that others may be able to find this more easily.

    Regards,
    Narayan
This discussion has been closed.