You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Chang Xiangzhong (JIRA)" <ji...@apache.org> on 2009/04/28 10:02:31 UTC

[jira] Created: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

The project ftpserver can't work with mina-2.0-m5
-------------------------------------------------

                 Key: DIRMINA-706
                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
             Project: MINA
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.0.0-M5
         Environment: Windows Xp sp3
Eclipse 3.2
sun jdk-6.0.7
mina-2.0-m5
apache-ftpserver-1.0.0
            Reporter: Chang Xiangzhong
            Priority: Minor


After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.




package org.cxz.mina;
import org.apache.ftpserver.FtpServer;
import org.apache.ftpserver.FtpServerFactory;
import org.apache.ftpserver.ftplet.FtpException;
public class FtpSvrMgr {
	public static void main(String[] args) throws FtpException {
		FtpServerFactory serverFactory = new FtpServerFactory();
		FtpServer server = serverFactory.createServer();
		// start the server
		server.start();
	}
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Chang Xiangzhong (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chang Xiangzhong updated DIRMINA-706:
-------------------------------------

    Attachment: using lib mina-core-20.0.0-m4.jpg

When the m4 is used, there's no issue.

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Priority: Minor
>         Attachments: using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Chang Xiangzhong (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chang Xiangzhong updated DIRMINA-706:
-------------------------------------

    Attachment: mina-core-2.0.0-M5.jar

The attach is the m5 jar, which has been tried.

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Priority: Minor
>         Attachments: issue happens with mina-core-2.0.0-m5.jpg, mina-core-2.0.0-M5.jar, using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Chang Xiangzhong (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chang Xiangzhong updated DIRMINA-706:
-------------------------------------

    Attachment: issue happens with mina-core-2.0.0-m5.jpg

The issues happens when we use the m5.

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Priority: Minor
>         Attachments: issue happens with mina-core-2.0.0-m5.jpg, using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Chang Xiangzhong (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chang Xiangzhong closed DIRMINA-706.
------------------------------------


I've reproduce the test scenerio, and the updated part works well.
This is my first time to take part in open source project.
Thanks you guys.

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 2.0.0-RC1
>
>         Attachments: issue happens with mina-core-2.0.0-m5.jpg, mina-core-2.0.0-M5.jar, using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704249#action_12704249 ] 

Niklas Gustavsson commented on DIRMINA-706:
-------------------------------------------

In my tests, I recompiled the FtpServer code which made this work with M5 just fine. Thanks for fixing this Emmanuel, this means that FtpServer will skip M5 I guess :-)

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 2.0.0-RC1
>
>         Attachments: issue happens with mina-core-2.0.0-m5.jpg, mina-core-2.0.0-M5.jar, using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny resolved DIRMINA-706.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-RC1

Fixed in :
http://svn.apache.org/viewvc?rev=769571&view=rev

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 2.0.0-RC1
>
>         Attachments: issue happens with mina-core-2.0.0-m5.jpg, mina-core-2.0.0-M5.jar, using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRMINA-706:
--------------------------------------

    Fix Version/s:     (was: 2.0.0-RC1)
                   2.0.0-M6

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 2.0.0-M6
>
>         Attachments: issue happens with mina-core-2.0.0-m5.jpg, mina-core-2.0.0-M5.jar, using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny reassigned DIRMINA-706:
-----------------------------------------

    Assignee: Emmanuel Lecharny

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>         Attachments: issue happens with mina-core-2.0.0-m5.jpg, mina-core-2.0.0-M5.jar, using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703804#action_12703804 ] 

Niklas Gustavsson commented on DIRMINA-706:
-------------------------------------------

This seems odd. I've tried replacing M4 for M5 and get no problems. And the IoAcceptor.bind() method that it claims to be missing is one of the very core methods in MINA which has not changed for a very long time.

Could you maybe try attaching your copy of MINA M5?

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Priority: Minor
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12703849#action_12703849 ] 

Emmanuel Lecharny commented on DIRMINA-706:
-------------------------------------------

Chang is right. And this is my fault ... :/

I have changed the API from :

    void bind(SocketAddress address) throws IOException;

to

    void bind(SocketAddress... addresses) throws IOException;

thinking that it cover the case of a single argument.

I will restore the previous API.

Sorry for that.

> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>         Attachments: issue happens with mina-core-2.0.0-m5.jpg, mina-core-2.0.0-M5.jar, using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Chang Xiangzhong (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704120#action_12704120 ] 

Chang Xiangzhong edited comment on DIRMINA-706 at 4/29/09 7:00 AM:
-------------------------------------------------------------------

I've reproduced the previous scenerio, and the m5 version mina-core works well.
This is my first time to take part in open source project.
Thanks you guys.

      was (Author: qylin):
    I've reproduce the test scenerio, and the updated part works well.
This is my first time to take part in open source project.
Thanks you guys.
  
> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Assignee: Emmanuel Lecharny
>            Priority: Minor
>             Fix For: 2.0.0-RC1
>
>         Attachments: issue happens with mina-core-2.0.0-m5.jpg, mina-core-2.0.0-M5.jar, using lib mina-core-20.0.0-m4.jpg
>
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRMINA-706) The project ftpserver can't work with mina-2.0-m5

Posted by "Chang Xiangzhong (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chang Xiangzhong updated DIRMINA-706:
-------------------------------------

    Description: 
After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.




package org.cxz.mina;
import org.apache.ftpserver.FtpServer;
import org.apache.ftpserver.FtpServerFactory;
import org.apache.ftpserver.ftplet.FtpException;
public class FtpSvrMgr {
	public static void main(String[] args) throws FtpException {
		FtpServerFactory serverFactory = new FtpServerFactory();
		FtpServer server = serverFactory.createServer();
		// start the server
		server.start();
	}
}


Exceptions:

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

  was:
After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.




package org.cxz.mina;
import org.apache.ftpserver.FtpServer;
import org.apache.ftpserver.FtpServerFactory;
import org.apache.ftpserver.ftplet.FtpException;
public class FtpSvrMgr {
	public static void main(String[] args) throws FtpException {
		FtpServerFactory serverFactory = new FtpServerFactory();
		FtpServer server = serverFactory.createServer();
		// start the server
		server.start();
	}
}



> The project ftpserver can't work with mina-2.0-m5
> -------------------------------------------------
>
>                 Key: DIRMINA-706
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-706
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.0-M5
>         Environment: Windows Xp sp3
> Eclipse 3.2
> sun jdk-6.0.7
> mina-2.0-m5
> apache-ftpserver-1.0.0
>            Reporter: Chang Xiangzhong
>            Priority: Minor
>
> After reading the article [Embedding FtpServer in 5 minutes], I've tried it myself. The following is my source code. The server could not be started while I was using mina-core-2.0.0-M5.jar. If the jar was changed to mina-core-2.0.0-M4.jar everything would went well.
> package org.cxz.mina;
> import org.apache.ftpserver.FtpServer;
> import org.apache.ftpserver.FtpServerFactory;
> import org.apache.ftpserver.ftplet.FtpException;
> public class FtpSvrMgr {
> 	public static void main(String[] args) throws FtpException {
> 		FtpServerFactory serverFactory = new FtpServerFactory();
> 		FtpServer server = serverFactory.createServer();
> 		// start the server
> 		server.start();
> 	}
> }
> Exceptions:
> Exception in thread "main" java.lang.NoSuchMethodError: org.apache.mina.transport.socket.SocketAcceptor.bind(Ljava/net/SocketAddress;)V
> 	at org.apache.ftpserver.listener.nio.NioListener.start(NioListener.java:182)
> 	at org.apache.ftpserver.impl.DefaultFtpServer.start(DefaultFtpServer.java:77)
> 	at org.cxz.mina.FtpSvrMgr.main(FtpSvrMgr.java:14)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.