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.

UnknownHostException: sb.google.com

kevinkolekevinkole Members
edited October 2008 in Sahi - Open Source
Hi I'm using sahi in a VM of Windows XP, it is limited to my host computer's network which means it's IP range is limited.
Running on Firefox 2.0.0.17, latest version of Sahi (from website, not repository).
I was able to get it working under the same setup yesterday, but I did encounter the same error when I first start up Sahi. It seems I have to click through the Controller several times before the recorded scripts actually execute properly; almost as if Sahi needed to warm up with some stretches and cardio :)

Nothing appears in the Queue, but I do see the Parsed Script and original Script; the Execution Log is not showing anything helpful, just "Starting Script" and "Stopping Script"
I get the Controller fine, but when I click on Play nothing happens and eventually I get the following error in the console where I started Sahi:
java.net.UnknownHostException: sb.google.com
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at net.sf.sahi.util.SocketPool.get(SocketPool.java:78)
        at net.sf.sahi.RemoteRequestProcessor.getReusableSocket(RemoteRequestProcessor.java:136)
        at net.sf.sahi.RemoteRequestProcessor.getNormalSocket(RemoteRequestProcessor.java:131)
        at net.sf.sahi.RemoteRequestProcessor.getSocketToHost(RemoteRequestProcessor.java:115)
        at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:69)
        at net.sf.sahi.RemoteRequestProcessor.processHttp(RemoteRequestProcessor.java:62)
        at net.sf.sahi.ProxyProcessor.processAsProxy(ProxyProcessor.java:118)
        at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:78)
        at java.lang.Thread.run(Unknown Source)
Rhino lib:script ended.
End of script
The script that I am trying to run is demo/execute.sah
The problem occurs with any script regardless of how simple.

Comments

  • Even more strange, after I closed Sahi, turned off HTTP Keep-Alive in sahi.properties; immediately upon restarting Sahi.bat, I get these errors:
    >>>> 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 Controller
    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(LocalRequestProcessor.java:42)
            at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:206)
            at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:71)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
            at net.sf.sahi.command.Player.getCurrentStep(Player.java:106)
            ... 9 more
    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(LocalRequestProcessor.java:42)
            at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:206)
            at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:71)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
            at net.sf.sahi.command.Player.getCurrentStep(Player.java:106)
            ... 9 more
    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(LocalRequestProcessor.java:42)
            at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:206)
            at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:71)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
            at net.sf.sahi.command.Player.getCurrentStep(Player.java:106)
            ... 9 more
    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(LocalRequestProcessor.java:42)
            at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:206)
            at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:71)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
            at net.sf.sahi.command.Player.getCurrentStep(Player.java:106)
            ... 9 more
    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(LocalRequestProcessor.java:42)
            at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:206)
            at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:71)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
            at net.sf.sahi.command.Player.getCurrentStep(Player.java:106)
            ... 9 more
    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(LocalRequestProcessor.java:42)
            at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:206)
            at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:71)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
            at net.sf.sahi.command.Player.getCurrentStep(Player.java:106)
            ... 9 more
    
  • kevinkolekevinkole Members
    edited October 2008
    Now it's reporting that my script isn't found... I did not make any changes, did not even restart Sahi. It was working fine after the funny warm-up, then I tried running the script again and it say:
    _log("Script: C:\\qa\\workspace\\sahi\\bin\\..\\scripts\\wip\\addressbook.sah does not exist.", "failure");
    
Sign In or Register to comment.