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 could not connect to the desired URL

testerguy54testerguy54 Members
edited November -1 in Sahi - Open Source
I recently started receiving this message and I have no idea what happened. Can you help me with this? I am no longer able to navigate to our internal sites via Sahi, all other sites work fine. Navigating to these sites outside of Sahi works fine. We don't use an external proxy and the server is not down... Here's the message from Sahi...



Sahi could not connect to the desired URL


Either the remote server is down or not reachable
If the web site is not accessible even when the browser proxy configuration is removed, it means the server is down.
or


You need an external proxy to be configured.
If you normally require to use another proxy to connect to external websites, you need to configure Sahi to use that proxy.

You can configure the external proxy by editing
<sahi_root>/userdata/config/userdata.properties and setting these properties:

Comments

  • Hi testerguy54,

    Could you please check if the proxy is set to the browser?

    Are you facing this problem in all the browsers?

    Regards
    sumitra
  • Hi Sumitra,

    I am getting the same problem while accessing my application using sahi. i am facing this problem in all the browsers

    Please guide me
  • narayannarayan Administrators
    Srinath_Sahi,

    Do you see any exception on the Sahi console? If yes, could you please paste it here?

    Regards,
    Narayan
  • Hi Narayan,

    Following is the exception :

    Feb 07, 2012 7:15:18 PM net.sf.sahi.ssl.SSLHelper getKeyManagerFactoryForRem
    etch
    INFO: No SSL Client Cert specified
    Feb 07, 2012 7:15:25 PM net.sf.sahi.RemoteRequestProcessor processHttp
    WARNING: Returning CannotConnectResponse for:
    irefox/headlines.xml
    Feb 07, 2012 7:15:39 PM net.sf.sahi.command.CommandExecuter execute
    WARNING: commandClass = > < commandMethod = >execute<
    Feb 07, 2012 7:15:39 PM net.sf.sahi.command.CommandExecuter execute
    WARNING: java.lang.ClassNotFoundException:
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at net.sf.sahi.util.ClassLoadHelper.getClass(ClassLoadHelper.java:24
    at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:
    at net.sf.sahi.LocalRequestProcessor.handleDyn(LocalRequestProcessor
    a:67)
    at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestPr
    sor.java:40)
    at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:209
    at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
    at java.lang.Thread.run(Unknown Source)


    Thanks,
    Srinath
  • I had to pullout the Url's from the content to past it.

    Thanks,
    Srinath
  • Hi Srinath,

    Kindly have a look at below URLs:

    http://sahi.co.in/forums/viewtopic.php?id=2277

    http://sahi.co.in/forums/viewtopic.php?id=2736

    Check if this solves your issue.

    Regards
    sumitra
  • Srinath_SahiSrinath_Sahi Members
    edited April 2012
    Hi sumitra,

    I am unable to find what driver jar need to add in Class path to resolve this issue.

    Please help me

    Thanks,
    Srinath
Sign In or Register to comment.