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.

SAHI_ERROR when initialising browser from cucumber

hncpwhncpw Members
edited November -1 in Sahi - Open Source
Hi,

I am trying to automate a test with cucumber on OS X 10.7.2 but the opening of the browser is failing.

I have started the dashboard with dashboard.sh

When I run cucumber script, Firefox opens but the browser shows "SAHI_ERROR"

From the dashboard app is see a java exception with the message INFO: No SSL Client Cert specified

Please can you suggest how to resolve this?

Thanks, Chris.

OS Name: OS X 10.7.2
Browser Name and version: 7.0.1
Sahi Build: 2011-02-13

Comments

  • Hi hncpw,

    Can you let me know what is the start URL you are using on the browser?

    Regards
    Sumitra
  • Hi Sumitra,

    The start URL is Google. (The forum will not let me post the URL as I'm new but it is the full URL with the http protocol at the start.)

    I also see this error if I launch the browser direct from the Dashboard.

    Chris.
  • Hi hncpw,

    Use http://www.google.com as the start URL and check if this solves your issue.

    Can you check if you are getting the same error on other browsers as well.

    Also, post the contents of Sahi console.

    Regards
    Sumitra
  • Hi Sumitra

    For Firefox here is the java error trace:

    Nov 11, 2011 12:56:44 PM net.sf.sahi.ssl.SSLHelper getKeyManagerFactoryForRemoteFetch
    INFO: No SSL Client Cert specified
    Nov 11, 2011 12:56:44 PM net.sf.sahi.command.CommandExecuter execute
    WARNING: commandClass = >net.sf.sahi.command.Driver< commandMethod = >start<
    Nov 11, 2011 12:56:44 PM 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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:55)
    at net.sf.sahi.LocalRequestProcessor.handleDyn(LocalRequestProcessor.java:65)
    at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProcessor.java:38)
    at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:186)
    at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)
    Caused by: java.lang.NullPointerException
    at java.util.Hashtable.put(Hashtable.java:394)
    at java.util.Properties.setProperty(Properties.java:143)
    at net.sf.sahi.command.Player.proxyAutoResponse(Player.java:281)
    at net.sf.sahi.command.Player.autoJava(Player.java:252)
    at net.sf.sahi.command.Driver.start(Driver.java:113)
    ... 12 more

    For Safari, it opens but displays a page not found error.

    Chris.
  • Hi Chris,

    Can you try with the latest version of Sahi and check if this solves your issue.

    If you are still facing the same problem then kindly let me know how are you triggering the script from cucumber.

    Regards
    Sumitra
Sign In or Register to comment.