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)