DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2006-08-18 19:29 --- Whoops I forgot to provide a question with the post. My question is thus: #1 is this problem definitely due to having SELinux enabled #2 if yes to #1 is there any way to solve the problem without disabling SELinux #3 if no to #2 is there any way to disable SELinux without recompiling/switching the kernel (In reply to comment #44) I'm getting the same problem when running on: CentOS 4 uname -a returns:Linux horae 2.6.9-11.106.unsupportedsmp #1 SMP Wed Jun 8 22:05:04 CDT 2005 i686 i686 i386 GNU/Linux Here's the log messages my program printed out indicating ftp connection status/type: Log Message At: Thu Aug 17 15:04:47 PDT 2006 : FTPConnection connected to ftp.sac.co.za Log Message At: Thu Aug 17 15:04:47 PDT 2006 : Reply String: 220 scs Microsoft FTP Service (Version 5.0). Log Message At: Thu Aug 17 15:04:49 PDT 2006 : Client Type: Windows_NT version 5.0 Log Message At: Thu Aug 17 15:04:49 PDT 2006 : System Name: Windows_NT version 5.0 Log Message At: Thu Aug 17 15:04:49 PDT 2006 : Status: 211-scs Microsoft Windows NT FTP Server status: Version 5.0 Connected to horae.SSL.Berkeley.EDU Logged in as Themis TYPE: ASCII, FORM: Nonprint; STRUcture: File; transfer MODE: STREAM No data connection 211 End of status. I set my client to passive mode. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2006-08-18 19:34 --- You need to be making your comments at https://issues.apache.org/jira/browse/NET-61 . All Jakarta commons issues are now in JIRA. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] --- Additional Comments From [EMAIL PROTECTED] 2006-08-18 19:36 --- Adding pcruce so he will know to go to JIRA as I stated above. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2006-08-17 22:04 --- I'm getting the same problem when running on: CentOS 4 uname -a returns:Linux horae 2.6.9-11.106.unsupportedsmp #1 SMP Wed Jun 8 22:05:04 CDT 2005 i686 i686 i386 GNU/Linux Here's the log messages my program printed out indicating ftp connection status/type: Log Message At: Thu Aug 17 15:04:47 PDT 2006 : FTPConnection connected to ftp.sac.co.za Log Message At: Thu Aug 17 15:04:47 PDT 2006 : Reply String: 220 scs Microsoft FTP Service (Version 5.0). Log Message At: Thu Aug 17 15:04:49 PDT 2006 : Client Type: Windows_NT version 5.0 Log Message At: Thu Aug 17 15:04:49 PDT 2006 : System Name: Windows_NT version 5.0 Log Message At: Thu Aug 17 15:04:49 PDT 2006 : Status: 211-scs Microsoft Windows NT FTP Server status: Version 5.0 Connected to horae.SSL.Berkeley.EDU Logged in as Themis TYPE: ASCII, FORM: Nonprint; STRUcture: File; transfer MODE: STREAM No data connection 211 End of status. I set my client to passive mode. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2006-02-01 22:19 --- I was having the same problem with both listFiles() and listFiles(String). I am running on Redhat Enterprise Linux 4 with SELinux enabled. When I disabled SELinux, however, the problem went away. Could the problem be related to security settings on the Linix boxes affected? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2006-02-01 22:23 --- I was having the same problem with both listFiles() and listFiles(String). I am running on Redhat Enterprise Linux 4 with SELinux enabled. When I disabled SELinux, however, the problem went away. Could the problem be related to security settings on the Linix boxes affected? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2006-02-02 02:52 --- (In reply to comment #42) I was having the same problem with both listFiles() and listFiles(String). I am running on Redhat Enterprise Linux 4 with SELinux enabled. When I disabled SELinux, however, the problem went away. Could the problem be related to security settings on the Linix boxes affected? Thank you very much, Steve I think you may be on to something here. I have just installed CentOS 4.2 (RH4.2 clone) and my development tools aren't fully functional yet or I would test the SELinux on and off. In the mean time, any stack traces, Ethereal dumps or other info could help us finally get somewhere on this annoying bug. Thanks again! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|LATER | -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 [EMAIL PROTECTED] changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution||LATER -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-09-27 15:49 --- I have the same issue trying to store a file to the server. My OS is RH 2.1AS the ftp server is BulletProof FTP running on W2003. The application is running fine on Windows. I tried to downgrade to 1.3.0 with the same result. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-09-27 19:18 --- Are you using a DSL or cable TV connection to the internet or a dedicated line (T1, OC3, etc.)? By default RH uses IPv6 (Windows uses IPv4). Most DSL and cable companies only support IPv4... After using parameters mentioned previously to force Java to use either IPv6 or IPv4, I came to the theory that the problem is probably either in Sun's or RH's implementation of IPv4 on Linux. Of course, if you have a direct connection and have this problem, then a new theory is in order... -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-09-27 21:56 --- I am on a dedicated line behind a company firewall right next to the ftp server. I have also tried using Java 1.4 and 1.5 - no difference. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 [EMAIL PROTECTED] changed: What|Removed |Added CC||[EMAIL PROTECTED] ||o.uk Status|ASSIGNED|RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-03 11:01 --- Hi Folks, I could reproduce this issue on a Win2k+3, after a little investigating through the code, I got it. I found that's a really simple affair. It's not a bug at code level, perhaps it's an undocumented system requirement, so the documentation has to be fixed. You simply have to add the ORO text processing lib (e.g. jakarta-oro-2.0.8.jar) to your class path. The thrown exception simply says there's something not there, java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternException . If you use the binary, you can figure this out by unjarring or unzipping the jar . In the apache net commons jar is no package/folder org/apache/oro. As said already the needed class(es) are part of the ORO subproject. If you use the source distribution this is more obvious, and ofcourse you can walk down the stack trace, and spot bugs. KR Joerg Ruethschilling -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-08-03 16:11 --- See comments #27 and 28. Adding jakarta-oro makes it work on Windows -- but not the latest Fedora version of Red Hat Linux. -George (In reply to comment #33) Hi Folks, I could reproduce this issue on a Win2k+3, after a little investigating through the code, I got it. I found that's a really simple affair. It's not a bug at code level, perhaps it's an undocumented system requirement, so the documentation has to be fixed. You simply have to add the ORO text processing lib (e.g. jakarta-oro- 2.0.8.jar) to your class path. The thrown exception simply says there's something not there, java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternException . If you use the binary, you can figure this out by unjarring or unzipping the jar . In the apache net commons jar is no package/folder org/apache/oro. As said already the needed class(es) are part of the ORO subproject. If you use the source distribution this is more obvious, and ofcourse you can walk down the stack trace, and spot bugs. KR Joerg Ruethschilling -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-08-03 17:33 --- George, I still think this is a class loading problem. I can reproduce the problem on Win2k+3 and Suse 9.2, doing the following: java -cp .;commons-net-1.4.0.jar; Test // fails java -cp .;commons-net-1.4.0.jar;jakarta-oro-2.0.8.jar Test //works Please try to run the snippet below. -Joerg import org.apache.commons.net.ftp.*; import org.apache.oro.text.regex.MalformedPatternException; import java.net.*; import java.io.*; // try to execute with: // java -cp .;commons-net-1.4.0.jar;jakarta-oro-2.0.8.jar Test public class Test { // dummy has really no function other than to test if the oro lib is in the class path MalformedPatternException dummy=new MalformedPatternException(); public static void main(String[] args) { Test test=new Test();// construction should fail if oro lib is not in the class path FTPClient ftp = new FTPClient(); try { ftp.connect(konsensys.com); ftp.login([EMAIL PROTECTED], errorlog); String[] files = ftp.listNames(); for (int i = 0; i files.length; i++) System.out.println(files[i]); } catch (Exception ex) { } } } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-08-03 18:10 --- Um, wasnt the main problem that ftp HANGS, not the java.lang.NoClassDefFoundError. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED | --- Additional Comments From [EMAIL PROTECTED] 2005-08-04 01:56 --- Yes, thank you Mario. I would appreciate it if people who are not committers on this project would refrain from changing the status of bugs, especially when they obviously haven't bothered to read the voluminous traffic that this still unsolved bug has generated. If you had, you'd have noticed that the problem was seen with listNames() as well as listFiles(). Go ahead and try it with listNames(). It will run like a champ for you on Windows, even without Oro. The bug was about the program hanging, not about errors being thrown. As for the java.lang.NoClassDefFoundError, I'll just say that the classpath requirements for this package are well documented. It's true that you can run methods other than listFiles() without hitting the problem, because the listFiles system is the only part of the system that makes use of Oro. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |ASSIGNED --- Additional Comments From [EMAIL PROTECTED] 2005-07-08 10:16 --- I couldn't reproduce the issue on internal IPv6 systems nor by accessing the external host ftp.unicamp.br mentioned in one of the comments. The PORT command from the trace looks fine. I think we can rule out IPv6 issues. It's almost definitely a local configuration issue. The thing to do would be to capture a trace of the FTP protocol traffic (just the FTP commands going back and forth) for the native ftp command (which apparently works) and for the failed FTPClient and compare the two (have both of them perform exactly the same transaction). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-07-05 09:18 --- When I add the java property, -Djava.net.preferIPv6Addresses=false, listNames and listFiles both hang. Setting the property to true causes them to *NOT* hang (runs to completion), But the list (of three files) does not print out. If I also add the property, -Djava.net.perferIPv4Stack=true, they hang on the call to listFiles and listNames -- regardless if java.net.preferIPv6Addresses is set to true or false. I also learned from some searching of the web, that ADSL does not support IPv6. Thus, even if the client and server do support IPv6 but are connected via ADSL, they must use IPv6. I am connected to the via ADSL... -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-07-05 09:22 --- (In reply to comment #30) I also learned from some searching of the web, that ADSL does not support IPv6. Thus, even if the client and server do support IPv6 but are connected via ADSL, they must use IPv6. I am connected to the via ADSL... Sorry for the typo: the above should be they must use IPv4. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-07-04 01:41 --- I added the jakarta-oro-2.0.8.jar to the classpath of the miniprogram and listFiles() also hangs (i.e., both listFiles() and listNames() hang). I will investigate turning off IPv6. Thanks, -George -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-30 08:48 --- Sorry for not responding sooner. I've been out sick. And yesterday, I posted some results here that didn't seem to show up. So, I'll post again. As per a suggestion here, I replaced listNames() with listFiles and got the following wierd output: [EMAIL PROTECTED] 1.2]# cat Test.java import org.apache.commons.net.ftp.*; import java.net.*; import java.io.*; public class Test { public static void main (String[] args) { FTPClient ftp = new FTPClient(); try { ftp.enterLocalPassiveMode(); ftp.connect(konsensys.com); ftp.login([EMAIL PROTECTED], errorlog); System.out.println(Immediately before call to listFiles()); FTPFile[] files = ftp.listFiles(); System.out.println(Immediately after call to listFiles()); for (int i = 0; i files.length; i++) System.out.println(files[i]); } catch (Exception ex) { } } } [EMAIL PROTECTED] 1.2]# java -cp .:commons-net-1.4.0.jar Test Immediately before call to listFiles() Exception in thread main java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternException at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createUnixFTPEntryParser(DefaultFTPFileEntryParserFactory.java:169) at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.createFileEntryParser(DefaultFTPFileEntryParserFactory.java:94) at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.java:2358) at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2141) at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2188) at Test.main(Test.java:14) And, as per suggestion: [EMAIL PROTECTED] 1.2]# /sbin/iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain FORWARD (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain RH-Firewall-1-INPUT (2 references) target prot opt source destination ACCEPT all -- anywhere anywhere ACCEPT icmp -- anywhere anywhereicmp any ACCEPT ipv6-crypt-- anywhere anywhere ACCEPT ipv6-auth-- anywhere anywhere ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353 ACCEPT udp -- anywhere anywhereudp dpt:ipp ACCEPT all -- anywhere anywherestate RELATED,ESTABLISHED REJECT all -- anywhere anywherereject-with icmp-host-prohibited I believe the above indicates the firewalls are disabled. I disabled them via the wizard when installing the Linux OS (couldn't find a firewall tool). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-07-01 01:10 --- The weird error simply indicates that you don't have jakarta-oro.jar on your classpath which is called upon when running the listFiles() method. Get this jar onto your classpath and see what results. It would appear to me that you certainly do have your firewalls disabled. I am waiting to see what suggestions Daniel Savarese (see comment 25) may have since he suspects an IP v.6 cause. I think his diagnosis is likely, but I have no real knowledge. Is it possible to turn IP6 support off when executing programs or do you have to build a kernel with it disabled? If you can turn it off without too much trouble, this might provide useful diagnostic information. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-25 01:21 --- This is from Daniel Savarese who is away from home and couldn't post himself: There may be an IPv6 issue involved. I've had Java programs suddenly break after upgrading to the 2.6 Linux kernel with IPv6 enabled (like Fedora Core 3). Sometimes the fault lies with the program, sometimes with the way the Sun JDK implementation treats IPv4 and IPv6 addresses, sometimes with a server that isn't binding new sockets to IPv4 interfaces= . I'm out of town right now with limited net access, but if the problem hasn't been isolated by the time I return, I'll run some tests on my home network. I haven't fully absorbed all of the issue report entries, so I may be totally off the mark. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-25 01:24 --- (In reply to comment #25) There may be an IPv6 issue involved. I've had Java programs suddenly break after upgrading to the 2.6 Linux kernel with IPv6 enabled (like Fedora Core 3). Sometimes the fault lies with the program, sometimes with the way the Sun JDK implementation treats IPv4 and IPv6 addresses, sometimes with a server that isn't binding new sockets to IPv4 interfaces= I think you may be right, Daniel. That was in the back of my mind when I saw this, far above on this thread from a tcpdump: 16 0.652929 192.168.195.128 - 209.18.78.251 FTP Request: PORT 192,168,195,128,128,88 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-22 09:26 --- OS: Fedora Core 3 (kernel: 2.6.11-1.27_FC3), with all the latest updates (hoping some update might fix the problem). The miniprogram was compiled and run with both Java 1.5.0_03 and 1.4.2_08 (both hang). I don't have Eclipse installed there (been doing the development on Windows and testing on Linux. I did insert print statements immediately before and after listNames() and only the print statement before the call appeared. I think the odd looking IP address is dynamically assigned by the router between the OS and the network. The Windows XP uses the same router and the miniprogram runs fine. So, I doubt that is the issue. A partial printout of the tcpdump/tetherial is below. The missing lines were just repeats of the previous lines. tcpdump -w ftplog.dmp host konsensys.com tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 146 packets captured 154 packets received by filter 0 packets dropped by kernel tethereal -r ftplog.dmp 1 0.00 192.168.195.128 - 209.18.78.251 TCP 32879 ftp [SYN] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460 TSV=110717940 TSER=0 WS=2 2 0.009857 209.18.78.251 - 192.168.195.128 TCP ftp 32879 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 3 0.010041 192.168.195.128 - 209.18.78.251 TCP 32879 ftp [ACK] Seq=1 Ack=1 Win=5840 Len=0 4 0.190663 209.18.78.251 - 192.168.195.128 FTP Response: 220-This computer system is for authorized 5 0.191451 209.18.78.251 - 192.168.195.128 FTP Response: system without authority or in excess of 6 0.192028 192.168.195.128 - 209.18.78.251 TCP 32879 ftp [ACK] Seq=1 Ack=80 Win=5840 Len=0 7 0.192373 192.168.195.128 - 209.18.78.251 TCP 32879 ftp [ACK] Seq=1 Ack=154 Win=5840 Len=0 8 0.271413 209.18.78.251 - 192.168.195.128 FTP Response: having all their activities on this syste 9 0.272090 192.168.195.128 - 209.18.78.251 TCP 32879 ftp [ACK] Seq=1 Ack=683 Win=6432 Len=0 10 0.295433 192.168.195.128 - 209.18.78.251 FTP Request: USER [EMAIL PROTECTED] 11 0.296466 209.18.78.251 - 192.168.195.128 TCP ftp 32879 [ACK] Seq=683 Ack=30 Win=64240 Len=0 12 0.380252 209.18.78.251 - 192.168.195.128 FTP Response: 331 Password required for [EMAIL PROTECTED] 13 0.382212 192.168.195.128 - 209.18.78.251 FTP Request: PASS errorlog 14 0.383944 209.18.78.251 - 192.168.195.128 TCP ftp 32879 [ACK] Seq=734 Ack=45 Win=64240 Len=0 15 0.460350 209.18.78.251 - 192.168.195.128 FTP Response: 230 User [EMAIL PROTECTED] logged in. 16 0.474489 192.168.195.128 - 209.18.78.251 FTP Request: PORT 192,168,195,128,128,112 17 0.483417 209.18.78.251 - 192.168.195.128 TCP ftp 32879 [ACK] Seq=778 Ack=75 Win=64234 Len=0 18 0.566015 209.18.78.251 - 192.168.195.128 FTP Response: 200 PORT command successful 19 0.567500 192.168.195.128 - 209.18.78.251 FTP Request: NLST 20 0.568482 209.18.78.251 - 192.168.195.128 TCP ftp 32879 [ACK] Seq=807 Ack=81 Win=64234 Len=0 21 0.98 209.18.78.251 - 192.168.195.128 TCP ftp-data 32880 [SYN] Seq=0 Ack=0 Win=64240 Len=0 MSS=1460 22 0.777923 192.168.195.128 - 209.18.78.251 ICMP Destination unreachable (Host administratively prohibited) 23 0.781992 209.18.78.251 - 192.168.195.128 FTP Response: 150 Opening ASCII mode data connection for 24 0.824158 192.168.195.128 - 209.18.78.251 TCP 32879 ftp [ACK] Seq=81 Ack=861 Win=6432 Len=0 25 0.897944 209.18.78.251 - 192.168.195.128 TCP ftp-data 32880 [SYN] Seq=0 Ack=0 Win=64240 Len=0 MSS=1460 26 0.898058 192.168.195.128 - 209.18.78.251 ICMP Destination unreachable (Host administratively prohibited) 27 1.000254 209.18.78.251 - 192.168.195.128 TCP ftp-data 32880 [SYN] Seq=0 Ack=0 Win=64240 Len=0 MSS=1460 28 1.000393 192.168.195.128 - 209.18.78.251 ICMP Destination unreachable (Host administratively prohibited) 29 1.105067 209.18.78.251 - 192.168.195.128 TCP ftp-data 32880 [SYN] Seq=0 Ack=0 Win=64240 Len=0 MSS=1460 30 1.105178 192.168.195.128 - 209.18.78.251 ICMP Destination unreachable (Host administratively prohibited) 31 1.209412 209.18.78.251 - 192.168.195.128 TCP ftp-data 32880 [SYN] Seq=0 A -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-22 10:29 --- 25 0.897944 209.18.78.251 - 192.168.195.128 TCP ftp-data 32880 [SYN] Seq=0 Ack=0 Win=64240 Len=0 MSS=1460 26 0.898058 192.168.195.128 - 209.18.78.251 ICMP Destination unreachable (Host administratively prohibited) Whats this? We get data from the ftp-server but our answer is a ICMP dest unreachable? The ICMP is not sent by commons-net but I guess by iptables. Based on this information I found #1 http://www.webservertalk.com/message207968.html #2 http://www.ureader.co.uk/message/784153.aspx which seems somewhat related. As requested in #1 please try iptables -L and post the output. If its the same problem as in #1 we might see a blocking rule in the INPUT chain. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-22 10:57 --- Oh, I forgot, you need to check (iptables) your local machine as the ICMP is sent by you. So this is not a problem with the server but a firewall running on the client. Is it a linux box? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-22 12:39 --- This ICMP business is very suggestive and no doubt related to the problem, but there a few things I'd like to understand: 1. Why doesn't he have a problem ftp-ing to the same site with his command-line ftp application? A tcpdump of that for comparison purposes would be very useful. 2. Is the problem solely a problem with listNames()? Perhaps a simple program using listFiles() would fail similarly. That would tell us something. 3. I believe that somewhere up the thread George said he'd disabled the firewall. I don't know how that fits into this scenario. Maybe he didn't completely disable it, or maybe there are more than one firewall on the system? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-22 13:14 --- 1. Why doesn't he have a problem ftp-ing to the same site with his command-line ftp application? A tcpdump of that for comparison purposes would be very useful. For sure a tcpdump would really help. Maybe only ports above 1024 are blocked and this command-line utility uses one below? JFYI: SuSE knows a configuration in its firewall configuration for this FW_ALLOW_INCOMING_HIGHPORTS_TCP=yes|no|... And yes, I know modern firewalls with connection tracking are able to open those ports dynamically (ip_conntrack_ftp). Said that I found there was a problem with fedora in this area: http://www.opensubscriber.com/message/[EMAIL PROTECTED]/1466926.html Maybe its sufficient to load this module: /sbin/modprobe ip_conntrack_ftp 2. Is the problem solely a problem with listNames()? Perhaps a simple program using listFiles() would fail similarly. That would tell us something. I dont think so. I tried the code from comment #0 on my linux box and it worked against his server. This and the unwanted ICMP reply make me strongly think that it is NOT a commons-net fault. 3. I believe that somewhere up the thread George said he'd disabled the firewall. I don't know how that fits into this scenario. Maybe he didn't completely disable it, or maybe there are more than one firewall on the system? Yes, I think he should try the following again *) disable the firewall again *) use iptables -L (on the client system) - there should be no rule active. If there are entries if you see some rules try to delete them using iptables -D INPUT 6 replace INPUT and 6 by the corresponding chain and rule number. *) start tcpdump *) try commons-net ftp again If this works - try: *) restart your system (so the firewall might be up again) *) /sbin/modprobe ip_conntrack_ftp *) start tcpdump *) try commons-net ftp again Its hard to tell what to try through bugzilla, so sorry if this is too much information at once. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-21 08:04 --- Adding a call to setLocalPassiveMode() didn't help. tcpdump -w ftplog.dmp port 21 tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes 24 packets captured 24 packets received by filter 0 packets dropped by kernel tethereal -r ftplog.dmp 1 0.00 192.168.195.128 - 209.18.78.251 TCP 32855 ftp [SYN] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460 TSV=107459430 TSER=0 WS=2 2 0.012349 209.18.78.251 - 192.168.195.128 TCP ftp 32855 [SYN, ACK] Seq=0 Ack=1 Win=64240 Len=0 MSS=1460 3 0.01 192.168.195.128 - 209.18.78.251 TCP 32855 ftp [ACK] Seq=1 Ack=1 Win=5840 Len=0 4 0.270148 209.18.78.251 - 192.168.195.128 FTP Response: 220-This computer system is for authorized 5 0.271065 192.168.195.128 - 209.18.78.251 TCP 32855 ftp [ACK] Seq=1 Ack=80 Win=5840 Len=0 6 0.274453 209.18.78.251 - 192.168.195.128 FTP Response: system without authority or in excess of 7 0.274832 192.168.195.128 - 209.18.78.251 TCP 32855 ftp [ACK] Seq=1 Ack=154 Win=5840 Len=0 8 0.362847 209.18.78.251 - 192.168.195.128 FTP Response: having all their activities on this syste 9 0.363501 192.168.195.128 - 209.18.78.251 TCP 32855 ftp [ACK] Seq=1 Ack=683 Win=6432 Len=0 10 0.386149 192.168.195.128 - 209.18.78.251 FTP Request: USER [EMAIL PROTECTED] 11 0.387315 209.18.78.251 - 192.168.195.128 TCP ftp 32855 [ACK] Seq=683 Ack=30 Win=64240 Len=0 12 0.530759 209.18.78.251 - 192.168.195.128 FTP Response: 331 Password required for [EMAIL PROTECTED] 13 0.532773 192.168.195.128 - 209.18.78.251 FTP Request: PASS errorlog 14 0.534647 209.18.78.251 - 192.168.195.128 TCP ftp 32855 [ACK] Seq=734 Ack=45 Win=64240 Len=0 15 0.638348 209.18.78.251 - 192.168.195.128 FTP Response: 230 User [EMAIL PROTECTED] logged in. 16 0.652929 192.168.195.128 - 209.18.78.251 FTP Request: PORT 192,168,195,128,128,88 17 0.656633 209.18.78.251 - 192.168.195.128 TCP ftp 32855 [ACK] Seq=778 Ack=74 Win=64235 Len=0 18 0.800229 209.18.78.251 - 192.168.195.128 FTP Response: 200 PORT command successful 19 0.801628 192.168.195.128 - 209.18.78.251 FTP Request: NLST 20 0.803489 209.18.78.251 - 192.168.195.128 TCP ftp 32855 [ACK] Seq=807 Ack=80 Win=64235 Len=0 21 1.043420 209.18.78.251 - 192.168.195.128 FTP Response: 150 Opening ASCII mode data connection for 22 1.084230 192.168.195.128 - 209.18.78.251 TCP 32855 ftp [ACK] Seq=80 Ack=861 Win=6432 Len=0 23 31.203308 209.18.78.251 - 192.168.195.128 FTP Response: 226 Transfer complete. 24 31.204401 192.168.195.128 - 209.18.78.251 TCP 32855 ftp [ACK] Seq=80 Ack=885 Win=6432 Len=0 I ran the miniprogram several times waiting a few minutes before canceling. Both times tcpdump only captured 24 packets (same output each time). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-21 08:28 --- Its odd. However, tcpdump as you started it (I know I told you so :-) captures only what happens on port 21, due to the nature of ftp the data connection uses a different port. So please, do the following tcpdump -w ftplog.dmp host konsensys.com But please be sure no other network connection is active from your box to this host. Afterwards we have logged the full communication which happens between you and the ftp server. Now we should see the transfer of the directory listing. Thanks! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-21 12:58 --- (In reply to comment #16) Its odd. Very odd. The oddest thing about it is it looks to me that the command initiated by the listNames() method (NLST) appears to have succeeded and been acknowledged. So why the hang? Do you have a debugger you can run this under (such as the one in Eclipse?)? Setting a breakpoint on the line where you are looping through the array of names and returned, do you hit that breakpoint? The other thing I notice that strikes me as odd is line 16. We issued no port command, unless that somehow happens when in passive mode, if that code is still in your program. 16 0.652929 192.168.195.128 - 209.18.78.251 FTP Request: PORT 192,168,195,128,128,88 What does it mean 192,168,195,128,128,88? I suppose you could try disconnecting from the FTP server before entering that loop to see if that does any good, but I admit, I'm grasping at straws here. However, tcpdump as you started it (I know I told you so :-) captures only what happens on port 21, due to the nature of ftp the data connection uses a different port. So please, do the following tcpdump -w ftplog.dmp host konsensys.com But please be sure no other network connection is active from your box to this host. Afterwards we have logged the full communication which happens between you and the ftp server. Now we should see the transfer of the directory listing. I agree. In light of this PORT command, it would be interesting to see what is going on here. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-22 03:16 --- Well that puts a different light on things. We now have two users with the problem. I don't know much about Conectiva, but some googling tells me it's a Brazilian distribution. I don't know Portuguese but it seems to be using Kernel 2.6.5. Is that right in your case? Say George, looking back over this whole thread, I don't think we asked you what kernel your Fedora was using, Could you tell us. Maybe this is the common element here. Another question I want to ask is this: Is the problem with listFiles() only or do you see it with other commons-net APIs? like listNames() for example. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-20 13:23 --- Ethereal is pretty easy to use. I hadn't had experience with it myself and it took me about five minutes to figure it out. You just fire up the GUI, create a new Capture Filter, call it FTP and define it as tcp port 21. Then run your program and examine its output. You might want to also ask this in the Fedora lists. Someone there may know something about the bleeding edge changes they are doing. Just out of curiosity, can you point your program at any OTHER ftp site and get it to work? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-20 13:39 --- If you use the tcpdump as described in comment #6 you could append the dump to this bug so we can have a look at it too. The dump is in a format which is ethereal able to read and analyze. BTW is it true that you can use a command-line application to access the ftp server from your linux box? Maybe this tool uses ftp passive mode by default. Please try to change your code to: FTPClient ftp = new FTPClient(); ftp.enterLocalPassiveMode(); -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-19 20:49 --- I verified that hang occurs using both Java 1.4.2_08 and 1.5.0_03, which indicates that it is probably not a JVM issue. Below, is a dump using the previous suggestion (appears to be hanging in native code: Full thread dump Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode): Thread-0 daemon prio=1 tid=0x083a06b8 nid=0x1b9c runnable [0xa812d000..0xa812e030] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) - locked 0xa8ce6d98 (a java.io.BufferedInputStream) at java.io.FilterInputStream.read(FilterInputStream.java:66) at java.io.PushbackInputStream.read(PushbackInputStream.java:120) at org.apache.commons.net.io.FromNetASCIIInputStream.__read(FromNetASCIIInputStream.java:75) at org.apache.commons.net.io.FromNetASCIIInputStream.read(FromNetASCIIInputStream.java:170) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:235) - locked 0xa8ce7178 (a org.apache.commons.net.telnet.TelnetInputStream) at org.apache.commons.net.telnet.TelnetInputStream.__read(TelnetInputStream.java:114) at org.apache.commons.net.telnet.TelnetInputStream.run(TelnetInputStream.java:535) at java.lang.Thread.run(Thread.java:595) Low Memory Detector daemon prio=1 tid=0x080c5618 nid=0x1b9a runnable [0x..0x] CompilerThread0 daemon prio=1 tid=0x080c40c8 nid=0x1b99 waiting on condition [0x..0xa8800b98] Signal Dispatcher daemon prio=1 tid=0x080c3210 nid=0x1b98 runnable [0x..0x] Finalizer daemon prio=1 tid=0x080b97a8 nid=0x1b97 in Object.wait() [0xa8b02000..0xa8b02eb0] at java.lang.Object.wait(Native Method) - waiting on 0xa9197568 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked 0xa9197568 (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) Reference Handler daemon prio=1 tid=0x080b7960 nid=0x1b96 in Object.wait() [0xa8b83000..0xa8b83f30] at java.lang.Object.wait(Native Method) - waiting on 0xa91975e8 (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:474) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked 0xa91975e8 (a java.lang.ref.Reference$Lock) main prio=1 tid=0x0805b6e0 nid=0x1b94 runnable [0xbfffd000..0xbfffd5f8] at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) - locked 0xa8d0a450 (a java.net.SocksSocketImpl) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:502) at org.apache.commons.net.ftp.FTPClient.listNames(FTPClient.java:1959) at org.apache.commons.net.ftp.FTPClient.listNames(FTPClient.java:2006) at Test.main(Test.java:12) VM Thread prio=1 tid=0x080b4d78 nid=0x1b95 runnable VM Periodic Task Thread prio=1 tid=0x080c6aa8 nid=0x1b9b waiting on condition Thanks for helpful suggestions. -George -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-20 02:30 --- OK, so it's not a JVM problem. It's probably got something to do with your network configuration. How about firewalls? Could your Fedora box have a different firewall setup than the Windows box? Did you try to run Ethereal and look at port 21? Ethereal is probably available in Fedora. It will show you what is going on behind the scenes. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-20 04:52 --- I disabled the firewall on Linux to eliminate that as variable. Further, I can access the directory with the same host, username, and password as the miniprogram using ftp at the command line. I think that if one could access with same host, username and password from the command line ftp, that it is more likely a problem with how commons-net.jar is interfacing with the native code. And being as it seems to work for you on RHEL, it is most likely a problem with some of those bleeding edge changes to the kernel or networking that Red Hat likes to put into the Fedora version. I don't know much about networking, so it'll take me a little while to learn how to use etherial. I'll do that this week. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-15 17:51 --- The following complet miniprogram demonstrates the problem (correctly lists the two files Test.class and Test.java on when run on Windows XP but hangs on when run Fedora Red Hat Linux): import org.apache.commons.net.ftp.*; import java.net.*; import java.io.*; public class Test { public static void main (String[] args) { FTPClient ftp = new FTPClient(); try { ftp.connect(konsensys.com); ftp.login([EMAIL PROTECTED], errorlog); String[] files = ftp.listNames(); for (int i = 0; i files.length; i++) System.out.println(files[i]); } catch (Exception ex) { } } } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-18 15:50 --- (In reply to comment #3) The following complet miniprogram demonstrates the problem (correctly lists the two files Test.class and Test.java on when run on Windows XP but hangs on when run Fedora Red Hat Linux): Okay, I've tried it on my RHEL 3.4 environment, sorry, don't have Fedora. As expected, it works there. OK, so what is it about your environment? Can you send a full java version, just run java -version and send the output. Just a thought. Did you build commons-net from scratch in your jdk 1.5 environment or did you just download the binary? I don't know if that would make a difference but I suppose it's possible? You snet me the full OS of the server, but that isn't really relevant. FTP pretty well sits on top of the OS and doesn't care what OS is talking to it. One thing you might want to consider is using the jpackage.org system for java, but that mught take you awhile. Does anyone else have any ideas here? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-18 17:10 --- maybe it is possible to capture the ftp protocol using tcpdump (ethereal) to see what happens? tcpdump -w ftplog.dmp port 21 You can use ethereal then to see whats going on. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-18 17:12 --- Oh - and a thread dump of the hanging jvm kill -3 pid-of-jvm -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-18 22:16 --- Here's something else you can try. I never knew this before (and am somewhat amazed) but someone suggested it might be useful: Type CTRL+\ to get a backtrace of where it is hanging. If no backtrace appears, that means it's an internal VM bug. I've tried this on a little hanging program I wrote and it does indeed show a backtrace. (thanks to Robin Green on the jpackage.org list) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-18 22:25 --- (In reply to comment #8) Here's something else you can try. I never knew this before (and am somewhat amazed) but someone suggested it might be useful: Type CTRL+\ to get a backtrace of where it is hanging. If no backtrace appears, that means it's an internal VM bug. I've tried this on a little hanging program I wrote and it does indeed show a backtrace. (thanks to Robin Green on the jpackage.org list) This is the same output as produced by Mario's kill -3 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-16 05:27 --- OK, not entirely sure where to go here, but let's see if I can replicate. Please do email me your login info. What else can you tell me? Let's see. Do you by chance have a JDK 1.4 environment on your Fedora box where you could try to run your code and see if it reproduces there? Whose JDK are you using? I presume Sun. Are you by chance using the JPackage distributions of JDK and Jakarta or are you using the standard Sun and Jakarta distros? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-14 09:22 --- You are correct, the problem was with listNames() (I didn't try listFiles()). The FTP server is Suse Linux. I'm not sure of the version (using an ISP). The server is public. However, my app uses a private password and username (I can email the info to you, but don't want to post it here). The list of files in the directory is small: incoming DreamBeans_Windows.exe DreamBeans_Solaris_x86.sh DreamBeans_Solaris_sparc.sh DreamBeans_MacOS.sit DreamBeans_Linux_x86.sh DreamBeans_Generic_Installer.sh DreamBeans_Linux_x86_test.sh I can access the server using ftp at the command line from Fedora Linux and use commands such as ls etc. Thus, I know the network connection is okay. One confusing thing though is that on both Windows XP and Linux, when I use ftp at the command line to log in, the initial pwd is one directory level higher than that entered by commons-net (same ftp account). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 [EMAIL PROTECTED] changed: What|Removed |Added Summary|FTPClient.listFiles() hangs |[net] FTPClient.listFiles() |on Red Hat Linux|hangs on Red Hat Linux -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35338. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35338 --- Additional Comments From [EMAIL PROTECTED] 2005-06-14 02:09 --- Is it listFiles() or listNames() that hangs? Your summary and your text say it's hanging at listFiles() but your code snippet says listNames(). Not that either one should hang, but let's get the facts straight first, okay? While we're assembling facts, can you log into the same FTP server and list the files there? It's not a huge directory, is it? What is the server type? Unix? or something else? Anything else you can tell me about the server? It's not public, by any chance, is it? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]