Ocean West Posted January 20, 2011 Posted January 20, 2011 Is it possible some FTP won't allow the FTPeek_GetFileInfo ( remotePath; infoType ) to return data ( size / mod date?) - error is all that is ever returned.
Fenton Posted January 20, 2011 Posted January 20, 2011 I don't know about the current version. But I was trying this (more than once) on files on a client server (logged into the server itself, via screen sharing). And I never could get it to work, though all the other commands worked fine. I ended up running an AppleScript running a Unix command line. Here's comments & an example from it: -- Size is bytes, Dates are Unix timestamp, tab separated -- Size Created Mod -- 12071 1248189535 1248189417 /Users/fej/Downloads/2xfinder.zip I ran this on about 80,000 folders, with some subfolders & files. It did not take long. Then used the path to populate the FileMaker fields. But yeah, it would fit into the workflow better if that function in FTPeek worked. It didn't for me either. They had Windows clients, so I couldn't use AppleScript from the clients.
Smef Posted January 21, 2011 Posted January 21, 2011 What is the error message you are receiving? You can call FTPeek_LastError after receiving "ERROR" from a function call to get a detailed description of the error. You can also check the plugin logs to see more information about the error. OS X /Users/userName/Library/Logs/360Plugin Logs/ /Users/userName/Library/Logs/360Plugin Logs/360Works FM WPE /Users/userName/Library/Logs/360Plugin Logs/360Works FM Pro Windows DriveLetter:\Documents and Settings\<userName>\My Documents\360Plugin Logs\ DriveLetter:\Documents and Settings\All Users\Documents\360Works FM Pro DriveLetter:\Documents and Settings\All Users\Documents\360Works FM WPE Vista: DriveLetter:\Users\<userName>\Documents\360Plugin Logs\
Ocean West Posted January 23, 2011 Author Posted January 23, 2011 Last Error java.lang.ArrayIndexOutOfBoundsException: 3 bytes Domain name has changed to protect the innocent. Jan 23, 2011 10:11:07 AM com.prosc.fmkit.PluginBridge doFunction CONFIG: === doFunction FTPeek_ConnectFTP called on thread: AWT-AppKit, eventLoopDepth is 0 === Jan 23, 2011 10:11:09 AM com.prosc.ftpeek.GenericFTPModel connect INFO: Connected to server ftp.DOMAIN.com Jan 23, 2011 10:11:09 AM com.prosc.fmkit.PluginBridge doFunction CONFIG: === doFunction FTPeek_UploadFile called on thread: AWT-AppKit, eventLoopDepth is 0 === Jan 23, 2011 10:11:09 AM com.prosc.ftpeek.GenericFTPModel getCurrentDir INFO: Currently in / Jan 23, 2011 10:11:09 AM com.prosc.ftpeek.GenericFTPModel changeDir INFO: Chdir into /incoming Jan 23, 2011 10:11:09 AM com.prosc.ftpeek.GenericFTPModel changeDir INFO: Chdir into / Jan 23, 2011 10:11:09 AM com.prosc.ftpeek.GenericFTPModel uploadFile INFO: Uploading file to remote path incoming/416620_20110123_1011.txt Jan 23, 2011 10:11:11 AM com.prosc.ftpeek.GenericFTPModel uploadFile INFO: created dialog, creating transfer thread Jan 23, 2011 10:11:11 AM com.prosc.ftpeek.GenericFTPModel uploadFile INFO: starting transfer thread Jan 23, 2011 10:11:11 AM com.prosc.ftpeek.GenericFTPModel uploadFile INFO: making dialog visible Jan 23, 2011 10:11:11 AM com.prosc.ftpeek.GenericFTPModel$4 run INFO: starting transfer Jan 23, 2011 10:11:11 AM com.prosc.ftpeek.GenericFTPModel$4 run INFO: finished transfer Jan 23, 2011 10:11:11 AM com.prosc.ftpeek.GenericFTPModel$4$1 run INFO: disposing dialog Jan 23, 2011 10:11:11 AM com.prosc.ftpeek.GenericFTPModel$4$1 run INFO: disposed dialog Jan 23, 2011 10:11:11 AM com.prosc.ftpeek.GenericFTPModel uploadFile INFO: Uploaded file to remote path incoming/416620_20110123_1011.txt Jan 23, 2011 10:11:14 AM com.prosc.fmkit.PluginBridge doFunction CONFIG: === doFunction FTPeek_GetFileInfo called on thread: AWT-AppKit, eventLoopDepth is 0 === Jan 23, 2011 10:11:15 AM com.prosc.fmkit.Plugin setLastError SEVERE: PluginFunction PluginFunction{name='FTPeek_GetFileInfo', functionID=-9642, minArgs=null, maxArgs=2} got an error with converted args [416620_20110123_1011.txt, size] java.lang.ArrayIndexOutOfBoundsException: 3 at com.prosc.ftpeek.GenericFTPModel.getSize(GenericFTPModel.java:299) at com.prosc.ftpeek.FTPeekPlugin.FTPeek_GetFileInfo(FTPeekPlugin.java:965) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.prosc.fmkit.StaticFunction.invoke(StaticFunction.java:226) at com.prosc.fmkit.Plugin.invokeFunction(Plugin.java:335) at com.prosc.fmkit.RegisterablePlugin.invokeFunction(RegisterablePlugin.java:61) at com.prosc.fmkit.Plugin.invokeFunctionNoErrors(Plugin.java:318) at com.prosc.fmkit.PluginBridge$3.run(PluginBridge.java:857) at com.prosc.fmkit.PluginBridge.runTask(PluginBridge.java:1051) at com.prosc.fmkit.PluginBridge.doFunction(PluginBridge.java:871) Jan 23, 2011 10:11:15 AM com.prosc.fmkit.PluginBridge doFunction CONFIG: === doFunction FTPeek_LastError called on thread: AWT-AppKit, eventLoopDepth is 0 === Jan 23, 2011 10:11:25 AM com.prosc.fmkit.PluginBridge doFunction CONFIG: === doFunction FTPeek_Disconnect called on thread: AWT-AppKit, eventLoopDepth is 0 === Jan 23, 2011 10:11:25 AM com.prosc.ftpeek.GenericFTPModel disconnect INFO: Disconnected from server ftp.DOMAIN.com It errors on multiple different computers - for this domain - other domains we ftp to returns the correct size. Also too - I am not even sure how this is possible - but the recipient is telling us that the line endings have changed but I am not doing anything different If I FTP the file on the desktop using an FTP client they seem to read just fine - but files submitted with FTPeek they say the line endings are not correct.
Valentin Posted January 25, 2011 Posted January 25, 2011 Hi Stephen I think the issues is either in the way the library we use is parsing the date or it's possible that we're doing some additional parsing. Either way it would be best if you could set me up with a test account on your ftp server. Please feel free to contact me directly.
Recommended Posts
This topic is 5050 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now