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.

Connection refused: connect

rajeshrajesh Members
edited November -1 in Sahi - Open Source
hi

I have configured my java code with eclipse. afterthat i try to run my java file

i m getting below error message in console

OS: XP
Version : V35
IDE : Eclipse

Sahi properties file = C:\Documents and Settings\560622\sahi\config\sahi.properties
Sahi user properties file = C:\Documents and Settings\560622\sahi\userdata\config\userdata.properties
java.net.ConnectException: Connection refused: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:320)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:181)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:163)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:154)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:390)
at java.net.Socket.connect(Socket.java:578)
at java.net.Socket.connect(Socket.java:527)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)


...........
...........


...........


Kindly help me on this issue

regards
Rajesh

Comments

  • You need to make sure sahi is running!
    Run C:\Documents and Settings\560622\sahi\userdata\bin\start_dashboard.bat
  • HI All,

    I am also facing same problem when i try to run my script in eclipse .
    Yes if i go to sahi\userdata\bin\start_dashboard.bat and click it . manually it is working .
    But not through my java script.

    Please do the needfull
  • It may be helpful to call Proxy.start(). But I am not sure as I never tried scripting in Java
Sign In or Register to comment.