This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
Win a copy of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 this week in the Programmer Certification forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

import sun.net.ftp.FtpClient - Error under Java 1.3 and below

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am implementing FTP using import sun.net.ftp.FtpClient.
It works peachy fine under J2SDK1.4.0 but throws the following error under JDK1.3
sun.net.ftp.FtpProtocolException: STOR filename
PLEASE HELP!
Thanks
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm. sun.* classes are not part of the public Java API and can break from one version to the next. If you require full ftp client functionality not supplied by the core Java API, then try this LGPL client library, the NetComponents multi-protocol libary or Jakarta Commons Net.
- Peter
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Gurkha
can u do printStackTrace() and provide us the complete error?
u can also decompile the sun.net.ftp.FtpClient code to see whats there in STOR instruction execution (which is actually a put command in ftp)...
its weired because it doesn't do whole lot in put() method of FtpClient that issues ftp command STOR with a filename...
regards
maulin
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!