Rest API step in Dev Test throwing NullpointerException
search cancel

Rest API step in Dev Test throwing NullpointerException

book

Article ID: 193285

calendar_today

Updated On:

Products

CA Cloud Test Mobile CA Application Test

Issue/Introduction

We are facing challenges in executing a Rest API step in Dev Test. We are currently displayed with the below error,

 

2020-06-09 06:16:46,653Z (02:16) [ProcDlgThreadCallbk@6a5b3b4d] DEBUG com.itko.lisa.test.TestExec    - setStateValue 'LASTRESPONSE' to '

============================================================================
| HTTP
============================================================================
| Message:     java.lang.NullPointerException
----------------------------------------------------------------------------
| Trapped Exception: null
| Trapped Message:   java.lang.NullPointerException
----------------------------------------------------------------------------
STACK TRACE
java.lang.NullPointerException
 at java.util.Objects.requireNonNull(Objects.java:203)
 at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
 at java.util.Arrays.asList(Arrays.java:3800)
 at com.itko.lisa.http.SSLSocketFactoryHelper.setupSocket(SSLSocketFactoryHelper.java:183)
 at com.itko.lisa.http.SSLSocketFactoryHelper$1.prepareSocket(SSLSocketFactoryHelper.java:143)
 at org.apache.http.conn.ssl.SSLSocketFactory.internalPrepareSocket(SSLSocketFactory.java:501)
 at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:553)
 at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:435)
 at org.apache.http.impl.conn.DefaultClientConnectionOperator.updateSecureConnection(DefaultClientConnectionOperator.java:216)
 at org.apache.http.impl.conn.ManagedClientConnectionImpl.layerProtocol(ManagedClientConnectionImpl.java:394)
 at org.apache.http.impl.client.DefaultRequestDirector.establishRoute(DefaultRequestDirector.java:814)
 at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:615)
 at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
 at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
 at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
 at com.itko.lisa.test.CommTrans.doSend(CommTrans.java:1074)
 at com.itko.lisa.test.CommTrans.send(CommTrans.java:843)
 at com.itko.lisa.test.CommTrans.sendGET(CommTrans.java:767)
 at com.itko.lisa.ws.rest.RESTNode.doSend(RESTNode.java:221)
 at com.itko.lisa.ws.rest.RESTNode.doWebTrans(RESTNode.java:171)
 at com.itko.lisa.ws.rest.RESTNodeBase.execute(RESTNodeBase.java:380)
 at com.itko.lisa.ws.rest.RESTNodeEditor$4.doCallback(RESTNodeEditor.java:1099)
 at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:195)
 at java.lang.Thread.run(Thread.java:745)
============================================================================

Environment

Release : 10.3

Component : CA Application Test

Resolution

Follow below steps to resolve the issue
 
*)    Close the workstation
*)   Add below line to Workstation.vmoptions file
          -Dhttps.protocols=TLSv1,TLSv1.2,TLSv1.1
*)   Change logging level from DEBUG to INFO mode in logging.properties file with below change
           log4j.rootCategory=DEBUG,A1
*)   Open the workstation and verify the issue.