JMS Messaging problem with ServerRequestHandler for tcp://APPDVTFN1:2013/Func_VSE Could not connect to broker Reason: java.net.UnknownHostException
search cancel

JMS Messaging problem with ServerRequestHandler for tcp://APPDVTFN1:2013/Func_VSE Could not connect to broker Reason: java.net.UnknownHostException

book

Article ID: 212685

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Problem Description:
******************************
We encountered problem to deploy a virtual service to DevTest environment in Bay Pines. Both Functional and Performance servers give error message below. I highlighted a potential problem – it uses host name “tcp://APPDVTFN1:2013" Instead of fully qualified names

functional VSE - APPDVTFN1.pt1.pt2.pt3.pt4

Performance VSE - APPDVTVS1.pt1.pt2.pt3.pt4


java.rmi RemoteException: JMS Messaging problem with ServerRequestHandler for tcp://APPDVTFN1:2013/Func_VSE Could not connect to broker URL: tcp://APPDVTFN1:2013?wireFormat.maxInactivityDuration=0. Reason: java.net.UnknownHostException: APPDVTFN1; nested exception is:
               com.itko.jms.JMSException: Could not connect to broker URL: tcp://APPDVTFN1:2013?wireFormat.maxInactivityDuration=0. Reason: java.net.UnknownHostException: APPDVTFN1
               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: tcp://APPDVTFN1:2013?wireFormat.maxInactivityDuration=0. Reason: java.net.UnknownHostException: APPDVTFN1
               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.UnknownHostException: APPDVTFN1
               at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
               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 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(ActiveMQConnect

Environment

* DevTest 10.5.0
* All server components running on Windows 2012 R2
  IAM, Enterprise Dashboard, Registry and Portal running on the same machine
  Coordinator, Simulator and both VSEs running on separate machines.
* No DevTest patches applied.

Cause

Deploying VSM from Workstation to both the functional and performance VSEs on the test environment and get error.

This is a test environment that is not used as much and seems to be working as of last Friday, 04/09/2021.

Starting on Monday, the error now occurs.

No known changes have been made in this environment.

From the Registry Monitor on the Workstation the Virtual Service tab is showing MIA VSE for both functional and performance VSEs.

Able to ping and telnet to both machines from the Workstation machine.

Resolution

1. Added these properties to the VirtualServiceEnvironmentService.vmoptions file on the functional VSE machine:

-Dlisa.registryName=tcp://APPDVTRG1.pt1.pt2.pt3.pt4:2010/Registry
-Dlisa.vseName=tcp://APPDVTFN1.pt1.pt2.pt3.pt4:2013/Func_VSE

2. Added this property to the VirtualServiceEnvironmentService.vmoptions file on the performance VSE machine:

-Dlisa.registryName=tcp://APPDVTRG1.pt1.pt2.pt3.pt4:2010/Registry
-Dlisa.vseName=tcp://APPDVTVS1.pt1.pt2.pt3.pt4:2013/Perf_VSE

3. Brought down Portal, Registry, Enterprise Dashboard and IAM services in this order.

4. Deleted folder C:\Program Files\CA\Devtest\lisatmp_10.5.0 on this machine.

5. Noticed there was a C:\Program Files\CA\Devtest\tmp.txt file but no C:\Program Files\CA\Devtest\tmp folder.  The tmp folder is where OOM hprof files get written to, not sure why there was no folder, so created one and then rename the tmp.txt file to something else.

6. Started IAM, Enterprise Dashboard, Registry and Portal services.

7. Brought down function and performance VSEs.

8. Deleted folder C:\Program Files\CA\Devtest\lisatmp_10.5.0 on both machines.

9. Was then able to deploy with no errors.

Next Actions - Customer
*****************************
1. On the Coordinator machine add these properties to the CoordinatorService.vmoptions file:

-Dlisa.registryName=tcp://APPDVTRG1.pt1.pt2.pt3.pt4:2010/Registry
-Dlsa.lisa.coordName=//<fully qualified name of Coord machine>:2011/Coordinator

2. Restart Coordinator service.

3. On the Simulator machine add these properties to the SimulatorService.vmoptions file:

-Dlisa.registryName=tcp://APPDVTRG1.pt1.pt2.pt3.pt4:2010/Registry
-Dlsa.lisa.simulatorName=//<fully qualified name of Sim machine>:2014/Simulator

4. Restart Simulator service.