I'm trying to get the last modified time stamp of a file on the remote FTPS server by running MDTM command in a RA FTP job, like this:
https://us.v-cdn.net/5019921/uploads/editor/0i/6qjsv7kprues.png" width="1102">
RA FTP solution seems to be able to retrieve Last Mod Time and to display it in Host A browser window (circled in red above), but I cannot get MDTM command to work in the Free Form Command. The job report shows the following error:
2017-09-27 12:31:25 Setting Remote Server Verification Off.
2017-09-27 12:31:25 connecting on port : 990
2017-09-27 12:31:26 Executing command: mdtm ./****REPLICATION.zip on CONN.FTP.ITX
java.lang.Integer cannot be cast to java.lang.String
com.uc4.ftpjob.DataTransferException: Error skipping file bytes.
at com.uc4.ftpjob.commands.FtpFacadeCommandImpl.throwDataException(FtpFacadeCommandImpl.java:57)
at com.uc4.ftpjob.commands.FtpFacadeCommandImpl.sendCommand(FtpFacadeCommandImpl.java:95)
at com.uc4.ftpjob.commands.impl.FreeFormFTPCommand.execute1(FreeFormFTPCommand.java:246)
at com.uc4.ftpjob.commands.impl.FreeFormFTPCommand.execute(FreeFormFTPCommand.java:39)
at com.uc4.ftpjob.commands.CommandProcessor.execCommand(CommandProcessor.java:257)
at com.uc4.ftpjob.commands.CommandProcessor.processCommands(CommandProcessor.java:162)
at com.uc4.ftpjob.commands.CommandProcessor$processCommands.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at FtpJob.runJob(FtpAgent.groovy:304)
at com.uc4.extensibility.types.CITAgent.dispatchJob(CITAgent.java:258)
at com.uc4.ex.cit.CITJob.execute(CITJob.java:185)
at com.uc4.ex.Job.run(Job.java:469)
at com.uc4.ex.ThreadPool$RunnableDecorator.run(ThreadPool.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at com.uc4.ftpjob.commands.FtpsCommandImpl.sendCommand(FtpsCommandImpl.java:253)
at com.uc4.ftpjob.commands.FtpFacadeCommandImpl.sendCommand(FtpFacadeCommandImpl.java:93)
... 18 more
I ran MDTM command in WinSCP and it executes just fine:
https://us.v-cdn.net/5019921/uploads/editor/3g/yo32ax35o4q3.png" width="599">
Has anyone experienced anything like this? How can I get the last modified time stamp of a remote file?
We are using RA FTP v3.1.5 with AWA 10.0.3