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.
Error on running shai after intall
I am trying to install sahi version install_sahi_v35_20110719.jar with the installer (the last version) and dashboard icon is not recognized and cannot be run.
Besides that, by running start_sahi.bat, the following exception comes:
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/sf/sahi/P
roxy (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
i am using jre 1.6.0_29 on my machine.
what i am doing worng?
Boaz
Besides that, by running start_sahi.bat, the following exception comes:
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/sf/sahi/P
roxy (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
i am using jre 1.6.0_29 on my machine.
what i am doing worng?
Boaz
This discussion has been closed.
Comments
Kindly follow the below URLs:
http://sahi.co.in/forums/viewtopic.php?id=2460
http://sahi.co.in/forums/viewtopic.php?id=996
Let me know if this solves your issue.
Regards
Sumitra
working fine now....(because i run oracle to on this machine)
now i have another problem:
for local address and extranal work fine but for example: google get error message.
i confige the userdata.properties as follow:
# Use external proxy server for http
ext.http.proxy.enable=true
ext.http.proxy.host=....openu.ac.il/proxy/op-g1.pac
ext.http.proxy.port=80
ext.http.proxy.auth.enable=false
ext.http.proxy.auth.name=kamlesh
ext.http.proxy.auth.password=password
# Use external proxy server for https
ext.https.proxy.enable=true
ext.https.proxy.host=proxy7.openu.ac.il
ext.https.proxy.port=80
ext.https.proxy.auth.enable=false
ext.https.proxy.auth.name=kamlesh
ext.https.proxy.auth.password=password
# There is only one bypass list for both secure and insecure.
ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.openu.ac.il|*.openu.local|147.233.*
this is my config file:
<browserTypes>
<browserType>
<name>chrome</name>
<displayName>Chrome</displayName>
<icon>chrome.png</icon>
<path>$LOCALAPPDATA\Google\Chrome\Application\chrome.exe</path>
<options>--user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=localhost:9999 --disable-popup-blocking</options>
<processName>chrome.exe</processName>
<capacity>5</capacity>
</browserType>
<browserType>
<name>firefox</name>
<displayName>Firefox</displayName>
<icon>firefox.png</icon>
<path>$ProgramFiles\Mozilla Firefox\firefox.exe</path>
<options>-profile "$userDir/browser/ff/profiles/sahi$threadNo" -no-remote</options>
<processName>firefox.exe</processName>
<capacity>5</capacity>
</browserType>
<!--
<browserType>
<name>firefox4</name>
<displayName>Firefox 4</displayName>
<icon>firefox.png</icon>
<path>$ProgramFiles\Mozilla Firefox 4.0 Beta 7\firefox.exe</path>
<options>-profile "$userDir/browser/ff/profiles/sahi$threadNo" -no-remote</options>
<processName>firefox.exe</processName>
<capacity>5</capacity>
</browserType>
-->
<browserType>
<name>ie</name>
<displayName>IE 8</displayName>
<icon>ie.png</icon>
<path>$ProgramFiles\Internet Explorer\iexplore.exe</path>
<options>-noframemerging</options>
<processName>iexplore.exe</processName>
<useSystemProxy>true</useSystemProxy>
<capacity>5</capacity>
</browserType>
<!--
<browserType>
<name>ie</name>
<displayName>IE 7</displayName>
<icon>ie.png</icon>
<path>$ProgramFiles\Internet Explorer\iexplore.exe</path>
<options></options>
<processName>iexplore.exe</processName>
<useSystemProxy>true</useSystemProxy>
<capacity>5</capacity>
</browserType>
-->
<!--
<browserType>
<name>ie</name>
<displayName>IE 6</displayName>
<icon>ie.png</icon>
<path>$ProgramFiles\Internet Explorer\iexplore.exe</path>
<options></options>
<processName>iexplore.exe</processName>
<useSystemProxy>true</useSystemProxy>
<capacity>5</capacity>
</browserType>
-->
<!--
<browserType>
<name>safari</name>
<displayName>Safari</displayName>
<icon>safari.png</icon>
<path>$ProgramFiles\Safari\Safari.exe</path>
<options> </options>
<processName>safari.exe</processName>
<useSystemProxy>true</useSystemProxy>
<capacity>1</capacity>
</browserType>
-->
<browserType>
<name>opera</name>
<displayName>Opera</displayName>
<icon>opera.png</icon>
<path>$ProgramFiles\Opera\opera.exe</path>
<options> </options>
<processName>opera.exe</processName>
<useSystemProxy>true</useSystemProxy>
<capacity>1</capacity>
</browserType>
</browserTypes>
and the user:
!**
! * Sahi - Web Automation and Test Tool
! *
! * Copyright 2006 V Narayan Raman
! *
! * Licensed under the Apache License, Version 2.0 (the "License");
! * you may not use this file except in compliance with the License.
! * You may obtain a copy of the License at
! *
! *
! *
! * Unless required by applicable law or agreed to in writing, software
! * distributed under the License is distributed on an "AS IS" BASIS,
! * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
! * See the License for the specific language governing permissions and
! * limitations under the License.
! **
# dirs. Relative paths are relative to userdata dir. Separate directories with semi-colon
scripts.dir=scripts;
# default log directory.
logs.dir=logs
# Directory where auto generated ssl cerificates are stored
certs.dir=certs
# Use external proxy server for http
ext.http.proxy.enable=true
ext.http.proxy.host=...openu.ac.il/proxy/op-g1.pac
ext.http.proxy.port=80
ext.http.proxy.auth.enable=false
ext.http.proxy.auth.name=kamlesh
ext.http.proxy.auth.password=password
# Use external proxy server for https
ext.https.proxy.enable=true
ext.https.proxy.host=proxy7.openu.ac.il
ext.https.proxy.port=80
ext.https.proxy.auth.enable=false
ext.https.proxy.auth.name=kamlesh
ext.https.proxy.auth.password=password
# There is only one bypass list for both secure and insecure.
ext.http.both.proxy.bypass_hosts=localhost|127.0.0.1|*.openu.ac.il|*.openu.local|147.233.*
Kindly have a look at the below url to configure an external proxy:
http://sahi.co.in/w/configuring-an-external-proxy
Let me know if you face any problem.
Regards
Sumitra
Now for IE and Opera the proxy change auto when i open the Sahi Dashboaed(and the port listning), but for CH and FF not change auto.
Follwing is the log file:(cant sent all because i get an error message:"New Members can not post links, images or email addresses until they become more active")
\oracle\BIToolsHome_1\bin;E:\oracle\BIToolsHome_1\jlib;E:\oracle\BIToolsHome_1\j
re\1.4.2\bin\client;E:\oracle\BIToolsHome_1\jre\1.4.2\bin;E:\oracle\ids10g\jdk\j
re\bin\classic;E:\oracle\ids10g\jdk\jre\bin;E:\oracle\ids10g\jdk\jre\bin\client;
E:\oracle\ids10g\jlib;E:\oracle\ids10g\bin;E:\oracle\ids10g\jre\1.1.8\bin;D:\WIN
NT\system32;D:\WINNT;D:\WINNT\system32\WBEM;D:\Program Files\Microsoft SQL Serve
r\90\Tools\binn\;D:\Program Files\Windows Imaging\;D:\Program Files\QuickTime\QT
System\;D:\Program Files\Java\jre6\bin\javaw.exe
SAHI_HOME: ..\..
SAHI_USERDATA_DIR: ..
SAHI_EXT_CLASS_PATH:
Sahi properties file =
Sahi user properties file =
rties
>>>> 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 Cont
roller
Reading browser types from:
xml
This is how Sahi works:
Profiles are been created for each instance of Firefox or Chrome when it is launched from Sahi in <sahi-home>/userdata/browser/ff/profiles.
Could you please delete all profiles for FF and Chrome in sahi/browser/ff/profiles folder , sahi/browser/Chrome/profiles folder and check if the profiles are been created properly?
Regards
Sumitra
I do what you ask.
Now: IE/OPERA/CH - Not get the PROXY of sahi AUTO.
FF - get the PROXY of sahi AUTO.
The problem is solved by following the below url :
http://sahi.co.in/w/configure-browser-proxy
Hence closing the topic.
Regards
Sumitra