aspose file tools*
The moose likes Other Open Source Projects and the fly likes Jakarta commons-net anyone? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jakarta commons-net anyone?" Watch "Jakarta commons-net anyone?" New topic
Author

Jakarta commons-net anyone?

Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
Has anyone worked with jakarta commons-net to write an ftp client? I have a simple ftp applet written that works on Windows and Mac OS X but I can't get it to work with MRJ 2.2.5 (OS 8.6/9.2 (classic) which uses JVM 1.1.8 )
It times out waiting for a response from the server during the connection attempt.
Any clues or known issues would be welcomed.
Thanks!
[ June 04, 2003: Message edited by: Rob Ross ]

Rob
SCJP 1.4
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
Well Rob, let me answer you.
It seems that there's a bug in the commons-net library and it's not doing the right thing on the Mac, with respect to its line seperator. On the Mac it's just a \r, whereas on Windows it's \r\n.
Someplace in the telnet client object there's some assumption being made that is not valid on the Mac platform.
I just changed the line.seperator System property at program startup to be \r\n and now my ftp client works.
[ June 04, 2003: Message edited by: Rob Ross ]
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Rob,
FYI, I submitted this as a bug in the Apache Bug Database.
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
Chris, do you mean you had previously submitted this issue as a bug, or did you do it because I posted this question?
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jakarta commons-net anyone?