Try it with some other FTP client software. If it doesn't work, then the
problem isn't in your java class.
-Original Message-
From: Cysneros, Nelson A CIV SPAWARSYSCEN-PACIFIC, 56540
[mailto:nelson.cysne...@navy.mil]
Sent: Tuesday, February 15, 2011 4:50 PM
To: user@commons.apache.org
Try FTPSClient fc = new FTPSClient(true);
-Original Message-
From: Benzion [mailto:benzi...@yahoo.com]
Sent: Sunday, February 06, 2011 3:06 AM
To: user@commons.apache.org
Subject: RE: [NET] FTPSClient: 502 authentication type cannot be set to TLS
Hi,
Here's a simple client I run with
Since you know TLS isn't supported, try setting auth type to SSL.
-Original Message-
From: Benzion [mailto:benzi...@yahoo.com]
Sent: Friday, February 04, 2011 12:52 AM
To: user@commons.apache.org
Subject: [NET] FTPSClient: 502 authentication type cannot be set to TLS
Hi,
I try the
Try implicit. Need to set isImplicit to true in one of the constructors.
If you've tried that too, then please explain everything you have tried.
-Original Message-
From: Benzion [mailto:benzi...@yahoo.com]
Sent: Friday, February 04, 2011 8:48 AM
To: user@commons.apache.org
Subject: RE:
I'm not sure if the SSL handshake process is the same with NNTPS as it is
with FTPS, but you could look at FTPSClient and see how the SSL is
implemented over the FTPClient. Maybe use that as an example for writing a
NNTPSClient.
-Original Message-
From: Ken--
{
ftp.logout();
ftp.disconnect();
if(fis != null) { fis.close(); }
}
}
I double checked to see if the preferIPv4Stack was there on the execution
properties, and I also tried passing java.net.preferIPv6Stack=false, but for
no avail.
Thanks
2010/4/23 Steve
Haven't worked with applets in a long time, but when I did, you could not
access files or resources outside the browser sandbox. That was a designed
security feature to prevent malicious code from accessing files a computer.
The only option was installing custom security policy.
-Original
Here's some snippet code how we implemented HttpClient using the
MultiThreadedHttpConnectionManager...
import java.io.*;
import java.util.*;
import java.text.*;
import java.security.Security;
import org.apache.commons.httpclient.*;
import org.apache.commons.httpclient.auth.*;
import
What version of Commons Net are you using? Looks like an older one. Try a
newer version, either 1.4.1 or 2.0.
- Original Message -
From: Sathish G sathish...@rediffmail.com
To: user@commons.apache.org
Sent: Wednesday, December 23, 2009 12:58 AM
Subject: Connection Reset Error with
am getting
500 'SITE CP file1.dat dir2/file1.dat': command not understood.
Steve Cole-6 wrote:
Not sure how widely supported it is, but you could try using the site()
method to execute a native OS command to copy the file.
- Original Message -
Hello All
Not sure how widely supported it is, but you could try using the site()
method to execute a native OS command to copy the file.
- Original Message -
From: ter ter...@yahoo.de
To: user@commons.apache.org
Sent: Wednesday, December 16, 2009 12:23 PM
Subject: commons FTP: copy a file within
Is the timestamp created in the raw listing? If so, parse it out of that.
- Original Message -
From: geek.shrek miss_cool_...@yahoo.com
To: user@commons.apache.org
Sent: Wednesday, October 28, 2009 5:35 PM
Subject: how FTPClient get file created time?
Hi,
I'm using
Looks like you're trying to connect to a SSH service, not FTP. If you're
trying to connect to a FTP service, verify the port you're using is correct.
FTP is typically 21. If you're trying to connect to a SSH service which is
typically on port 23, the apache coommons ftp client isn't going to work.
OutputStream output = new FileOutputStream(localFilename);
ftpsClient.retrieveFile(remoteFilename, output);
output.close();
- Original Message -
From: Alan Grimes agri...@speakeasy.net
To: Commons Users List user@commons.apache.org
Sent: Tuesday, October 06, 2009 11:52 AM
in the correct folder and I get 550 when send the LIST command. in
the
EDT FTP Pro library it works.
Steve Cole-6 wrote:
A 550 is file not available, not found or not accessible. Are you
able
to
get a directory list from USER_NAME's home directory using the other
FTPS
clients? Try
via a
desktop FTP client and another java library called EDT FTP Pro.
I just can't seem to get it to work with the commons-net library.
Steve Cole-6 wrote:
Verify USER_NAME has permission to get a list from the default
directory.
- Original Message -
From: giladgaron giladga
the LIST command. in the
EDT FTP Pro library it works.
Steve Cole-6 wrote:
A 550 is file not available, not found or not accessible. Are you able
to
get a directory list from USER_NAME's home directory using the other
FTPS
clients? Try changing the working directory, to one that's worked
Verify USER_NAME has permission to get a list from the default directory.
- Original Message -
From: giladgaron giladga...@gmail.com
To: user@commons.apache.org
Sent: Thursday, October 01, 2009 5:25 AM
Subject: Trying to get List via FTPS results in a 550 code.
Hello,
I'm trying to
1. Are you sure you want to use SSL instead of TLS for the protocol?
2. Is it implicit or explicit?
3. Are you using the correct port? 990 is typical.
Here's how my implementation connects...
String protocol= TLS;// SSL/TLS
FTPSClient ftpsClient = null;
if (implicit){
ftpsClient =
/httpclient-3.x/sslguide.html
http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/contrib/org/apache/commons/httpclient/contrib/ssl/AuthSSLProtocolSocketFactory.java?view=markup
Ta
Meeraj http://hc.apache.org/httpclient-3.x/sslguide.html
On Wed, Jul 1, 2009 at 2:30 PM, Steve Cole sc
Actually, there's a AuthSSLProtocolSocketFactory constructor that includes
the Keystore URL and password.
- Original Message -
From: Steve Cole sc...@camsbycbs.com
To: Commons Users List user@commons.apache.org
Sent: Wednesday, July 01, 2009 9:28 AM
Subject: Re: Two-way SSL
If the server expects you to be the client, which is the likely case, you
need to use client mode. Otherwise, the SSLSocket will not perform the
negotiation correctly. In order for FTPSClient to successfully authenticate
itself, you must set the FTPSClient KeyManager to a KeyManager initialized
The sendCommand method requires the command and args to be passed as two
separate variables.
I think the bigger issue is that simpling sending a PUT command along with
the filenames is not going to send the file to the server. Check out the
FTPClient.java source and look at the _storeFile method.
Need to see the code.
- Original Message -
From: Siddharth Godbole siddharth@gmail.com
To: user@commons.apache.org
Sent: Monday, May 25, 2009 1:28 AM
Subject: Read time out issue
Hi,
I am using commons net version of 1.4.1 for connection with a telnet
server. I have set SO
Download the source, modify the SocketClient.connect() method and use the
setReceiveBufferSize() and setSendBufferSize() methods and see if it gives
you results you want.
Have you tried using the FTPClient.setBufferSize() method, which sets the
buffersize of the BufferedInputStream used for the
Imagination is more important than knowledge.
Take care,
Cheers,
Chetan
From: Steve Cole sc...@camsbycbs.com
To: Commons Users List user@commons.apache.org
Sent: Friday, 17 April, 2009 20:45:15
Subject: Re
Does the server require the client to use a certificate for authentication?
If so, are you setting the FTPSClient KeyManager using a keystore that
contains the correct signed certificate?
- Original Message -
From: Chetan chetanku...@yahoo.com
To: user@commons.apache.org
Sent: Thursday,
Try port 21. That or maybe the server is only configured for implicit ssl.
- Original Message -
From: Chetan chetanku...@yahoo.com
To: user@commons.apache.org
Sent: Tuesday, April 07, 2009 10:59 PM
Subject: org.apache.commons.net.ftp.FTPConnectionClosedException: Connection
closed
This may be
helpful...http://marc.info/?l=jakarta-commons-userm=107877944806547w=2
- Original Message -
From: 王巍巍 ww.wang...@gmail.com
To: user@commons.apache.org
Sent: Tuesday, March 24, 2009 9:47 PM
Subject: how to use http proxy to connect a ftp
I used apache common net FTPClient
I think you need to call the FTPClient completePendingCommand() method.
Here's the example from API documentation...
For example,
InputStream input;
OutputStream output;
input = new FileInputStream(foobaz.txt);
output = ftp.storeFileStream(foobar.txt)
How to do I set the keystore used for client and server certifcate
authentication? Can I just set these System properties or do I need actually
set the KeyManager and TrustManager in FTPSClient?
System.setProperty(javax.net.ssl.trustStore,trustStore);
31 matches
Mail list logo