• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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!
 
a wee bit from the empire
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic