AnsweredAssumed Answered

Help me in Resolving this error (java.net.ConnectException: Connection refused: connect) in my test.

Question asked by SaikiranGarapati on Feb 4, 2016
Latest reply on Feb 5, 2016 by SaikiranGarapati

Hi Folks,

 

Please find below I am getting it while I am trying to execute in my test. Pease let me know how to resolve this?

 

============================================================================
|

============================================================================
| HTTP
============================================================================
| Step:        new user
----------------------------------------------------------------------------
| Message:     java.net.ConnectException: Connection refused: connect
----------------------------------------------------------------------------
| Trapped Exception: Connection refused: connect
| Trapped Message:   java.net.ConnectException: Connection refused: connect
----------------------------------------------------------------------------
STACK TRACE
java.net.ConnectException: Connection refused: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)
at com.itko.lisa.test.ReuseSocketHttpProtocolSocketFactory.connectSocket(ReuseSocketHttpProtocolSocketFactory.java:30)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1005)
at com.itko.lisa.test.CommTrans.send(CommTrans.java:801)
at com.itko.lisa.test.CommTrans.sendGET(CommTrans.java:748)
at com.itko.lisa.test.URLTrans.doSend(URLTrans.java:280)
at com.itko.lisa.test.URLTrans.doWebTrans(URLTrans.java:222)
at com.itko.lisa.test.URLTransBase.execute(URLTransBase.java:491)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:977)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1229)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1144)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1129)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1048)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:961)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)
============================================================================

============================================================================
| Step:        new user
----------------------------------------------------------------------------
| Message:     Connection refused: connect
----------------------------------------------------------------------------
| Trapped Exception: Connection refused: connect
| Trapped Message:   java.net.ConnectException: Connection refused: connect
----------------------------------------------------------------------------
STACK TRACE
java.net.ConnectException: Connection refused: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117)
at com.itko.lisa.test.ReuseSocketHttpProtocolSocketFactory.connectSocket(ReuseSocketHttpProtocolSocketFactory.java:30)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1005)
at com.itko.lisa.test.CommTrans.send(CommTrans.java:801)
at com.itko.lisa.test.CommTrans.sendGET(CommTrans.java:748)
at com.itko.lisa.test.URLTrans.doSend(URLTrans.java:280)
at com.itko.lisa.test.URLTrans.doWebTrans(URLTrans.java:222)
at com.itko.lisa.test.URLTransBase.execute(URLTransBase.java:491)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:977)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1229)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1144)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1129)
at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1048)
at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)
at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:961)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Unknown Source)
============================================================================

Outcomes