File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jakarta commons-net anyone?

 
Rob Ross
Bartender
Posts: 2205
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 Ross
Bartender
Posts: 2205
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob,
FYI, I submitted this as a bug in the Apache Bug Database.
 
Rob Ross
Bartender
Posts: 2205
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris, do you mean you had previously submitted this issue as a bug, or did you do it because I posted this question?
Thanks!
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic