Hi all, 

just to provide a brief update on this: I have been able to track down these 
exceptions to connection attempt to the FTP server coming from two distinct IP 
addresses. Like Brett suggests, the root cause seems to be on the TPC/IP level: 
The clients connect from those addresses to the secure port of the FTP server 
and then terminate the connection, leading to the exception on the server side. 
What exactly is running under those IP addresses is currently being 
investigated. 

Cheers, 

Martin 


> Am 03.06.2015 um 13:26 schrieb Brett Bergquist <br...@thebergquistfamily.com>:
> 
> My suggestion would be to use Wireshark and get a capture  of traffic to and 
> from the server not the fTP port.   You might find something hitting the port 
> that you don’t expect, even something like a port scanner, etc. that starts 
> to establish a TCP connection to the port and abruptly closes the TCP 
> connection with a TCP RST.
> 
>> On Jun 3, 2015, at 6:31 AM, Martin Wunderlich <m...@censhare.de> wrote:
>> 
>> Hi all, 
>> 
>> We have implemented an FTP service based on Apache FTPServer/MINA. Recently, 
>> there are some odd exceptions being logged (see below), the root cause of 
>> which isn’t clear at all. There are no uploads or connections attempts at 
>> the time of the exception. It seems the exceptions are thrown simply for the 
>> running FTP server as it is listening on its port. 
>> 
>> We are using: 
>> 
>> - ftpserver-core 1.0.6
>> - log4j 1.2.14  
>> - mina-core 2.0.9
>> - ftplet-api 1.0.6
>> - jcl-over-slf4j 1.6.1
>> 
>> It seems others have had the same issue, but I haven’t been able to find 
>> out, if a fix exists. 
>> https://mail-archives.apache.org/mod_mbox/mina-ftpserver-users/201105.mbox/%3cbanlktinap_znvmacjy5bd2ju61nwb2j...@mail.gmail.com%3E
>>  
>> <https://mail-archives.apache.org/mod_mbox/mina-ftpserver-users/201105.mbox/%3cbanlktinap_znvmacjy5bd2ju61nwb2j...@mail.gmail.com%3E>
>> 
>> Does anyone know what this might be? 
>> 
>> Cheers, 
>> 
>> Martin
>> PS: I hope you won’t mind the crossposting to both the MINA and the 
>> FTPServer lists.  
>> 
>> 
>> 
>> 2015.06.03-12:14:19.867 SEVERE : pool-45-thread-2: DefaultFtpHandler: 
>> Exception caught, closing session
>> java.io.IOException: Connection reset by peer
>>       at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
>>       at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39.   
>>       at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
>>       at sun.nio.ch.IOUtil.read(IOUtil.java:197)
>>       at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
>>       at 
>> org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:311)
>>       at 
>> org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:45)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:694)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
>>       at 
>> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
>>       at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>       at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>       at java.lang.Thread.run(Thread.java:745)
>> 2015.06.03-12:14:22.133 SEVERE : pool-45-thread-1: DefaultFtpHandler: 
>> Exception caught, closing session
>> java.io.IOException: Connection reset by peer
>>       at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
>>       at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
>>       at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
>>       at sun.nio.ch.IOUtil.read(IOUtil.java:197)
>>       at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
>>       at 
>> org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:311)
>>       at 
>> org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:45)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:694)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:67)
>>       at 
>> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1121)
>>       at 
>> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
>>       at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>       at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>       at java.lang.Thread.run(Thread.java:745)
>> 
>> 
>> 
>> 
>> 
>> censhare featured as Cool Vendor for Content Management by Gartner
> 



censhare featured as Cool Vendor for Content Management by Gartner

Reply via email to