jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-71) WorkspaceConfig.init() throws NullPointerException if Search configuration is missing
Date Thu, 17 Mar 2005 07:26:20 GMT
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

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:
If you want more information on JIRA, or have a bug to report see:

View raw message