Hi

Could you try using either trunk (bleeding edge) or the 1.4 branch
(more stable) instead?

/niklas

On Tue, Mar 18, 2008 at 11:30 AM, Alessio Santacroce
<[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
>  I'm a new Ftp Server user and I need to embed it in my program.
>  I wrote the code, that is quite simple, but I'm experiencing a problem at
>  shutdown.
>
>  What happen is that the java virtual machine doesn't terminate because the
>  following thread is still running (I saw debugging the process):
>  -------------------------------------
>  Daemon Thread [PooledByteBufferExpirer-0] (Suspended)
>     Thread.sleep(long) line: not available [native method]
>     PooledByteBufferAllocator$Expirer.run() line: 277
>  --------------------------------------
>
>  Did someone experience the same issue?
>
>
>  I'm working with Windows XP, jvm 1.5 and I build the Ftp Server distribution
>  downloading the source code from the URL: "
>  http://svn.apache.org/repos/asf/mina/sandbox/ftpserver/tags/1.0-M1-incubator
>  ".
>
>  The issue can be reproduced running the following code:
>  --------------------------------------
>  public static void main(String[] args) throws Exception {
>         // get the configuration object
>         Configuration config = new PropertiesConfiguration(new
>  Properties());
>         // create servce context
>         FtpServerContext ftpConfig = new
>  ConfigurableFtpServerContext(config);
>         // create the server object and start it
>         FtpServer server = new FtpServer(ftpConfig);
>         server.start();
>         System.out.println("Ftp server started using the default
>  configuration");
>         long sleepFor = 5 * 1000;
>         System.out.println("Sleeping for " +sleepFor+ " sec");
>         Thread.sleep(sleepFor);
>         server.stop();
>         System.out.println("Ftp server stopped");
>  }
>  --------------------------------------
>
>  There's something wrong in the code I wrote?
>
>
>  Thanks in advance for the help,
>  Alessio
>

Reply via email to