commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billy Bacon" <billy.ba...@gmail.com>
Subject Re: [Net] 500 Syntax error, command unrecognized
Date Wed, 04 Apr 2007 17:51:26 GMT
That was it Rory! Thanks a ton for your reply!

On 4/4/07, Rory Winston <rwinston@eircom.net> wrote:
>
> Billy
>
> It may be that the FTP server does not recognize the STOU command. Try
> calling storeFile() instead of storeUniqueFile().
>
> Cheers
> Rory
>
> billy.bacon@gmail.com wrote:
>
> >
> > ------=_Part_65366_20669757.1175705604396
> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> > Content-Transfer-Encoding: 7bit
> > Content-Disposition: inline
> >
> > Sorry for the duplicate posts to those of you that have received this
> > several times. I didn't adhere to the naming conventions in the subject
> line
> > which someone on this list was kind enough to point out.
> >
> > Can someone tell me if they see any obvious issues with this method. The
> > file is never uploaded to the server and after checking the reply
> > string/code, I'm getting a 500 command unrecognized.
> >
> > <code>
> > public boolean put(String localFilename) {
> >     try {
> >         FTPClient client = new FTPClient();
> >         client.connect("10.4.1.100");
> >         client.enterLocalPassiveMode();
> >         client.setFileType(FTPClient.BINARY_FILE_TYPE);
> >         client.login("un", "pw");
> >
> >         client.storeUniqueFile(filename, local); // Returns a status
> code
> > 500 (command unrecognized)
> >
> >     } catch(SocketException sc) {
> >         sc.printStackTrace();
> >     } catch(IOException io) {
> >         io.printStackTrace();
> >     } finally {
> >         client.logout();
> >         client.disconnect();
> >     }
> > }
> > </code>
> >
> > Thanks for any help!
> >
> > - Billy -
> >
> > ------=_Part_65366_20669757.1175705604396--
> >
>
>
>
> -----------------------------------------------------------------
> Find the home of your dreams with eircom net property
> Sign up for email alerts now http://www.eircom.net/propertyalerts
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message