Return-Path: X-Original-To: apmail-mina-dev-archive@www.apache.org Delivered-To: apmail-mina-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3D287D540 for ; Mon, 6 Aug 2012 16:16:41 +0000 (UTC) Received: (qmail 75039 invoked by uid 500); 6 Aug 2012 16:16:40 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 74968 invoked by uid 500); 6 Aug 2012 16:16:40 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 74957 invoked by uid 99); 6 Aug 2012 16:16:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 16:16:40 +0000 X-ASF-Spam-Status: No, hits=3.8 required=5.0 tests=KB_DATE_CONTAINS_TAB,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of darryl-mailinglists@netbauds.net designates 217.174.242.176 as permitted sender) Received: from [217.174.242.176] (HELO outbound-mail-3.netbauds.net) (217.174.242.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Aug 2012 16:16:31 +0000 Received: from 93-97-168-38.zone5.bethere.co.uk ([93.97.168.38]:38795 "EHLO odin.home.darrylmiles.org" smtp-auth: "darryl" TLS-CIPHER: "DHE-RSA-CAMELLIA256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: rhost-flags-OK-OK-OK-FAIL) by mail-3.netbauds.net with ESMTPSA id S2231477Ab2HFQQKx1PPC (ORCPT ); Mon, 6 Aug 2012 17:16:10 +0100 Message-ID: <501FEDCA.6050707@netbauds.net> Date: Mon, 06 Aug 2012 17:16:10 +0100 From: "Darryl L. Miles" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120625 Firefox/13.0.1 SeaMonkey/2.10.1 MIME-Version: 1.0 To: dev@mina.apache.org Subject: FtpServer trunk/r1369117 unit tests failing ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello (my first post to the list), I am evaluating the status of the MINA/FtpServer projects. Is the project in good order ? Are the projects known to work on Windows ? Win7 64bit JRE6 ? I am also using Eclipse Helios SR2 and have the trees checked out from SVN: https://svn.apache.org/repos/asf/mina/ftpserver/trunk (r1369117) https://svn.apache.org/repos/asf/mina/branches/2.0 (r1369395) The unit tests for FtpServer are not working in the development setup above. When using "mvn test" (from eclipse) on ftpserver-core I am seeing many failures (30+ test file failures) If I right click the whole ftpserver-core project (using Run As -> JUnit Test) it finds 656 tests and only 7 fail. This is unusual, maven unit testing usually works better for a project but the Eclipse, Run As JUnit fails. When I investigated one of these failures: The cause (of ftpserver-core unit test ActiveModeReplyTest failing) I traced one matter down to the method: Object org.apache.mina.core.session.DefaultIoSessionData.getAttribute(IoSession,Object,Object) At the end it returns the value of ConcurrentHashMap#putIfAbsent(key, defaultValue); But the default return value is the old value (or null). But the caller is expecting an existing (not-null value) or the default value to be returned. There maybe other methods that need a similar change. The symptom (of ftpserver-core unit test ActiveModeReplyTest failing) : The code in the FtpServer project the method: int org.apache.ftpserver.impl.FtpIoSession#getMaxIdleTime(); was generating a NullPointerException, because a null was being returned and then cast into a primitive 'int' type. The null was the previous value for the attribute from the Map (since it did not exist). There are many other failures. Darryl