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.
StringIndexOutOfBoundsException when I try to run the proxy server
Having installed Sahi v35_20110719 successfully on Ubuntu, I wanted to run this on our Debian/Lenny VMs, but I had two issues:
1) The graphical installer gets stuck on a dialog saying that another instance of the installer is running, and neither of the buttons respond to being clicked.
2) When unzipped into a directory and the relevant environment variables set, I get the following error from running the proxy server via .bin/sahi.sh:
SAHI_HOME: .
SAHI_USERDATA_DIR: ./userdata
SAHI_EXT_CLASS_PATH:
Sahi properties file = /home/robert.egginton/sahi/config/sahi.properties
Sahi user properties file = /home/robert.egginton/sahi/userdata/config/userdata.properties
Added shutdown hook.
>>>> 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
Reading browser types from: /home/robert.egginton/sahi/userdata/config/browser_types.xml
java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(libgcj.so.90)
at java.lang.String.substring(libgcj.so.90)
at net.sf.sahi.util.Utils.substitute(Utils.java:353)
at net.sf.sahi.util.Utils.expandSystemProperties(Utils.java:610)
at net.sf.sahi.util.BrowserTypesLoader.getAvailableBrowserTypes(BrowserTypesLoader.java:91)
at net.sf.sahi.Proxy.startProxy(Proxy.java:167)
at net.sf.sahi.Proxy.start(Proxy.java:117)
at net.sf.sahi.Proxy.main(Proxy.java:89)
I could not find a single instance of other people having this issue. Any ideas?
1) The graphical installer gets stuck on a dialog saying that another instance of the installer is running, and neither of the buttons respond to being clicked.
2) When unzipped into a directory and the relevant environment variables set, I get the following error from running the proxy server via .bin/sahi.sh:
SAHI_HOME: .
SAHI_USERDATA_DIR: ./userdata
SAHI_EXT_CLASS_PATH:
Sahi properties file = /home/robert.egginton/sahi/config/sahi.properties
Sahi user properties file = /home/robert.egginton/sahi/userdata/config/userdata.properties
Added shutdown hook.
>>>> 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
Reading browser types from: /home/robert.egginton/sahi/userdata/config/browser_types.xml
java.lang.StringIndexOutOfBoundsException
at java.lang.String.substring(libgcj.so.90)
at java.lang.String.substring(libgcj.so.90)
at net.sf.sahi.util.Utils.substitute(Utils.java:353)
at net.sf.sahi.util.Utils.expandSystemProperties(Utils.java:610)
at net.sf.sahi.util.BrowserTypesLoader.getAvailableBrowserTypes(BrowserTypesLoader.java:91)
at net.sf.sahi.Proxy.startProxy(Proxy.java:167)
at net.sf.sahi.Proxy.start(Proxy.java:117)
at net.sf.sahi.Proxy.main(Proxy.java:89)
I could not find a single instance of other people having this issue. Any ideas?
This discussion has been closed.
Comments
...
It was. The issue is specifically with gcj v5. Upgrading to v6 seems to fix the issue.