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.

Getting a java.lang.NullPointerException Error with DevTest FTP Step


Article ID: 7774


Updated On:


CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder)


I am trying to Upload/Download a txt file from FTP server on Linux using a DevTest FTP Step.  When I execute the step, I am getting a java.lang.NullPointerException (NPE).



| Exception:


| Step: FTP


| Message: java.lang.NullPointerException


| Trapped Exception: null

| Trapped Message: java.lang.NullPointerException




at com.amoebacode.ftp.FTPUtil.isFTPResponse(

at com.amoebacode.ftp.FTPSocket.getServerResponse(

at com.amoebacode.ftp.FTPSocket.openConnection(


at com.amoebacode.ftp.FTPClient.openConnection(


The FTP step lets you send or receive a file using the FTP protocol. After entering the FTP information, user name, and user password, you can either upload a file or download a file.

You can get this type of errors if 1) the FTP Server is not running on the Host machine or 2) the user you are using to access the Host does not have the right permissions.

In this example it was a permissions issue on the FTP Server.



DevTest 10.1.0, but should work for all releases that have the FTP Step.


In the below example my Host Linux machine  My User is test.  The file I am wanting to get is also called test and happens to be in my /home/test folder.


From a command prompt from the client machine:



Connected to

220 (vsFTPd 3.0.2)

User ( test

331 Please specify the password.


230 Login successful.

ftp> get test

200 PORT command successful. Consider using PASV.

150 Opening ASCII mode data connection for test (12 bytes).

226 Transfer complete.

ftp: 14 bytes received in 0.00Seconds 14000.00Kbytes/sec.



The contents of my file:

C:\Users\nunma04>type test




I know my FTP Server is up and I can login to get my file.

This is my FTP Step:  FTP normally runs or Port 20 or 21.  When I click the Execute Now push button I see the contents of the file are am doing the FTP on.

<Please see attached file for image>

src="/servlet/servlet.FileDownload?file=0150c000004AKKqAAO" alt="ftp_step.png" width="965" height="398">


Additional Information



1558700161148000007774_sktwi1f5rjvs16oy7.png get_app