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

example/files update-script.js does not work on Java7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.2
    • 5.2.1, 5.3, 6.0
    • None
    • None

    Description

      A colleague reported that example/files does not work with Java 7, but did with Java 8.

      $ bin/solr create -c files -d example/files/conf/
      
      Setup new core instance directory:
      /Users/erikhatcher/dev/clean-branch_5x/solr/server/solr/files
      
      Creating new core 'files' using command:
      http://localhost:8983/solr/admin/cores?action=CREATE&name=files&instanceDir=files
      
      Failed to create core 'files' due to: Error CREATEing SolrCore 'files': Unable to create core [files] Caused by: missing name after . operator (<Unknown source>#73)
      

      with this in solr.log:

      Caused by: org.apache.solr.common.SolrException: Unable to evaluate script: update-script.js
      	at org.apache.solr.update.processor.StatelessScriptUpdateProcessorFactory.initEngines(StatelessScriptUpdateProcessorFactory.java:313)
      	at org.apache.solr.update.processor.StatelessScriptUpdateProcessorFactory.inform(StatelessScriptUpdateProcessorFactory.java:227)
      	... 33 more
      Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: missing name after . operator (<Unknown source>#73) in <Unknown source> at line number 73
      	at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:224)
      	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
      	at org.apache.solr.update.processor.StatelessScriptUpdateProcessorFactory.initEngines(StatelessScriptUpdateProcessorFactory.java:311)
      

      Attachments

        1. SOLR-7652.patch
          1 kB
          Erik Hatcher

        Activity

          People

            ehatcher Erik Hatcher
            ehatcher Erik Hatcher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: