Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.7k views
in .NET FTP by
Hi all.....

I'm trying to connect from a Solaris environment -> Netware and having problems. I've tried the suggestion found here:
http://www.enterprisedt.com/forums/view ... ght=novell


Wonder if you could shed some light on how to do this 'right'

---Code block A:
System.out.println("current path: " + ftp_client.pwd());
FTPFile [] ftp_files = ftp_client.dirDetails(ftp_client.pwd());

---result:
current path: /VOL1/GROUPS/CEMS EnvianceReload
com.enterprisedt.net.ftp.FTPException: Unknown SYST: NETWARE Type: L8
at com.enterprisedt.net.ftp.FTPFileFactory.setParser(FTPFileFactory.java:158)
at com.enterprisedt.net.ftp.FTPFileFactory.<init>(FTPFileFactory.java:120)
at com.enterprisedt.net.ftp.FTPClient.dirDetails(FTPClient.java:2255)
at com.alliantenergy.enviance.listener.EnvianceFTPListenerThread.findFiles(EnvianceFTPListenerThread.java:151)
at com.alliantenergy.enviance.listener.EnvianceFTPListenerThread.processRootDirectories(EnvianceFTPListenerThread.java:137)
at com.alliantenergy.enviance.listener.EnvianceFTPListenerThread.run(EnvianceFTPListenerThread.java:77)


---Code bock B:
System.out.println("current path: " + ftp_client.pwd());
String[] file_names = ftp_client.dir();
System.out.println("num file names: " + file_names.length);
FTPFileFactory ftp_file_factory = new FTPFileFactory(new UnixFileParser());
FTPFile[] ftp_files = ftp_file_factory.parse(file_names);
System.out.println("num files: " + ftp_files.length);

---result:
current path: /VOL1/GROUPS/CEMS EnvianceReload
num file names: 1
num files: 0


Many thanks
dominic
dominicdimarco(at)alliantenergy.com

1 Answer

0 votes
by
browsing through the lists...i found an unrelated issue that used the objects in question in the right order....

System.out.println("current path: " + ftp_client.pwd());
String[] file_names = ftp_client.dir();
System.out.println("num file names: " + file_names.length);
FTPFileFactory ftp_file_factory = new FTPFileFactory(new UnixFileParser());
ftp_client.setFTPFileFactory(ftp_file_factory);
FTPFile [] ftp_files = ftp_client.dirDetails(ftp_client.pwd());
System.out.println("num files: " + ftp_files.length);

Categories

...