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.

Cannot create more than 5 recordings via API

book

Article ID: 187636

calendar_today

Updated On:

Products

CA Cloud Test Mobile CA Application Test

Issue/Introduction

I’ve created a python tool which calls the API (http://<host>:1505/lisa-virtualize-invoke/api/v2/ )
With the tool, I can create and start recording, stop them, …
 
Creating on recording this way is easy, recording start and I can do whatever I want.
Now, if I create more than 4 recordings at the same time on the VSE, then:
-          From portal, recording list on the VSE cannot be done anymore, there seems to be a timeout
-          Recordings cannot be stopped from API (Timeout)
-          Recordings or other service operation cannot be done on this VSE, they are simply not taken into account. Errors are displayed on top of the VSE view (“cannot get recording list” or something like that)
-          Logs show message:
019-10-08 13:13:55,228Z (15:13) [Event Sink Thread Pool Thread 2] INFO  com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl - Lost connection to DevTest Registry, retrying
java.rmi.RemoteException: Timeout (60,000 ms, actual wait 60,001 ms) on server object tcp://10.204.90.52:2010/Registry on method putVirtualServiceEnvironment
        at com.itko.lisa.net.Transactor.transact(Transactor.java:109)
        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.RegistryClient.putVirtualServiceEnvironment(RegistryClient.java:452)
        at com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl.setTestRegistry(VirtualServiceEnvironmentImpl.java:832)
        at com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl.checkOnTestRegistry(VirtualServiceEnvironmentImpl.java:2053)
        at com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl.pulse(VirtualServiceEnvironmentImpl.java:1702)
        at com.itko.util.Pulse.execPulse(Pulse.java:521)
        at com.itko.util.Pulse.eventReceipt(Pulse.java:491)
        at com.itko.util.EventThread.execEvents(ThreadedEventSink.java:79)
        at com.itko.util.EventThread.run(ThreadedEventSink.java:59)
2019-10-08 13:13:55,239Z (15:13) [Event Sink Thread Pool Thread 2] ERROR com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl - Unable to re-acquire DevTest Registry
java.rmi.RemoteException: JMS Messaging problem with ServerRequestHandler for tcp://10.204.90.52:2013/VSE Could not connect to broker URL: tcp://10.204.90.52:2013?wireFormat.maxInactivityDuration=0.
Reason: java.net.ConnectException: Connection refused; nested exception is:
        com.itko.jms.JMSException: Could not connect to broker URL: tcp://10.204.90.52:2013?wireFormat.maxInactivityDuration=0. Reason: java.net.ConnectException: Connection refused
        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.getLisaVersion(VSEClient.java:50)
        at com.itko.lisa.coordinator.TestRegistryImpl.getComponentBeanEx(TestRegistryImpl.java:1129)
        at com.itko.lisa.coordinator.TestRegistryImpl.putVirtualServiceEnvironment(TestRegistryImpl.java:1105)
        at sun.reflect.GeneratedMethodAccessor675.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.itko.lisa.net.RemoteMethodExec.execute(RemoteMethodExec.java:57)
        at com.itko.lisa.net.ServerRequestHandler.processRMIMessage(ServerRequestHandler.java:533)
        at com.itko.lisa.net.ServerRequestHandler.access$600(ServerRequestHandler.java:70)
        at com.itko.lisa.net.ServerRequestHandler$5.run(ServerRequestHandler.java:451)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.itko.jms.JMSException: Could not connect to broker URL: tcp://10.204.90.52:2013wireFormat.maxInactivityDuration=0. Reason: java.net.ConnectException: Connection refused
        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:323)
        at com.itko.lisa.net.Transporter.getOrMakeConnection(Transporter.java:427)
        at com.itko.lisa.net.Transporter.init(Transporter.java:398)
        ... 23 more
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.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.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(ActiveMQConnectionFactory.java:289)
        ... 28 more
 
 
-------------------------------------------------------------------------------------------------------------------------
DevTest Registry does not know me, so will reset.
2019-10-08 13:08:55,109Z (15:08) [Event Sink Thread Pool Thread 2] INFO  com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl - Lost connection to DevTest Registry, retrying
java.rmi.RemoteException: Timeout (60,000 ms, actual wait 60,000 ms) on server object tcp://10.204.90.52:2010/Registry on method putVirtualServiceEnvironment
        at com.itko.lisa.net.Transactor.transact(Transactor.java:109)
        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.RegistryClient.putVirtualServiceEnvironment(RegistryClient.java:452)
        at com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl.setTestRegistry(VirtualServiceEnvironmentImpl.java:832)
        at com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl.checkOnTestRegistry(VirtualServiceEnvironmentImpl.java:2053)
        at com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl.pulse(VirtualServiceEnvironmentImpl.java:1702)
        at com.itko.util.Pulse.execPulse(Pulse.java:521)
        at com.itko.util.Pulse.eventReceipt(Pulse.java:491)
        at com.itko.util.EventThread.execEvents(ThreadedEventSink.java:79)
        at com.itko.util.EventThread.run(ThreadedEventSink.java:59)
2019-10-08 13:08:55,111Z (15:08) [Event Sink Thread Pool Thread 2] ERROR com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl - Unable to re-acquire DevTest Registry
 
 
============================================================================
| Exception:
============================================================================
| Message:     A VSE Server has already been registered in the specified DevTest Registry using the name: tcp://10.204.90.52:2013/[email protected]Default.
----------------------------------------------------------------------------

-          Registry logs:
ERROR com.ca.sv.invoke.controller.v2.RecorderController - Timeout (60,000 ms, actual wait 60,000 ms) on server object tcp://10.204.90.52:2013/vs
Builder on method getRecordings
java.rmi.RemoteException: Timeout (60,000 ms, actual wait 60,000 ms) on server object tcp://10.204.90.52:2013/vsBuilder on method getRecordings

-          VSE still reply to requests to deployed services
-          VSE do not consume a lot of CPU or memory
-          A restart of VSE service does not change anything.

Environment

Release : 10.4

Component : CA Service Virtualization

Resolution

We find this as a defect while starting parallel recordings of 7 or more through API calls. Please raise a support case to get the patch shared in defect#  DE435209