Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ sahipro.com with your query.

Browser not opening from dashboard

vijaysaimsvijaysaims Members
edited April 2013 in Sahi - Open Source
I'm facing issue with opening any browser from the dashboard. The console shows an error as below. Due to this I'm stuck and unable to proceed with scripting. Please help


---
--- ERROR: Port 9999 is already being used ---
---
C:\Program Files\Mozilla Firefox\firefox.exe -profile "D:\Sahi\userdata/browser/
ff/profiles/sahi0" -no-remote http://sahi.example.com/_s_/dyn/Driver_initialized

Apr 26, 2013 3:55:41 PM net.sf.sahi.ui.Dashboard execCommand
SEVERE: null
java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The
system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at net.sf.sahi.util.Utils.executeCommand(Utils.java:528)
at net.sf.sahi.ui.Dashboard.execCommand(Dashboard.java:283)
at net.sf.sahi.ui.Dashboard.access$600(Dashboard.java:49)
at net.sf.sahi.ui.Dashboard$4$1.run(Dashboard.java:270)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 7 more

Answers

  • Hi VijaySaims,

    Please have a look at the below link,

    http://sahi.co.in/forums/discussion/2953/error-port-9999-is-already-being-used/p1

    Good Luck !!!

    -Umashankar
  • Followed the steps and then opened browser from dashboard. Now the following error is displayed in the console. Please help.

    D:\Sahi\userdata\bin>SET SAHI_HOME=..\..

    D:\Sahi\userdata\bin>SET SAHI_USERDATA_DIR=..

    D:\Sahi\userdata\bin>SET SAHI_EXT_CLASS_PATH=

    D:\Sahi\userdata\bin>CALL ..\..\bin\dashboard.bat
    SAHI_HOME: ..\..
    SAHI_USERDATA_DIR: ..
    SAHI_EXT_CLASS_PATH:
    Sahi properties file = D:\Sahi\config\sahi.properties
    Sahi user properties file = D:\Sahi\userdata\config\userdata.properties
    >>>> 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: D:\Sahi\userdata\config\browser_types.xml
    Firefox 4 was not found at C:\Program Files\Mozilla Firefox 4.0 Beta 7\firefox.e
    xe
    Chrome was not found at C:\Users\dme421\AppData\Local\Google\Chrome\Application\
    chrome.exe
    C:\Program Files\Internet Explorer\iexplore.exe -noframemerging http://sahi.exam
    ple.com/_s_/dyn/Driver_initialized
    Apr 26, 2013 5:30:59 PM net.sf.sahi.ui.Dashboard execCommand
    SEVERE: null
    java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The
    system cannot find the file specified
    at java.lang.ProcessBuilder.start(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at java.lang.Runtime.exec(Unknown Source)
    at net.sf.sahi.util.Utils.executeCommand(Utils.java:528)
    at net.sf.sahi.ui.Dashboard.execCommand(Dashboard.java:283)
    at net.sf.sahi.ui.Dashboard.access$600(Dashboard.java:49)
    at net.sf.sahi.ui.Dashboard$4$1.run(Dashboard.java:270)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
    e file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(Unknown Source)
    at java.lang.ProcessImpl.start(Unknown Source)
    ... 7 more
  • Have a look at the below link to configure browser proxy:

    http://sahi.co.in/w/configure-browser-proxy
Sign In or Register to comment.