Solr
  1. Solr
  2. SOLR-241

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: clients - java
    • Labels:
      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,

      1. Config.patch
        0.6 kB
        Koji Sekiguchi

        Activity

        Hide
        Erik Hatcher added a comment -

        Thanks Koji!

        Show
        Erik Hatcher added a comment - Thanks Koji!

          People

          • Assignee:
            Erik Hatcher
            Reporter:
            Koji Sekiguchi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development