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 when retrieving data from mysql data base

edited November -1 in Sahi - Open Source
I have placed the 'jdbc6.5-1.2.jar' (the .jar is down loaded from http://jdbc.postgresql.org/download.html) at ..\sahi and
specified the path in sahi.bat, the path like this:
java -classpath ..lib/sahi.jar;C:/sahi/'jdbc6.5-1.2.jar; net.sf.sahi.Proxy and save the file.

When i double click on sahi.bat to start sahi server, the server starts and disappear.
when i run the script to fetch the data from mysql database, the test fails.

Can you please resolve my issue

Comments

  • Hi,

    Run your sahi.bat through command prompt. This way you will be able to see what error message is displayed before the proxy closes. that will help in troubleshooting the error.

    Regards,
    Pankaj.
  • I got following error message when run the sahi.bat through command prompt.

    java -classpath ..lib/sahi.jar;E:/PGIB_Sahi/sahi_20090225/sahi/jdbc6.5-1.2.jar; net.sf.sahi.Proxy
    Exception in thread "main" java.lang.NoClassDeFoundError: net/sf/sahi/Proxy

    please let know.

    Regards
    ashok
  • Hi,

    Change your sahi.bat to:
    java -classpath ..lib/sahi.jar net.sf.sahi.Proxy;E:/PGIB_Sahi/sahi_20090225/sahi/jdbc6.5-1.2.jar

    Regards,
    Pankaj.
  • narayannarayan Administrators
    Ashok,

    It should have been ../lib/sahi.jar. You missed the ../

    -Narayan
  • Hi Narayan,
    I have mentioned the same in comment #3, i did not miss ../.
    Can you please correct me where i have done mistake.

    Regards
    Ashok
  • Thanks Narayan for the correction :)

    Ashok do you still get the same error after changing your sahi.bat?
  • Hi,

    Thanks Narayan & Pankaj.

    The issue has resolved.

    Regards
    Ashok
Sign In or Register to comment.