Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-241

explicitly loggin an error message for missing system property for string substitution in solrconfig.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.2
    • clients - java
    • None

    Description

      Solr has a pretty good string substitution function in solrconfig.xml (${system.property[:default value]}). If there is no system property defined, DOMUtil throws a SolrException(500), but it not logged. I'm using Tomcat 5.5.

      I had a hard time to find my problem when I forgot to set a system property that was refered in solrconfig.xml.

      The patch is to file the problem to the logger explicitly.

      regards,

      Attachments

        1. Config.patch
          0.6 kB
          Koji Sekiguchi

        Activity

          People

            ehatcher Erik Hatcher
            koji Koji Sekiguchi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: