search cancel

FTPS job provides java NullPointerException - "Unable to configure Session RE-use"

book

Article ID: 257547

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

FTP jobs running successfully but the reports contains suspicious NullPointerExceptions:

Example from a FTP Joblog:

2022-12-07 17:03:46             Unable to configure Session RE-use
java.lang.NullPointerException
    at com.uc4.transfer.RAFTPSClient._prepareDataSocket_(RAFTPSClient.java:58)
    at org.apache.commons.net.ftp.FTPSClient._openDataConnection_(FTPSClient.java:601)
    at org.apache.commons.net.ftp.FTPClient._storeFileStream(FTPClient.java:688)
    at org.apache.commons.net.ftp.FTPClient.__storeFileStream(FTPClient.java:679)
    at org.apache.commons.net.ftp.FTPClient.storeFileStream(FTPClient.java:2007)
    at com.uc4.ftpjob.commands.FtpsCommandImpl$10.runCommand(FtpsCommandImpl.java:302)
    at com.uc4.ftpjob.commands.FtpsCommandImpl.runCmd(FtpsCommandImpl.java:171)
    at com.uc4.ftpjob.commands.FtpsCommandImpl.getOutputStream(FtpsCommandImpl.java:298)
    at com.uc4.ftpjob.commands.FtpFacadeCommandImpl.getOutputStream(FtpFacadeCommandImpl.java:106)
    at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:601)
    at com.uc4.ftpjob.commands.impl.CopyCommand.execute(CopyCommand.java:443)
    at com.uc4.ftpjob.commands.CommandProcessor.execCommand(CommandProcessor.java:308)
    at com.uc4.ftpjob.commands.CommandProcessor.processCommands(CommandProcessor.java:164)
    at com.uc4.ftpjob.commands.CommandProcessor$processCommands$1.call(Unknown Source)
    at FtpJob.runJob(FtpAgent.groovy:320)
    at com.uc4.extensibility.types.CITAgent.dispatchJob(CITAgent.java:258)
    at com.uc4.ex.cit.CITJob.execute(CITJob.java:195)
    at com.uc4.ex.Job.run(Job.java:461)
    at com.uc4.ex.ThreadPool$RunnableDecorator.run(ThreadPool.java:53)
    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)
2022-12-07 17:03:46             Unable to configure Session RE-use

Environment

RA Solution: FtpAgent 4.1.0

RA CORE 12.3.9 and 12.3.9 HF2

JRE: '1.8.0_112'

 

 

Cause

Customer should no longer use elder JRE  (Java 1.8.0_112)

Resolution

The TLS verification is ensured by Java and since version Kit 8, Update 112 (2016) a lots of improvement were introduced regarding java and security features (TLS version 1.2)..

Refer therefore to : https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8192045

It is recommended for now to upgrade the  JRE./ JKD to a more recent version (for example Openjkd 11 from Adopt).

This should help to get rid of this kind of NullpointerException in the FTP JOB Report.