Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 98321 invoked from network); 17 Mar 2005 09:23:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Mar 2005 09:23:11 -0000 Received: (qmail 31802 invoked by uid 500); 17 Mar 2005 09:23:01 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 31765 invoked by uid 99); 17 Mar 2005 09:23:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 17 Mar 2005 01:22:59 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (8.12.11/8.12.11) with ESMTP id j2H8sLPa011565 for ; Thu, 17 Mar 2005 09:54:22 +0100 Message-ID: <1558206138.1111049661988.JavaMail.jira@ajax.apache.org> Date: Thu, 17 Mar 2005 09:54:21 +0100 (CET) From: "Jukka Zitting (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Assigned: (JCR-71) WorkspaceConfig.init() throws NullPointerException if Search configuration is missing In-Reply-To: <1487214042.1111044380551.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-71?page=history ] Jukka Zitting reassigned JCR-71: -------------------------------- Assign To: Jukka Zitting > WorkspaceConfig.init() throws NullPointerException if Search configuration is missing > ------------------------------------------------------------------------------------- > > Key: JCR-71 > URL: http://issues.apache.org/jira/browse/JCR-71 > Project: Jackrabbit > Type: Bug > Components: config > Environment: Jackrabbit SVN Rev. 156527 > Reporter: Felix Meschberger > Assignee: Jukka Zitting > > When the search configuration is missing from the repository.xml configuration, the WorkspaceConfig.sc field is null and consequently the WorkspaceConfig.init() method throws a NullPointerException. > This is by itself a bug, especially since missing search configuration is perfectly ok resulting in Jackrabbit not building the search index (which is - believe it or - what really want). > On that matter, since the configuration file structure seems to be implied by the configuration framework but the DTD is inlined into the configuration file, the configuration framework should act very gracefully to missing or wrong or unexpected configuration elements. Thus, for example, if the file system configuration (WorkspaceConfig.fsc) would be missing, the WorkspaceConfig should probably hint at this point and not throw a NullPointerException without further explanations (of course throwing anything at all is still better than going wild). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira