[ 
https://issues.apache.org/jira/browse/FTPSERVER-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15561700#comment-15561700
 ] 

Martin Wunderlich commented on FTPSERVER-461:
---------------------------------------------

OK, I've had a closer look at the code. AFAICS, the inputClosed() method in the 
IoHandler interface was introduced with commit 
d3f53778d6d79a2611c4492364e3d9992e1b4312 in the MINA project. The same method 
was added to the IoHandlerAdapter with the same commit. The solution then would 
be to extend IoHandlerAdapter instead of implementing IoHandler, as reported by 
Ulrich. 

However, the current version of IoHandler does not have the inputClosed() 
method anymore: 
https://git-wip-us.apache.org/repos/asf?p=mina.git;a=blob;f=core/src/main/java/org/apache/mina/api/IoHandler.java;h=1c214fd55313a89ebbccb132b216c4618fa14030;hb=HEAD

Wouldn't this mean that this issue should not occur anymore with the latest 
versions? Strangely enough, I am not to identify the commit where this method 
was removed from the interface. 

> FtpServer implement inputClosed() or extend IoHandlerAdapter for MINA 2.0.8 
> or higher
> -------------------------------------------------------------------------------------
>
>                 Key: FTPSERVER-461
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-461
>             Project: FtpServer
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 1.0.6
>            Reporter: Ulrich Kohlhase
>
> According to the Apache MINA release notes for v2.0.8:
> "There is one change that might break the build for those switching from MINA 
> 2.0.7 to MINA 2.0.8 : the IoHandler interface now has a method called 
> inputClosed(), so either you have to implement this method if you are 
> directly implementing the IoHandler interface, or better, you can extends 
> IoHandlerAdapter, which implements a placeholder for this method."
> ERROR org.apache.ftpserver.impl.DefaultFtpHandler  - Exception caught, 
> closing session
> WARN  org.apache.ftpserver.listener.nio.FtpLoggingFilter  - EXCEPTION :
> AbstractMethodError: 
> org.apache.ftpserver.listener.nio.FtpHandlerAdapter.inputClosed(Lorg/apache/mina/core/session/IoSession;)V
>   at 
> org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.inputClosed(DefaultIoFilterChain.java:834)
>   at 
> org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextInputClosed(DefaultIoFilterChain.java:611)
>   at 
> org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:48)
>   at 
> org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.inputClosed(DefaultIoFilterChain.java:938)
>   at 
> org.apache.mina.core.filterchain.IoFilterAdapter.inputClosed(IoFilterAdapter.java:137)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to