|
From: David G. <dg...@co...> - 2003-10-17 23:54:17
|
Thanks, Dejan. I downloaded and tested the latest snapshot directly using the ftp example, and it worked like a charm. Since I'm now on a tight deadline, I need to decide whether it will be easier to integrate the newest version back into Babeldoc, or just run it externally for my needs... Life is ALWAYS interesting at crunch time! David On Friday 17 October 2003 3:15 pm, Dejan Krsmanovic wrote: > Hi David, > FtpScanner is using Jakarta Commons Net 1.0 package > (ex ORO Net Components 3.8.1) for ftp scannong. This > component was mad to work with Unix based servers and > you were supposed to implement support for other > servers. Since I needed to use it for MS FTP server I > have implement support for it. > AFAIK, Commons Net is improving and they have changed > the way how server listing is parsed, and also they > should support other systems (MS for example). > However, the code for that was not released yet but I > think it will be released very soon (actualy the > voting for Commons Net 1.1 relesase has already been > started on Jakarta's mailing list). > > So you have three options: > - Try to implement AS/400 support by yourself. You > need to parse your server's output to extract > filenames, etc look at the code for > MsFtpFileListParser. > - wait for Commons Net 1.1 > - use Commons Net CVS snapshot > > Note that AS/400 might left unsupported by Commons > Net 1.1. Try to look at their CVS, there are parsers > for most systems... > > Dejan > > --- David Glick <dg...@co...> wrote: > > Gentlemen, > > > > I'm trying to set up the FtpScanner, but it is > > crashing. The stack trace and > > config filre are shown below. The stack trace show > > that MsFtpFileListParser > > was called,and the source code indicates that the > > FtpScanner has been > > optimized for Microsoft FTP. Does the FtpScanner > > also work with > > non-Microsoft FTP servers? The one I'm accessing is > > on an AS/400, but I've > > used manual FTP clients to it prevously without > > problems. > > > > > > Thanks, > > > > David > > > > > > === CONFIG.PROPERTIES === > > #scan ftp site every 1 hour for files to place into > > the outbound pipeline > > ftpscan.type=ftp > > #ftpscan.period=3600000 > > ftpscan.period=10000 > > ftpscan.ftpHost=as400 > > ftpscan.ftpUsername=AMUSER > > ftpscan.ftpPassword=XXXX <== Sorry, I'd have to > > shoot you otherwise > > ftpscan.pipeline=test > > ftpscan.filter=EBPRDIMP.EBPRDRR > > > > === STACK TRACE === > > <2003-10-17 12:44:02,550> ERROR [ftpscan] : > > [ScannerWorker.process] Error > > scanning... > > java.lang.NumberFormatException: For input string: > > "10/07/03" > > at > > java.lang.NumberFormatException.forInputString(NumberFormatException.java:4 >8) > > > at java.lang.Long.parseLong(Long.java:332) > > at java.lang.Long.parseLong(Long.java:381) > > at > > com.babeldoc.scanner.worker.FtpScanner$1$MsFtpFileListParser.parseEntry(Unk >nown > > > Source) > > at > > com.babeldoc.scanner.worker.FtpScanner$1$MsFtpFileListParser.parseFileList( >Unknown > > > Source) > > at > > org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:1933) > > > at > > org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:1964) > > > at > > com.babeldoc.scanner.worker.FtpScanner.processFtpFolder(Unknown > > > Source) > > at > > com.babeldoc.scanner.worker.FtpScanner.doScan(Unknown > > > Source) > > at > > com.babeldoc.scanner.ScannerWorker.process(Unknown > > Source) > > at > > com.babeldoc.scanner.ScannerThread.run(Unknown > > Source) > > > > -- > > David Glick > > Transmit Consulting, Inc > > 619-475-4052 > > dg...@tr... > > ------------------------------------------------------- > > > This SF.net email sponsored by: Enterprise Linux > > Forum Conference & Expo > > The Event For Linux Datacenter Solutions & > > Strategies in The Enterprise > > Linux in the Boardroom; in the Front Office; & in > > the Server Room > > http://www.enterpriselinuxforum.com > > _______________________________________________ > > Babeldoc-devel mailing list > > Bab...@li... > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... |