API endpoint throws NullPointerException

book

Article ID: 193685

calendar_today

Updated On:

Products

CLOUDTEST CA Application Test CA Cloud Test Mobile MOBILECLOUD Service Virtualization

Issue/Introduction

When using the API endpoints provided by CA LISA Invoke 2.0 (https://svl-vse-uat.pncint.net:1505/api/swagger/#!/VSEs) to manage virtual services start/stop, update, change executionMode/thinkScale, virtual services crashing and throwing the below response:

{

    "id": 1007,

    "addInfo": "\r\njava.lang.NullPointerException\r\n\tat com.itko.lisa.coordinator.VirtualServiceCoordinator.ensureProjectTree(VirtualServiceCoordinator.java:656)\r\n\tat com.itko.lisa.coordinator.VirtualServiceImpl.start(VirtualServiceImpl.java:1063)\r\n\tat com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl.startTheService(VirtualServiceEnvironmentImpl.java:1472)\r\n\tat com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl.startService(VirtualServiceEnvironmentImpl.java:1438)\r\n\tat sun.reflect.GeneratedMethodAccessor396.invoke(Unknown Source)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat com.itko.lisa.net.RemoteMethodExec.execute(RemoteMethodExec.java:57)\r\n\tat com.itko.lisa.net.ServerRequestHandler.processRMIMessage(ServerRequestHandler.java:533)\r\n\tat com.itko.lisa.net.ServerRequestHandler.access$600(ServerRequestHandler.java:70)\r\n\tat com.itko.lisa.net.ServerRequestHandler$5.run(ServerRequestHandler.java:451)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n\r\n"

}

Using the following API : http://sRegistryHostname:1505/api/Dcm with the following methods and end points :

 

Cause

Intermittent issue when MAR file is not available

Environment

Release : 10.x

Component : CA Service Virtualization

Resolution

The intermittent failures are happening mainly due to MAR access problem. When the MAR is not available the reported exceptions happen.

Below are the VS status codes and what it means.

0 - Virtual Service is loaded

1 - Virtual Service is starting

2 - Virtual Service is running

3 - Virtual Service is stopping

4 - Virtual Service is ended.

Attachments