Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jakarta commons-net anyone?

 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rob,
FYI, I submitted this as a bug in the Apache Bug Database.
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Bring out your dead! Or a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic