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

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

Hmm, seems I was look at the wrong IOHandler above. The one here does have the 
inputClosed() methods: 
org.apache.mina.core.service.IOHandler

So, there are two IOHandler classes with different fully qualified names. The 
one above and this one here: 
org.apache.mina.api.IOHandler

Interestingly, the core package doesn't seem to be visible in the git web 
interface: 
https://git-wip-us.apache.org/repos/asf?p=mina.git;a=tree;f=core/src/main/java/org/apache/mina;h=c129d50de59b6b3670b9923da233c1eb9cc8df5f;hb=HEAD

So, anyway, it seems then that inheriting frmo IOHandlerAdapter would be the 
way to go. 

> 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