MINA
  1. MINA
  2. DIRMINA-706

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M5
    • Fix Version/s: 2.0.0-M6
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Windows Xp sp3
      Eclipse 3.2
      sun jdk-6.0.7
      mina-2.0-m5
      apache-ftpserver-1.0.0

      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)

      1. using lib mina-core-20.0.0-m4.jpg
        164 kB
        Chang Xiangzhong
      2. mina-core-2.0.0-M5.jar
        623 kB
        Chang Xiangzhong
      3. issue happens with mina-core-2.0.0-m5.jpg
        225 kB
        Chang Xiangzhong

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Emmanuel Lecharny
            Reporter:
            Chang Xiangzhong
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development