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.

The script is not running after changes done in sahi.bat

edited November -1 in Sahi - Open Source
Hi,

My sahi.bat file contain below code for supporting mysql database. When i double click on sahi.bat, lauches sahi server successfully. No issues with Sahi.bat.

SET EXT_CLASS_PATH=;
SET EXT_CLASS_PATH=%EXT_CLASS_PATH%;..\extlib\db\mysql-connector-java-5.0.4-bin.jar
SET SAHI_CLASS_PATH=..\lib\sahi.jar;..\extlib\rhino\js.jar;..\extlib\apc\commons-codec-1.3.jar
SET MOZ_NO_REMOTE=1
java -classpath ../lib/sahi.jar;E:/PGIB_Sahi/sahi_20090225/sahi/jdbc6.5-1.2.jar; net.sf.sahi.Proxy


After running the sahi.bat, I have opened google web page and opened sahi controller.
1. Now go to Playback tab in sahi controller, select the script file and click on set.
2. Now click on Play.

The following message displayed under statements in sahi controller.
Please open the Controller again.
(Press CTRL ALT-DblClick on the main window.)

If i repeat the above 1 & 2 steps, the same message getting displayed.

I have closed sahi controller and repeated above steps, the same message getting displayed.


The following message gets displayed in sahi server(command prompt)

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:52)
at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProces
sor.java:42)
at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:218)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:78)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at net.sf.sahi.command.Player.getCurrentStep(Player.java:115)
... 9 more

I have verified at my end. I am not getting where was the mistake.

Can you please help me.

Regards
Ashok

Comments

Sign In or Register to comment.