You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-users@mina.apache.org by Aidan Diffey <ai...@gmail.com> on 2010/11/12 09:41:22 UTC
Error when setting file type
Hello.
I have an embedded FTP server running inside JBoss that receives input from
40 concurrent FTP clients. I am using apache commons.net FTPS client to send
the data.
Each of these FTP Clients sends both ASCII and Binary data randomly (well,
sort of) but I am getting a recurring exception:
2010-11-11 18:06:27,714 ERROR [<className>]
org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed
without indication.
at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:297)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:490)
at
org.apache.commons.net.ftp.FTPSClient.sendCommand(FTPSClient.java:465)
at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534)
at org.apache.commons.net.ftp.FTP.type(FTP.java:934)
at org.apache.commons.net.ftp.FTPClient.setFileType(FTPClient.java:965)
....
This appears to be happening when the setFileType is being called as each
client needs to set the fileType before sending its data.
So, client 1 could be sending binary data, and set file type = Binary, but
at the same time, client 2 could be sending ASCII data and setting file type
to ASCII.
Is there a potential problem with FTPServer, or should I be looking into the
Apache FTP client.
Regards
Re: Error when setting file type
Posted by Aidan Diffey <ai...@gmail.com>.
I will attempt to get the output from the server. I will update my log4j
config to get output to seperate file
On 12 November 2010 08:50, David Latorre <dv...@gmail.com> wrote:
> Do you have the server log and "ftpclient output"? I mean the output
> you get if you do something like this:
> client.addProtocolCommandListener(new PrintCommandListener(new
> PrintWriter(System.out)));
>
> The active/passive mode settings are per connection (session) so I
> don't think this may be the problem.
>
> 2010/11/12 Aidan Diffey <ai...@gmail.com>:
> > Hello.
> >
> > I have an embedded FTP server running inside JBoss that receives input
> from
> > 40 concurrent FTP clients. I am using apache commons.net FTPS client to
> send
> > the data.
> >
> > Each of these FTP Clients sends both ASCII and Binary data randomly
> (well,
> > sort of) but I am getting a recurring exception:
> >
> >
> > 2010-11-11 18:06:27,714 ERROR [<className>]
> > org.apache.commons.net.ftp.FTPConnectionClosedException: Connection
> closed
> > without indication.
> > at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:297)
> > at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:490)
> > at
> > org.apache.commons.net.ftp.FTPSClient.sendCommand(FTPSClient.java:465)
> > at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534)
> > at org.apache.commons.net.ftp.FTP.type(FTP.java:934)
> > at
> org.apache.commons.net.ftp.FTPClient.setFileType(FTPClient.java:965)
> > ....
> >
> > This appears to be happening when the setFileType is being called as each
> > client needs to set the fileType before sending its data.
> >
> > So, client 1 could be sending binary data, and set file type = Binary,
> but
> > at the same time, client 2 could be sending ASCII data and setting file
> type
> > to ASCII.
> >
> > Is there a potential problem with FTPServer, or should I be looking into
> the
> > Apache FTP client.
> >
> > Regards
> >
>
Re: Error when setting file type
Posted by David Latorre <dv...@gmail.com>.
Do you have the server log and "ftpclient output"? I mean the output
you get if you do something like this:
client.addProtocolCommandListener(new PrintCommandListener(new
PrintWriter(System.out)));
The active/passive mode settings are per connection (session) so I
don't think this may be the problem.
2010/11/12 Aidan Diffey <ai...@gmail.com>:
> Hello.
>
> I have an embedded FTP server running inside JBoss that receives input from
> 40 concurrent FTP clients. I am using apache commons.net FTPS client to send
> the data.
>
> Each of these FTP Clients sends both ASCII and Binary data randomly (well,
> sort of) but I am getting a recurring exception:
>
>
> 2010-11-11 18:06:27,714 ERROR [<className>]
> org.apache.commons.net.ftp.FTPConnectionClosedException: Connection closed
> without indication.
> at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:297)
> at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:490)
> at
> org.apache.commons.net.ftp.FTPSClient.sendCommand(FTPSClient.java:465)
> at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:534)
> at org.apache.commons.net.ftp.FTP.type(FTP.java:934)
> at org.apache.commons.net.ftp.FTPClient.setFileType(FTPClient.java:965)
> ....
>
> This appears to be happening when the setFileType is being called as each
> client needs to set the fileType before sending its data.
>
> So, client 1 could be sending binary data, and set file type = Binary, but
> at the same time, client 2 could be sending ASCII data and setting file type
> to ASCII.
>
> Is there a potential problem with FTPServer, or should I be looking into the
> Apache FTP client.
>
> Regards
>