|
From: Dejan K. <dej...@ya...> - 2003-10-18 12:31:08
|
I agree. Commons Net 1.1 final will not be different from current CVS snapshot version. Only bugfixes are expexted - no API changes. So we will be able to switch to final version without code modification. In fact, it will make FtpScanner's code easer since MsFtpFileListParser class that I made as a workaround for MS Ftp server, will became unnecessary. I can remove that code later, but I think it will work with it, too. As I can remeber FtpScanner first tries to list files with default settings of Commons Net (which worked for most Unix bases systems). If that fails, then it tries with MsFtpFileListParser. That worked for my case but it won't work for other systems. Anyway, new Commons Net should be more clever - it will recognize type of server by itself and will use appropriate parser which are now already implemented (contrary to 1.0 version where user is expected to implement non-defulat parsers). Listing files with Net 1.1 will always be successfull and mine MsFtpFileListParser will never be used so the code should work equally with or without it. So David, you can commit Commons Net CVS snapshot version instead of current version that we use now. And Bruce, I don't use Windows as Ftp server anymore! I learned my lesson! ;) But I will try to test it when I have time... Dejan --- Bruce McDonald <br...@mc...> wrote: > Integrate. This is what we need to get babeldoc > stable. We can build the > future in 1.3. Dejan, can you check if your > application still works with the > new code. Anyone else check please. > > Ps. I will be doing a release tonight !prior! to > the > > On Friday 17 October 2003 07:57 pm, David Glick > wrote: > > 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(U > > >nk nown > > > > > > > Source) > > > > at > > > > > > > com.babeldoc.scanner.worker.FtpScanner$1$MsFtpFileListParser.parseFileLis > > >t( 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 > === message truncated === __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |