DELETE service call is not removing service from portal console

book

Article ID: 140938

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

During identification of the above problem, I did some tests with less recordings (5). Recordings started successfully but when stopping via API, I got
2019-10-08 13:26:13,754Z (15:26) [ServerRequestResponder 5] WARN  com.itko.lisa.net.RemoteMethodExec - InvocationTargetException on invoke removeRecording
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        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: java.lang.NullPointerException
        at java.nio.file.Files.provider(Files.java:97)
        at java.nio.file.Files.newOutputStream(Files.java:216)
        at java.nio.file.Files.newBufferedWriter(Files.java:2860)
        at java.nio.file.Files.newBufferedWriter(Files.java:2896)
        at com.ca.sv.vsbuilder.VSBuilderSessionCatalogEntry.saveBuilderSessionToFile(VSBuilderSessionCatalogEntry.java:99)
        at com.ca.sv.vsbuilder.VSBuilderSessionCatalogEntry.deregisterActiveProducer(VSBuilderSessionCatalogEntry.java:633)
        at com.ca.sv.recorder.Recorder.stopRecording(Recorder.java:144)
        at com.ca.sv.remote.VSBuilderImpl.removeRecording(VSBuilderImpl.java:293)
        ... 13 more

Environment

Release : 10.4

Component : CA Service Virtualization

Resolution

Service API call "DELETE /vses/{vseId}/recorders/{recorderId}" will stop the recording virtual service. But, it will not delete the service from portal. 

If you want to remove the stopped service, login to portal and choose "Remove from VSE" option after right click on service name.
If you submit the transaction multiple times, you will get an error message which you have shared.
And the "NullPointerException" reported in case description is a warning message and it can be ignored.