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.
Runninb Sahi on Ubuntu Desktop 12.04 LTS
I am in the process of evaluating Sahi, and am having difficulties with the configuration for Ubuntu. The application apears to install correctly and I am able to load the dashboard without error using the following command: sudo bash sahi.sh and no errors appear in the console. However when attempting to execute a basic RoR acceptance test (as seen in the example:ruby-sahi-with-cucumber.html) through firefox on the same system an execption is thrown.
The web page displays only "SAHI_ERROR" and the proxy console displays the following:
Jun 28, 2012 10:21:59 AM net.sf.sahi.command.CommandExecuter execute
WARNING: commandClass = >net.sf.sahi.command.Driver< commandMethod = >start<
Jun 28, 2012 10:21:59 AM net.sf.sahi.command.CommandExecuter execute
WARNING: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:55)
at net.sf.sahi.LocalRequestProcessor.handleDyn(LocalRequestProcessor.java:66)
at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProcessor.java:39)
at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:201)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:76)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:432)
at java.util.Properties.setProperty(Properties.java:161)
at net.sf.sahi.command.Player.proxyAutoResponse(Player.java:339)
at net.sf.sahi.command.Player.autoJava(Player.java:310)
at net.sf.sahi.command.Driver.start(Driver.java:114)
... 12 more
Environment specifics:
Java
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
Ruby
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Rails
3.2.1
The web page displays only "SAHI_ERROR" and the proxy console displays the following:
Jun 28, 2012 10:21:59 AM net.sf.sahi.command.CommandExecuter execute
WARNING: commandClass = >net.sf.sahi.command.Driver< commandMethod = >start<
Jun 28, 2012 10:21:59 AM net.sf.sahi.command.CommandExecuter execute
WARNING: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:55)
at net.sf.sahi.LocalRequestProcessor.handleDyn(LocalRequestProcessor.java:66)
at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProcessor.java:39)
at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:201)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:76)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:432)
at java.util.Properties.setProperty(Properties.java:161)
at net.sf.sahi.command.Player.proxyAutoResponse(Player.java:339)
at net.sf.sahi.command.Player.autoJava(Player.java:310)
at net.sf.sahi.command.Driver.start(Driver.java:114)
... 12 more
Environment specifics:
Java
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
Ruby
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Rails
3.2.1
Comments
Please try it with Java 1.6 and this might solve your problem.
Thanks,