Unable to hit the virtual service in VSE - getting connection refused error
search cancel

Unable to hit the virtual service in VSE - getting connection refused error

book

Article ID: 134509

calendar_today

Updated On:

Products

CA Application Test Service Virtualization

Issue/Introduction

When trying to hit the virtual service which is hosted on the VSE, getting connection refused error in the response.

Getting the same error when we hit from DevTest test as well as from the application front end.

============================================================================ 
| HTTP 
============================================================================ 
| 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(AbstractPlainSocketImpl.java:350) 
  at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) 
  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) 
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) 
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) 
  at java.net.Socket.connect(Socket.java:589) 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:1074) at com.itko.lisa.test.CommTrans.send(CommTrans.java:843) 
  at com.itko.lisa.test.CommTrans.sendPOST(CommTrans.java:803) at com.itko.lisa.ws.rest.RESTNode.doSend(RESTNode.java:226) 
  at com.itko.lisa.ws.rest.RESTNode.doWebTrans(RESTNode.java:171) at com.itko.lisa.ws.rest.RESTNodeBase.execute(RESTNodeBase.java:380) 
  at com.itko.lisa.ws.rest.RESTNodeEditor$4.doCallback(RESTNodeEditor.java:1099) 
  at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:195) 
  at java.lang.Thread.run(Thread.java:745) 
  ============================================================================

Environment

All supported DevTest releases.

Cause

N/A

Resolution

Add the information to the VirtualServiceEnvironmentService.vmoptions file:


-Xmx2048M
-Dlisa.registryName=tcp://10.2xxx.xx:2010/Registry
-Dlisa.vseName=tcp://10.24xx.xx.xx:2013/VSE

Restart the VSE.