ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Trying to deploy a virtual service, and getting timeout error it could not connect to 2013 port

book

Article ID: 237288

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

From the Workstation when trying to deploy a service, getting error it could not connect to 2013 port which is a VSE network port. 

java.rmi.RemoteException: JMS Messaging problem with ServerRequestHandler for ssl://VSEHostname:2013/VSE Could not connect to broker URL: ssl://VSEHostname:2013. Reason: java.net.ConnectException: Connection timed out: connect; nested exception is:

              com.itko.jms.JMSException: Could not connect to broker URL: ssl://VSEHostname:2013. Reason: java.net.ConnectException: Connection timed out: connect

              at com.itko.lisa.net.Transporter.init(Transporter.java:412)

              at com.itko.lisa.net.Transporter.<init>(Transporter.java:326)

              at com.itko.lisa.net.Transporter.createTransporter(Transporter.java:285)

              at com.itko.lisa.net.Transporter.getTransporter(Transporter.java:215)

              at com.itko.lisa.net.Transporter.transport(Transporter.java:161)

              at com.itko.lisa.net.Transactor.transact(Transactor.java:68)

              at com.itko.lisa.net.ClientBase.transact(ClientBase.java:359)

              at com.itko.lisa.net.ClientBase.invokeMethod(ClientBase.java:269)

              at com.itko.lisa.net.ClientBase.invokeMethod(ClientBase.java:242)

              at com.itko.lisa.net.VSEClient.getServiceNames(VSEClient.java:67)

              at com.itko.lisa.vse.ui.actions.DeployToVSEAction$1.doCallback(DeployToVSEAction.java:188)

              at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:195)

              at java.lang.Thread.run(Thread.java:745)

Caused by: com.itko.jms.JMSException: Could not connect to broker URL: ssl://VSEHostname:2013. Reason: java.net.ConnectException: Connection timed out: connect

              at com.itko.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)

              at com.itko.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:309)

              at com.itko.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:228)

              at com.itko.activemq.ActiveMQConnectionFactory.createQueueConnection(ActiveMQConnectionFactory.java:191)

              at com.itko.lisa.net.ActiveMQFactory.getRemoteQueueConnection(ActiveMQFactory.java:325)

              at com.itko.lisa.net.Transporter.getOrMakeConnection(Transporter.java:427)

              at com.itko.lisa.net.Transporter.init(Transporter.java:398)

              ... 12 more

Caused by: java.net.ConnectException: Connection timed out: 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 sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)

              at com.itko.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:497)

              at com.itko.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:460)

              at com.itko.activemq.util.ServiceSupport.start(ServiceSupport.java:53)

              at com.itko.activemq.transport.InactivityMonitor.start(InactivityMonitor.java:127)

              at com.itko.activemq.transport.TransportFilter.start(TransportFilter.java:58)

              at com.itko.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)

              at com.itko.activemq.transport.TransportFilter.start(TransportFilter.java:58)

              at com.itko.activemq.transport.TransportFilter.start(TransportFilter.java:58)

              at com.itko.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:289)

              ... 17 more

Cause

Few things might caused the issue:

. VSE started with actual hostname instead of the VIP name. 

. Workstation can't access the VSE server with the actual hostname and it needs to use the VIP name

Environment

All supported DevTest releases and platforms.

Resolution

Started VSE

Configured VirtualServiceEnvironmentService.vmoptions with the below properties to use VIP name

-Dlisa.registryName:ssl://VIPname:2010/RegistryName
-Dlisa.vseName:ssl://VIPname:2013/VSE
 
Then restarted VSE, which will start VSE with VIP name. Then goto Workstation and deploy VS, which will select the VSE with VIP name and deployed successfully.