Return-Path: Delivered-To: apmail-incubator-abdera-user-archive@locus.apache.org Received: (qmail 35784 invoked from network); 26 Jul 2007 21:31:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2007 21:31:25 -0000 Received: (qmail 33742 invoked by uid 500); 26 Jul 2007 21:31:26 -0000 Delivered-To: apmail-incubator-abdera-user-archive@incubator.apache.org Received: (qmail 33729 invoked by uid 500); 26 Jul 2007 21:31:26 -0000 Mailing-List: contact abdera-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-user@incubator.apache.org Delivered-To: mailing list abdera-user@incubator.apache.org Received: (qmail 33720 invoked by uid 99); 26 Jul 2007 21:31:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 14:31:26 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: 152.2.1.140 is neither permitted nor denied by domain of adam@clownsinmycoffee.net) Received: from [152.2.1.140] (HELO smtp.unc.edu) (152.2.1.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2007 14:31:24 -0700 Received: from [152.2.190.32] (batmanuel.its.unc.edu [152.2.190.32]) (authenticated bits=0) by smtp.unc.edu (8.13.4/8.13.4) with ESMTP id l6QLUm8e012336 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 26 Jul 2007 17:30:48 -0400 (EDT) Message-ID: <46A91288.1070309@clownsinmycoffee.net> Date: Thu, 26 Jul 2007 17:30:48 -0400 From: Adam Constabaris User-Agent: Thunderbird 2.0.0.5 (X11/20070716) MIME-Version: 1.0 To: abdera-user@incubator.apache.org Subject: Re: Building the trunk References: <5c932c650707261119je6f6022l2208de3f3e76b230@mail.gmail.com> In-Reply-To: <5c932c650707261119je6f6022l2208de3f3e76b230@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: ITS Messaging Systems (outgoing) on 152.2.1.140 X-Virus-Checked: Checked by ClamAV on apache.org I'm seeing this too. I notice that the ant build doesn't run any tests in the server module, while Maven does; that's possibly why this doesn't show up for ant users. I got some distance with tracking down the problem, but life intervened. So here's the (relevant, IMO) parts of the stack trace: java.lang.NullPointerException at org.apache.abdera.protocol.server.ServiceManager.newServiceContext(Se rviceManager.java:69) NPE is thrown by the final line of the following snippet: === ServiceManager === ServiceContext context = (ServiceContext) ServiceUtil.newInstance( SERVICE_CONTEXT, (instance != null) ? instance : DefaultServiceContext.class.getName(), abdera); log.debug(Messages.format("INITIALIZING.INSTANCE", "ServiceContext")); context.init(abdera, properties); ===================== I got this far: instance, which should be the name of the implementing class, is null, so we should be getting a DefaultServiceContext instance, but that doesn't happen. The ServiceUtil.newInstance method silently returns null, and that's where I had to stop looking; I'm not sure whether it should throw an exception of some sort here, or whether the client code in ServiceManager should check. AC Rob Evans wrote: > Lastly, I've been seeing build failures. I'll try to track down the > root cause and, if its really a problem with the codebase and not my > build system, I'll submit a bug. > > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running org.apache.abdera.test.server.UtilityTest > Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.344 > sec <<< FAILURE! > > Results : > > Tests in error: > testServiceManager(org.apache.abdera.test.server.UtilityTest) > testRegexTargetResolver(org.apache.abdera.test.server.UtilityTest) > testSubjectResolver(org.apache.abdera.test.server.UtilityTest) > > Tests run: 5, Failures: 0, Errors: 3, Skipped: 0 > > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] There are test failures. > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 1 minute 49 seconds > [INFO] Finished at: Thu Jul 26 11:05:13 PDT 2007 > [INFO] Final Memory: 12M/29M > [INFO] > ------------------------------------------------------------------------ > > robevans@robevans-wxp01 ~/workspaces/abdera/abdera.trunk > $ mvn install